COP1000C Quiz#4 Multiple Choice

7 September 2022
4.7 (114 reviews)
25 test answers

Unlock all answers in this set

Unlock answers (21)
question
Boonlean
answer
A ____ expression is one that represents only one of two states, usually expressed as true or False.
question
Else
answer
The keyword that is NOT included in a single-alternative selection is ____.
question
If-Then
answer
The ____ clause is the part of the decision that holds the action or actions that execute when the tested condition in the decision is true.
question
Binary
answer
____ operators require two operands.
question
Data type
answer
Both operands in a comparison expression must be the same ____.
question
String
answer
Usually, ____ variables are not considered to be equal unless they are identical.
question
Compound
answer
When you ask multiple questions before an outcome is determined, you create a ____ condition.
question
AND
answer
A(n) ____ decision is a decision in which two conditions must be true for an action to take place.
question
Cascading
answer
A series of nested if statements is also called a ____ if statement.
question
Case
answer
Most languages allow you to use a variation of the decision structure called the ____ structure when you must nest a series of decisions about a single variable.
question
First ask the question that is more likely to be false
answer
For maximum efficiency, a good rule of thumb in an AND decision is to ____.
question
AND
answer
Most programming languages allow you to ask two or more questions in a single comparison by using a(n) ____ operator that joins decisions in a single statement.
question
&&
answer
The conditional AND operator in Java, C++, and C# is ____.
question
Truth tables
answer
____ are diagrams used in mathematics and logic to help describe the truth of an entire expression based on the truth of its parts.
question
Four
answer
When creating a truth table, you must determine how many possible Boolean value combinations exist for the conditions. If there are two conditions, ____ combinations will exist.
question
True and True
answer
In a truth table, the expression ____ is true.
question
Short Circuit
answer
____ evaluation is when each part of an expression that uses an operator is evaluated only as far as necessary to determine whether the entire expression is true or false.
question
First ask the question that is more likely to be true
answer
For maximum efficiency, a good rule of thumb in an OR decision is to ____.
question
OR
answer
When you use the logical ____ operator, only one of the listed conditions must be met for the resulting action to take place.
question
True and False False and True False and False
answer
In a truth table, the expression ____ is false.
question
||
answer
C#, C++, C, and Java use the symbol ____ as the logical OR operator.
question
NOT
answer
You use the logical ____ operator to reverse the meaning of a Boolean expression.
question
Range Check
answer
You can perform a ____ by making comparisons using either the lowest or highest value in a range of values.
question
AND
answer
When you combine AND and OR operators, the ____ operators take precedence, meaning their Boolean values are evaluated first.
question
Parentheses
answer
You can use ____ for clarity and to override the default order of operations.