CS Chapter 3
When a program compares characters, it actually compares the __________ codes
ASCII
A(n) __________ expression has a value of either true or false.
Boolean
T/F A compound Boolean expression created with the or operator is true only when one subexpression is true.
F
T/F A program can be made of only one type of control structure. You cannot combine structures.
F
T/F A single alternative decision structure tests a condition and then takes one path if the condition is true, or another path if the condition is false.
F
T/F It is best to use the or operator when determining whether a number is inside a range.
F
T/F You can write any program using only sequence structures.
F
T/F A compound Boolean expression created with the and operator is true only when both subexpressions are true.
T
T/F A decision structure can be nested inside another decision structure.
T
A compound Boolean expression created with the __________ operator is true only if both of its subexpressions are true.
and
A ___________ structure can execute a set of statements only under certain circumstances
decision
A(n) _________ structure tests a condition and then takes one path if the condition is true, or another path if the condition is false.
dual alternative decision
A ___________ is a Boolean variable that signals when some condition exists in the program.
flag
Boolean variables are commonly used as ___________ and if it is set to ___________, it indicates the condition does not exist.
flags, False
You can use an ____________ statement to write a single alternative decision structure.
if
The __________ statement causes one or more statements to execute only when a Boolean expression is __________.
if, true
You use a(n) __________ statement to write a dual alternative decision structure.
if-else
and, or, and not are __________ operators.
logical operators
The ___________ operator takes a Boolean expression as its operand and reverses its logical value.
not
A compound Boolean expression created with the _________ operator is true if either of its subexpressions is true.
or
The symbols >,< and == are all ___________ operators.
relational
A logical design that controls the order in which a set of statements execute is called a __________.
sequence structure
If the expression on the left side of the and operator is false, the expression on the right side will not be checked. This is called as __________.
short-circuit evaluation
A____________ structure provides one alternative path of execution.
single alternative decision