Multiple Choice
What is output by the following Java code segment? int temp = 200;
If ( temp > 90 )
System.out.println( "This porridge is too hot." ) ;
If ( temp < 70 )
System.out.println( "This porridge is too cold." ) ;
If ( temp == 80 )
System.out.println( "This porridge is just right!" ) ;
A) This porridge is too hot.
B) This porridge is too cold.
C) This porridge is just right!
D) None of the above.
Correct Answer:

Verified
Correct Answer:
Verified
Q1: Where can local variables declared within a
Q5: What does the expression x %= 10
Q6: Which of the following would not be
Q14: Which of the following code segments does
Q16: A decision symbol in an activity diagram
Q18: Which of the following is not an
Q23: Which of the following is not a
Q29: Which of the following is not a
Q33: Keyword _ indicates the inheritance relationship.<br>A)extends<br>B)inherits<br>C)super<br>D)parent
Q38: Java is considered a strongly typed language