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.

An individual array element from an array of type int, when passed to a method is passed by value.

  True

  False

 

2.

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

  True

  False

 

3.

Objects of a subclass can be assigned to a super class reference.

  True

  False

 

4.

The expression (y >= z && a == b) is evaluated by first evaluating the expression y >= z, and then evaluating a == b.

  True

  False

 

5.

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

  True

  False

 

6.

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

 

7.

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

  True

  False

 


 
12 more pages in Java Programming


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