Examlex

Solved

What Is Wrong, Logically, with the Following Code

question 22

Multiple Choice

What is wrong, logically, with the following code?
If (x > 10) System.out.println("Large") ;
Else if (x > 6 && x <= 10) System.out.println("Medium") ;
Else if (x > 3 && x <= 6) System.out.println("Small") ;
Else System.out.println("Very small") ;


Definitions:

Related Questions