Question: 13. If a program compiles fine, but it produces incorrect result, then the program suffers_ a. a compilation error b. a runtime error c. a
13. If a program compiles fine, but it produces incorrect result, then the program suffers_ a. a compilation error b. a runtime error c. a logic error d. None of the above. 14. What is the exact output of the following codei? double area 3.5 System.out.printf("area") System.out.print(area) a. 3.53.5 b. 3.5 3.5 c. area3.5 d. area 3.5 15. Suppose a Scanner object is created as follows: Scanner input - new Scanner(System.in); What method do you use to read a real number? a. input.nextDouble): b. input.nextdouble(): c. input.double) d. input.Double(): 16. To declare a constant MAX_LENGTH inside a method with value 99.98, you write a. final MAX LENGTH 99.98 b. final float MAX LENGTH 99.98; c. double MAX LEN GTH 99.98 d. final double MAX LENGTH 99.98; 17. According to Java naming convention, which of the following names can be variables? a. FindArea b. Find_area c. totallength d. TOTAL LENGTH 13. If a program compiles fine, but it produces incorrect result, then the program suffers_ a. a compilation error b. a runtime error c. a logic error d. None of the above. 14. What is the exact output of the following codei? double area 3.5 System.out.printf("area") System.out.print(area) a. 3.53.5 b. 3.5 3.5 c. area3.5 d. area 3.5 15. Suppose a Scanner object is created as follows: Scanner input - new Scanner(System.in); What method do you use to read a real number? a. input.nextDouble): b. input.nextdouble(): c. input.double) d. input.Double(): 16. To declare a constant MAX_LENGTH inside a method with value 99.98, you write a. final MAX LENGTH 99.98 b. final float MAX LENGTH 99.98; c. double MAX LEN GTH 99.98 d. final double MAX LENGTH 99.98; 17. According to Java naming convention, which of the following names can be variables? a. FindArea b. Find_area c. totallength d. TOTAL LENGTH
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
