Opening the paper…
Programming Concepts using Java, Quiz 1
Which of the following statements is/are correct about activation records?
Which of the following statements is/are correct about activation records? Match the following terms with their descriptions/properties. Figure from the original question paper Consider the Java code given below. public class Test{ public static void main(String[] args){ int a[] = {10, 20}; int x = a[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; default: System.out.println(x); } } } } What will the output be?