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.

For the expression (y >= z && a == b) to be true, at least one of (y >= z) and (a == b) must be true.

  True

  False

 

2.

Variables declared inside a for loop are limited in scope to the loop.

  True

  False

 

3.

The == operator can be used to compare two String objects. The result is always true if the two strings are identical.

  True

  False

 

4.

A break statement must always be present in the default case of a "switch" selection structure.

  True

  False

 

5.

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

  True

  False

 

6.

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

  True

  False

 

7.

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

  True

  False

 


 
12 more pages in Java Programming


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