This website is preserved for historical and scholarly reference and is no longer actively maintained.
QUIZ 15
September 24, 1997
#1. What is printed by the following program? Show the results exactly as they will appear. ( 4 points )
import ccj.*;
public class quiz15
{
public static void main (String[] args)
{
int x = 2;
count = 0;
while ( count < 3 )
{
}
System.out.println("The value of x is " + x);
System.out.println ("The value of count is " + count);
}
}
(b) Draw a flowchart for the while statemenet (4 points)
#2. Use De Morgan's laws to simplify the following Boolean expression. (2 points)