Review Questions

   

Java™ 2 Primer Plus
By Steven Haines, Steve Potts

Table of Contents
Chapter 4.  Flow Control


1:

What is the general form of an if statement?

2:

What is the function of the else clause for an if statement?

3:

How many else if statements can follow an if statement?

4:

The switch statement only evaluates what type of values?

5:

Which loop ensures that the body of the loop is evaluated at least once?

6:

What is an infinite loop?

7:

What is the most popular type of loop for iterating over a variable or set of variables?

8:

How do you skip the statements in the current iteration of a loop?

9:

How do you stop executing the statements in a loop and continue at the first line following the loop?

10:

How do you break out of multiple nested loops?


       
    Top
     



    Java 2 Primer Plus
    Java 2 Primer Plus
    ISBN: 0672324156
    EAN: 2147483647
    Year: 2001
    Pages: 332

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net