Question: 1. Which will legally declare, construct, 1 1 point and initialize an array? A. int[]myList = {1, 2, 3); B. int]myList (5, 8, 2);

1. Which will legally declare, construct, 1 point and initialize an array? A. int [] myList = {1,2, 3}; B. int [] myLis

1 point 3. Which is a reserved word in the Java programming language? A. method B. native C. subclasses D. reference 4. Which

1 point 5. Which one of the following will declare an array and initialize it with five numbers? A. Array a = new Array(5): B

1 point 7. Which provides a runtime environment for java byte code to be executed? A. JDK B. JVM C. JRE D. JAVAC 1 point 8. I

1 point 9. class increment { public static void main(String args[]) { int g = 3; System.out.print(++g* 8); }} a) 25 Ob) 24 c)  
 
 

1. Which will legally declare, construct, 1 1 point and initialize an array? A. int[]myList = {"1", "2", "3"); B. int]myList (5, 8, 2); C. int myList[][] = {4,9,7,0); D. int myList] =(4,3,7); 2. class evaluate { public static void main(String args[]) {int arr[] = new int[] (0.1, 2, 3, 4, 5, 6, 7, 8, 9); int n = 6; n = arr[arr[n]/2]: System.out.println(arr[n] / 2);}} A. 3 . C. 6 O D. 1 1 point 3. Which is a reserved word in the Java programming language? A. method B. native C. subclasses D. reference 4. Which is a valid keyword in java? a. interface b. string c. Float d. unsigned 1 point 1 point 5. Which one of the following will declare an array and initialize it with five numbers? A. Array a = new Array(5); B. inta (23,22,21,20,19); C. int a [] = new int[5]; D. int [5] array: = 6. Which one is a valid declaration of a 1 point boolean? A. boolean b1 = 0; B. boolean b2 = 'false'; C. boolean b3 = false; 1 point D. boolean b5 = no; 7. Which provides a runtime environment for java byte code to be executed? A. JDK B. JVM C. JRE D. JAVAC 8. In Java code, the line that begins with /* and ends with */ is known as? A. Multiline comment B. Single line comment C. Both A & B D. None of these 1 point 1 point 9. class increment { public static void 1 point main(String args[]) { int g = 3; System.out.print(++g*8); } } a) 25 b) 24 c) 32 d) 33 10. class area { public static void main(String args[]) { double r, pi, a; r = 9.8; pi = 3.14; a = pi*r*r; System.out.println(a);}}* 301.5656 b) 300 c) 302.56 d) 303.56560000 1 point

Step by Step Solution

3.40 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The detailed answer for the above question is provided below Q1 The correct option is D int myList43... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!