3. Branches Flashcards
In a program, a ____ is a sequence of statements only executed under a certain condition.
branch
A decision and its two branches are often called ____ branches.
if-else
A(n) ____ operator checks whether two operands are the same (==) or different (!=).
equality
An expression involving an equality operator evaluates to a ____ value.
Boolean
A(n) ____ operator checks how one operand’s value relates to another, like being greater than.
relational
True or false: floating-point types should not be compared using the equality operator (==), due to the imprecise representation of floating-point numbers.
True
Pressing Enter or Return creates what character?
The newline character (/n)
What are the precedence rules for arithmetic, logical, and relational operators?
Parentheses
Logical not
Arithmetic operators (using their precedence rules)
Relational operators
Equality and inequality operators
Logical and
Logical or
The difference threshold indicating that floating-point numbers are equal is often called the ____.
epsilon
What is a common value for epsilon?
0.0001
The part of the 32-bit floating-point representation that contains its significant digits is called the ____ or the ____.
mantissa, significand