1.In Java, elements of an array are automatically initialized tosome default value.
What is the default value for the elements of an array ofintegers?
a.’0’b0c1dnulle”0″
2.Variables are used to store data in a program. To declare avariable is to tell the compiler what type of data a variable canhold.
a.Falseb.True
3.Consider the following piece of code:
int i;
for(i=0; i<10; i++){
/* some code that doesn’t modify i */
}
System.out.println(“i=”+i); /* line A */
What is printed by the statement on line A?
a. i = 0bi = 11ci = 9d This piece of code doesn’t compile since the scope of i islimited to the for loop.
e. i = 10
4.
PayPal Gateway not configured
PayPal Gateway not configured