Question: ***JAVA ONLY*** Chapter 3 Selections 1. What is 10.10.10.10.10.1==0.5 ? a. true b. false c. There is no guarantee that 10.10.10.10.10.1==0.5 is true. 2. In








***JAVA ONLY***
Chapter 3 Selections 1. What is 10.10.10.10.10.1==0.5 ? a. true b. false c. There is no guarantee that 10.10.10.10.10.1==0.5 is true. 2. In Java, the word true is a. a Java keyword b. a Boolean literal c. same as value 1 d. same as value 0 3. Which of the following code displays the area of a circle if the radius is positive? a. if (radius !=0) System.out.println(radius radius 3.14159 ); b. if (radius >=0 ) System.out.println(radius * radius 3.14159 ); c. if (radius >0 ) System.out.println(radius radius 3.14159 ); d. if (radius 3000 ) \{ 5ystem.out.printin("Income is greater than 3000 ); \} else if (income >4000 ) \{ System.out.printin("Income is greater than 4000 ); \} a. no output b. Income is greater than 3000 c. Income is greater than 3000 followed by Income is greater than 4000 d. Income is greater than 4000 e. Income is greater than 4000 followed by Income is greater than 3000 6. The following code displays double temperature =50; if (temperature >=100 ) System.out.println("too hot"); else if (temperature 0) if (y>0) System.out.printin(" x>0 and y>0 "); else if (z>0) System.out.println(" x0 "); a. x>0 and y>0; b. x0; c. x=16 ) System.out.printin("Can get a driver's license"): II: if ( age =16 ) System.out.printin("Can get a driver's license"): IV: if (age >16 ) System.out.printin("Can get a driver's license"); else if (age =16 ) System.out.printin("Can get a driver's license "); 3. 1 b. II c. III d. IV 15. The method immediately terminates the program. a. System.terminate(0); b. System.halt(0); c. System.exit(0); d. System.quit(0); e. System.stop(0): 16. Which of the Boolean expressions below is incorrect? a. (true) \&\& (3=>4) b. I(x>0)&&(x>0) c. (x>0)(x1))(x1))&&(xx>100)(x=4, which of the following is true? a. x>=4 \& \& x=4x=4 \& \& x=4xy \& \& x
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
