CS 7643 QUIZ 2 KNOWLEDGE ASSESSMENT
WITH ANSWER KEY
◉ Interval comparison.
Answer: Seeing if a value is between two other values
◉ Non-zero=true.
Answer: Rules of truthfulness
◉ Two if statements.
Answer: Functionally equivalent
◉ You can combine two if statements using....
Answer: A Boolean operator
◉ Not operator.
Answer: Unwary operator
◉ Truth table.
Answer: All possible combinations of truth values
, ◉ The and and or operators perform ....
Answer: Short-circuited evaluation
◉ The not operator requires two operands.
Answer: False
◉ If A and B are both false, then the expression A and B is false.
Answer: True
◉ If A is true and B is false, then the expression A or B is true.
Answer: True
◉ If A is false, then the B operant in the expression A and B is not
evaluated.
Answer: True
◉ If A is false, them the B operand in the expression A or B is not
evaluated.
Answer: False
◉ A function can call another count ion, also known as.
Answer: Invoking
WITH ANSWER KEY
◉ Interval comparison.
Answer: Seeing if a value is between two other values
◉ Non-zero=true.
Answer: Rules of truthfulness
◉ Two if statements.
Answer: Functionally equivalent
◉ You can combine two if statements using....
Answer: A Boolean operator
◉ Not operator.
Answer: Unwary operator
◉ Truth table.
Answer: All possible combinations of truth values
, ◉ The and and or operators perform ....
Answer: Short-circuited evaluation
◉ The not operator requires two operands.
Answer: False
◉ If A and B are both false, then the expression A and B is false.
Answer: True
◉ If A is true and B is false, then the expression A or B is true.
Answer: True
◉ If A is false, then the B operant in the expression A and B is not
evaluated.
Answer: True
◉ If A is false, them the B operand in the expression A or B is not
evaluated.
Answer: False
◉ A function can call another count ion, also known as.
Answer: Invoking