Topics for Unit 2 test

1. How to use the JOptionPane.showConfirmDialog and JOptionPane.showOptionDialog -
see quiz 1 or Lab2a

2.  Boolean symbols    - what do each of these stand for - quiz 1 or Lab2b
  ==    !=      >     <    >=      <=    

3. When do we use equals() and equalsIgnoreCase()
  
What does .toUpperCase(), .toLowerCase(), and .length() do?
   
see - Lab2c

4..  if statements ( one way branching ) - and   if .. else statements ( two way branching )

5.  nested if ... else statements  -

6.  && and ||
When is an "and" boolean true?      When is an "or" boolean false?
Are these true or false?

a.  (6 + 4 >= 10) b.  ( 3 * 5 < 11) c.  ( 2*3 != 4 + 2) d.  (2 < 3 && 5 < 2)
e. (2 < 3 || 5 < 2) f.(3+1==4 || 9!=0) g.  ( 6 = 5 ) h.  (6 <=5 || 4 > 5)

Click to take a practice quiz

 

One last note:

When the answer is 2 windows or 3 windows, it means that they follow each other .