QUESTIONS AND CORRECT RESPONSES
◉ Nested branches
Answer: A branch's statements can include any valid statements,
including another if-else branch.
◉ Equality operator
Answer: Checks whether two operand's values are the same (==) or
different (=!). Note that equality is ==, not just =.
◉ Relational operator
Answer: Checks how one operand's value relates to another, like
being greater than.
◉ Logical operator
Answer: Treats operands as being true or false, and evaluates to true
or false. Logical operators include and, or, not.
◉ Epsilon
Answer: The difference threshold indicating that floating-point
numbers are equal.
, ◉ if-else statement
Answer: An if expression with the true branch's sub-statements,
followed by an else part with any false branch sub-statements.
◉ if statement
Answer: An if expression followed by sub-statements, with no else
part.
◉ if-elseif statement
Answer: Starts with an if expression, followed by elseif expressions,
and ending with else; when a program reaches the statement,
exactly one of those branches will execute. When the else branch has
no statements, the else part is omitted.
◉ Loop
Answer: A program construct that repeatedly executes the loop's
statements (known as the loop body) while the loop's expression is
true; when false, execution proceeds past the loop. Each time
through a loop's statements is called an iteration.
◉ Infinite loop
Answer: A loop that never stops iterating. A common error is to
accidentally create an infinite loop, often by forgetting to update a