Give 6 examples of comparison operators.
<, >, =, <=, >=, !=
What data type do comparison expressions evaluate to?
boolean
What is the purpose of an if statement?
to execute a block of code following the results of a statement
Is else required in order to use an if statement?
no
Describe the syntax (structure) of an if statement.
if (expression) {
code block
}
What are the three logical operators?
|, &, !
How do you compare two different expressions in the same condition?
(expression) (!, |, &) (expression)