Question: Question 28 (2.5 points) Java was developed at Microsoft Sun Microsystems Java labs 12 Bell laboratories 15 Question 29 (2.5 points) Which type of loop
Question 28 (2.5 points) Java was developed at Microsoft Sun Microsystems Java labs 12 Bell laboratories 15 Question 29 (2.5 points) Which type of loop would you use in a situation where you want the loop to iterate at least once? 18 do-while loop for loop while loop all types of loops in Java iterate at least once 21 24 27 Question 30 (2.5 points) 30 What values will be stored in x and y after the following statements execute? (Hint: remember the difference between prefix and postfix increment operator) int x-5,y y-x++ 36 x-6 and y 6 x-5 and y5 x-6 and y 5 x- 5 and y6 Question 31 (2.5 points) Which of the following will result in a syntax error ? (Hint: Logical errors will let your program compile and run giving you incorrect results but syntax errors will prevent your program from compiling as they violate the rules and syntax of Java) Writing a semicolon at the end of an if clause Omitting the trailing else in an if-else-if statement Forgetting to enclose an ifs statement's boolean expression in parentheses All of the above are syntax errors Question 32 (2.5 points) Which of the following statement will display the value in num in a field of 9 spaces rounded to 3 decimal spaces? double num = 25.384765; System.out.printf (" The total is:%9.3d, num); double num- 25.384765 System.out.printf (" The total is:%3.9d: num); double num - 25.384765; System-outprintf ("The total is:%3.9f", num ); double num-25.384765: System.out.printf ("The total is:%9.3f", num); Question 33 (2.5 points) Eclipse, Visual Studio or jGrasp are all examples of IDEs (Integrated Development
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
