Loading
notes intro/old submit AP Problems the dump links
 

Quiz 9b - Boolean expressions

 

 

 

id:

1.Which of these should you compare with ==

int doubles Strings ints or doubles

2.What is short circuiting?

when a run time error occurs

when the left operand is enough to decide the result of the if statement

when the else statement is not exectued

a bad movie from the 1980s

 

 

3. What is the missing value in the truth table below:

false true !a cant tell with information given

 

4. In the truth table below, what could output be (where 1 is true and 0 is false):

a or b a and b !a !b