Multiple Choice
What is the output of the following Java code?int x = 0;
If (x > 0)
System.out.println("positive ") ;
System.out.println("zero ") ;
System.out.println("negative") ;
A) zero
B) negative
C) zero negative
D) positive zero negative
Correct Answer:

Verified
Correct Answer:
Verified
Q8: The conditional operator ?: takes _ arguments.<br>A)
Q11: Suppose P and Q are logical expressions.
Q12: The expression 'A' <= 'B' evaluates to
Q29: The operators != and == have the
Q32: The expression !(x is true only if
Q34: int x, y;if (x 4)<br>{<br>If (x >
Q35: Which of the following will cause a
Q41: switch (lastInitial)<br>{<br>Case 'A':<br>System.out.println("section 1");<br>Break;<br>Case 'B':<br>System.out.println("section 2");<br>Break;<br>Case 'C':<br>System.out.println("section
Q42: After the execution of the following code,
Q50: The method compareTo is part of the