Syvum Home Page

Home > Quiz Games > Java Programming >

Java Programming : Language Basics : True or False


Answer the following questions about basics of the Java programming language. These include concepts like operators, variables, declarations, basic language structures such as if, for, switch, etc.

Formats Info Page Worksheet / Test Paper Quiz Review
Multiple choice

Your Performance  

1.

Declarations must appear at the start of the body of a Java method.

  True

  False

 

2.

The "switch" selection structure must end with the default case.

  True

  False

 

3.

consider the statement "x = (a > b) ? a : b"; then the value of x is 27, if a = 18 and b = 27.

  True

  False

 

4.

All bitwise operations are carried out with the same level of precedence in Java.

  True

  False

 

5.

The modulus operator (%) in Java can be used only with variables of integer type.

  True

  False

 

6.

The operations y >> 3 and y >>> 3 produce the same result when y > 0.

  True

  False

 

7.

Whenever the "&&" operator is used, such as in:
exp1 && exp2
where exp1 and exp2 are boolean expressions, both the boolean expressions are not always evaluated.

  True

  False

 

FREE PREVIEW: Last 8 Questions not a part of the free preview. Get Premium Membership to view all questions.


 
12 more pages in Java Programming


Contact Info © 1999-2018 Syvum Technologies Inc. Privacy Policy Disclaimer and Copyright
Previous
-
Next
-