CS 7643 QUIZ 2 COMPLETE REVIEW NOTES
◉ The result of a relational operator can be assigned to a variable.
Answer: True
◉ The arithmetic operators have a lower precedence than the
relational operators.
Answer: False
◉ What is the relational operator.
Answer: <=
◉ What is the expression is used to determine if a is not less than b.
Answer: a>=b
◉ In python, the relational operators can be used to put character
strings in alphabetical order.
Answer: True
◉ The less than operator (<) should not be used to compare floating
point values.
Answer: False
, ◉ A character string can be used as the condition of an if statement.
Answer: True
◉ Boolean expression.
Answer: evaluates true or false
◉ Relational operators.
Answer: Relationship between two values and produce a Boolean
result
◉ 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
◉ The result of a relational operator can be assigned to a variable.
Answer: True
◉ The arithmetic operators have a lower precedence than the
relational operators.
Answer: False
◉ What is the relational operator.
Answer: <=
◉ What is the expression is used to determine if a is not less than b.
Answer: a>=b
◉ In python, the relational operators can be used to put character
strings in alphabetical order.
Answer: True
◉ The less than operator (<) should not be used to compare floating
point values.
Answer: False
, ◉ A character string can be used as the condition of an if statement.
Answer: True
◉ Boolean expression.
Answer: evaluates true or false
◉ Relational operators.
Answer: Relationship between two values and produce a Boolean
result
◉ 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