Opening the paper…
Programming Concepts using Java, Quiz 1
Which of the following is/are CORRECT about heap?
Choose the correct option(s).
Which of the following is/are CORRECT about heap?\ Choose the correct option(s). Match the following terms with their descriptions/properties. Figure from the original question paper Consider the Java program below. public class FClass{ public static void main(String[] args){ int a[] = {10, 20, 30}; int x = 0; for(int i : a){ switch(i){ case 10: x = x + 10; System.out.println(x); break; case 20: x = x + 20; System.out.println(x); break; case 30: x = x + 30; System.out.println(x); break; default: System.out.println(x); } } } } What will the output be?