Quiz #5

This quiz deals mostly with questions from chapter #4 in the text. If the answer on a T/F is False, please correct or explain.

Question #1: True or False: When comparing two values, things work best if they are of the same data type.

Question #2: Explain table 4-2 in your own words.

Question #3: Explain table 4-3 in your own words.

Question #4: Why does Boolean logic make sense to explain decisions?

Question #5: When you have an if statement like this the else is done when _____________.

if amt > 5000
   msg = "Enough"
else
   msg = "Low"
end if

Question #6: Looking at the example above, if amt > 5000, what is done?

Question #7: What does the NOT operator do to a Boolean expression.

Question #8: True of False: ANDs are evaluated before ORs which means that the expression condA AND condB OR condC will be evaluated as condA AND condB must both be true or just condC must be true.

Question #9: True or False: ANDs are evaluated before ORs which means that the expression condA AND condB OR condC will be evaluated as condA must always be true and in addition either condB OR condC must be true.