Menu

Section Single Choice Questions 20 Marks Total 2 3tton Helloutton Button Byeutton Ye Ddthe Q43808550

Section A- SINGLE CHOICE QUESTIONS (20 marks in total with 2 3tton helloutton each) Button byeutton ye) ddthelleturton), 1. SSection A- SINGLE CHOICE QUESTIONS (20 marks in total with 2 3tton helloutton each) Button byeutton ye) ddthelleturton), 1. Suppose: (b tton); int a = 1; double d – 1.e; Then the result of the expression 1.5*3+(++a) is: A. 4.5 B. 5.5 C. 6.5 D. 7.5 2. The execution result of the following program fragment is: for (int i = 0; i < 3; i+) { switch (i) { case e: break; case 1: System.out.print(“1 “); Bys case 2: System.out.print(“2 “); case 3: System.out.print(“3 “); marks) ANGWER System.out.println(“ok”); B. 1 2 ok C. 123 ok D. 1 2 323 ok A. ok 1) 3. For the following statements, which one for definition of an array would NOT cause a compilation error? B. float []f2[] = new float[3][]; A. float []fl = new float(3); Show transcribed image text Section A- SINGLE CHOICE QUESTIONS (20 marks in total with 2 3tton helloutton each) Button byeutton ye) ddthelleturton), 1. Suppose: (b tton); int a = 1; double d – 1.e; Then the result of the expression 1.5*3+(++a) is: A. 4.5 B. 5.5 C. 6.5 D. 7.5 2. The execution result of the following program fragment is: for (int i = 0; i

Expert Answer


Answer to Section A- SINGLE CHOICE QUESTIONS (20 marks in total with 2 3tton helloutton each) Button byeutton ye) ddthelleturton),…

OR