Deck 4: Making Decisions

Full screen (f)
exit full mode
Question
A series of nested if statements is also called a ____ if statement.

A)stacked
B)cascading
C)indented
D)waterfall
Use Space or
up arrow
down arrow
to flip the card.
Question
A short-circuit evaluation is where each part of an expression is evaluated only as far as necessary to determine whether the entire expression is true or false.
Question
Both operands in a comparison expression must be the same ____.

A)value
B)name
C)length
D)data type
Question
A(n)____ decision is a decision in which two conditions must be true for an action to take place.

A)OR
B)XOR
C)AND
D)OR-ELSE
Question
You can use parentheses to override the default order of operations.
Question
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.

A)else
B)endif
C)if-then
D)Boolean
Question
When you combine AND and OR operators, the OR operators take precedence, meaning their Boolean values are evaluated first.
Question
When you ask multiple questions before an outcome is determined, you create a ____ condition.

A)dual-alternative
B)nested
C)single-alternative
D)compound
Question
____ operators require two operands.

A)Unary
B)Tertiary
C)Binary
D)Dual
Question
Most languages allow a specialized selection structure called the ____ structure when there are several distinct possible values for a single variable, and each value requires a different subsequent action.

A)cascading
B)case
C)nested if
D)short-circuit
Question
Most programming languages limit the number of AND and OR operators in an expression.
Question
Most programming languages allow you to ask two or more questions in a single comparison.
Question
The NOT operator is a unary operator, meaning it takes only one operand.
Question
When you need to satisfy two or more criteria to initiate an event in a program, you must make sure that the second decision is made entirely independently of the first decision.
Question
A ____ expression is one that represents only one of two states, usually expressed as true or false.

A)single-alternative
B)Boolean
C)Unicode
D)dual
Question
You use the case structure only when a series of decisions is based on a single expression.
Question
Usually, ____ variables are not considered to be equal unless they are identical.

A)string
B)integer
C)character
D)floating point
Question
Any decision can be made using combinations of just two types of comparisons: equal and not equal.
Question
The ____ clause of the decision is the part that executes only when the tested condition in the decision is false.

A)if
B)then
C)else
D)endif
Question
In any comparison, the two values compared can be either variables or constants.
Question
When you use the ____ operator, only one of the listed conditions must be met for the resulting action to take place.

A)OR
B)nested
C)AND
D)NOT
Question
When you ____________________ decisions because the resulting action requires that two conditions be true, you must decide which of the two decisions to make first.
Question
You use the  ____ operator to reverse the meaning of a Boolean expression.

A)AND
B)XOR
C)OR
D)NOT
Question
____ 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.

A)Truth
B)Short-circuit
C)Binary
D)Loop
Question
To avoid confusion, you can use ____statements instead of using AND and OR operators.

A)trivial
B)nested if
C)NOT
D)range check
Question
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
A ____________________ selection is one in which an action is associated with each of two possible outcomes.
Question
The conditional AND operator in Java, C++, and C# is ____.

A)&
B)AND
C)**
D)&&
Question
C#, C++, C, and Java use the symbol ____ as the logical OR operator.

A)%
B)$
C)||
D)^
Question
You can perform a ____ by making comparisons using either the lowest or highest value in a range of values.

A)range check
B)nested if
C)logic check
D)trivial expression
Question
You can use ____ for clarity and to override the default order of operations.

A)parentheses
B)truth tables
C)multiplication
D)NOT
Question
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.

A)AND
B)OR
C)IF
D)XOR
Question
For maximum efficiency, a good rule of thumb in an OR decision is to ____.

A)first ask the question that is more likely to be true
B)first ask the question that is more likely to be false
C)rewrite it as an AND decision and ask the question more likely to be true
D)rewrite it as an AND decision and ask the question more likely to be false
Question
For maximum efficiency, a good rule of thumb in an AND decision is to ____.

A)first ask the question that is more likely to be true
B)first ask the question that is more likely to be false
C)rewrite it as an OR decision and ask the question more likely to be true
D)rewrite it as an OR decision and ask the question more likely to be false
Question
In a truth table, the expression ____ is true.

A)true AND true
B)true AND false
C)false AND true
D)false AND false
Question
When you combine AND and OR operators, the ____ operators take precedence, meaning their Boolean values are evaluated first.

A)addition
B)AND
C)OR
D)division
Question
In a truth table, the expression ____ is false.

A)true OR true
B)true OR false
C)false OR true
D)false OR false
Question
In an AND decision, first ask the question that is less likely to be ____________________.
Question
____ are diagrams used in mathematics and logic to help describe the truth of an entire expression based on the truth of its parts.

A)Decision matrices
B)Decision diagrams
C)Truth diagrams
D)Truth tables
Question
The NOT operator is a ____________________ operator, meaning it takes only one operand.
Question
When you combine AND and OR operators within the same statement, which takes precedence?
Question
In an OR decision, why is it more efficient to first ask the question that is more likely to be true?
Question
How can you avoid common errors in an AND selection?
Question
How can you improve the efficiency of a nested decision?
Question
Match between columns
Used to override the default order of operations
=, >, =,
Used to override the default order of operations
case structure
Used to override the default order of operations
AND
Used to override the default order of operations
parentheses
Used to override the default order of operations
compound condition
Used to override the default order of operations
OR
Used to override the default order of operations
else clause
Used to override the default order of operations
dead
Used to override the default order of operations
trivial expressions
Used to override the default order of operations
a decision within another decision
Question
Explain the purpose and use of the AND operator.
Question
Match between columns
A path that can never be traveled
=, >, =,
A path that can never be traveled
case structure
A path that can never be traveled
AND
A path that can never be traveled
parentheses
A path that can never be traveled
compound condition
A path that can never be traveled
OR
A path that can never be traveled
else clause
A path that can never be traveled
dead
A path that can never be traveled
trivial expressions
A path that can never be traveled
a decision within another decision
Question
Match between columns
When this operator is used, only one of the listed conditions must be met for the resulting action to take place
=, >, =,
When this operator is used, only one of the listed conditions must be met for the resulting action to take place
case structure
When this operator is used, only one of the listed conditions must be met for the resulting action to take place
AND
When this operator is used, only one of the listed conditions must be met for the resulting action to take place
parentheses
When this operator is used, only one of the listed conditions must be met for the resulting action to take place
compound condition
When this operator is used, only one of the listed conditions must be met for the resulting action to take place
OR
When this operator is used, only one of the listed conditions must be met for the resulting action to take place
else clause
When this operator is used, only one of the listed conditions must be met for the resulting action to take place
dead
When this operator is used, only one of the listed conditions must be met for the resulting action to take place
trivial expressions
When this operator is used, only one of the listed conditions must be met for the resulting action to take place
a decision within another decision
Question
Match between columns
Using this operator, an expression that tests a condition with two parts that must both evaluate to true for an action to take place
=, >, =,
Using this operator, an expression that tests a condition with two parts that must both evaluate to true for an action to take place
case structure
Using this operator, an expression that tests a condition with two parts that must both evaluate to true for an action to take place
AND
Using this operator, an expression that tests a condition with two parts that must both evaluate to true for an action to take place
parentheses
Using this operator, an expression that tests a condition with two parts that must both evaluate to true for an action to take place
compound condition
Using this operator, an expression that tests a condition with two parts that must both evaluate to true for an action to take place
OR
Using this operator, an expression that tests a condition with two parts that must both evaluate to true for an action to take place
else clause
Using this operator, an expression that tests a condition with two parts that must both evaluate to true for an action to take place
dead
Using this operator, an expression that tests a condition with two parts that must both evaluate to true for an action to take place
trivial expressions
Using this operator, an expression that tests a condition with two parts that must both evaluate to true for an action to take place
a decision within another decision
Question
When would you use a negative comparison?
Question
How can you avoid common errors in an OR selection?
Question
Match between columns
Used when there are several distinct possible values for a single variable, and each value requires a different subsequent action
=, >, =,
Used when there are several distinct possible values for a single variable, and each value requires a different subsequent action
case structure
Used when there are several distinct possible values for a single variable, and each value requires a different subsequent action
AND
Used when there are several distinct possible values for a single variable, and each value requires a different subsequent action
parentheses
Used when there are several distinct possible values for a single variable, and each value requires a different subsequent action
compound condition
Used when there are several distinct possible values for a single variable, and each value requires a different subsequent action
OR
Used when there are several distinct possible values for a single variable, and each value requires a different subsequent action
else clause
Used when there are several distinct possible values for a single variable, and each value requires a different subsequent action
dead
Used when there are several distinct possible values for a single variable, and each value requires a different subsequent action
trivial expressions
Used when there are several distinct possible values for a single variable, and each value requires a different subsequent action
a decision within another decision
Question
Match between columns
Nested if
=, >, =,
Nested if
case structure
Nested if
AND
Nested if
parentheses
Nested if
compound condition
Nested if
OR
Nested if
else clause
Nested if
dead
Nested if
trivial expressions
Nested if
a decision within another decision
Question
Match between columns
Relational comparison operators
=, >, =,
Relational comparison operators
case structure
Relational comparison operators
AND
Relational comparison operators
parentheses
Relational comparison operators
compound condition
Relational comparison operators
OR
Relational comparison operators
else clause
Relational comparison operators
dead
Relational comparison operators
trivial expressions
Relational comparison operators
a decision within another decision
Question
List the three types of comparisons that enable the making of any decision.
Question
Match between columns
Will always evaluate to the same value
=, >, =,
Will always evaluate to the same value
case structure
Will always evaluate to the same value
AND
Will always evaluate to the same value
parentheses
Will always evaluate to the same value
compound condition
Will always evaluate to the same value
OR
Will always evaluate to the same value
else clause
Will always evaluate to the same value
dead
Will always evaluate to the same value
trivial expressions
Will always evaluate to the same value
a decision within another decision
Question
Match between columns
Part of a decision that executes only when the tested condition in the decision is false
=, >, =,
Part of a decision that executes only when the tested condition in the decision is false
case structure
Part of a decision that executes only when the tested condition in the decision is false
AND
Part of a decision that executes only when the tested condition in the decision is false
parentheses
Part of a decision that executes only when the tested condition in the decision is false
compound condition
Part of a decision that executes only when the tested condition in the decision is false
OR
Part of a decision that executes only when the tested condition in the decision is false
else clause
Part of a decision that executes only when the tested condition in the decision is false
dead
Part of a decision that executes only when the tested condition in the decision is false
trivial expressions
Part of a decision that executes only when the tested condition in the decision is false
a decision within another decision
Question
List three techniques to avoid confusion when mixing AND and OR operators.
Question
Match between columns
An evaluation with multiple parts
=, >, =,
An evaluation with multiple parts
case structure
An evaluation with multiple parts
AND
An evaluation with multiple parts
parentheses
An evaluation with multiple parts
compound condition
An evaluation with multiple parts
OR
An evaluation with multiple parts
else clause
An evaluation with multiple parts
dead
An evaluation with multiple parts
trivial expressions
An evaluation with multiple parts
a decision within another decision
Question
Explain what a range check is and provide an example.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/60
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 4: Making Decisions
1
A series of nested if statements is also called a ____ if statement.

A)stacked
B)cascading
C)indented
D)waterfall
B
2
A short-circuit evaluation is where each part of an expression is evaluated only as far as necessary to determine whether the entire expression is true or false.
True
3
Both operands in a comparison expression must be the same ____.

A)value
B)name
C)length
D)data type
D
4
A(n)____ decision is a decision in which two conditions must be true for an action to take place.

A)OR
B)XOR
C)AND
D)OR-ELSE
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
5
You can use parentheses to override the default order of operations.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
6
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.

A)else
B)endif
C)if-then
D)Boolean
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
7
When you combine AND and OR operators, the OR operators take precedence, meaning their Boolean values are evaluated first.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
8
When you ask multiple questions before an outcome is determined, you create a ____ condition.

A)dual-alternative
B)nested
C)single-alternative
D)compound
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
9
____ operators require two operands.

A)Unary
B)Tertiary
C)Binary
D)Dual
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
10
Most languages allow a specialized selection structure called the ____ structure when there are several distinct possible values for a single variable, and each value requires a different subsequent action.

A)cascading
B)case
C)nested if
D)short-circuit
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
11
Most programming languages limit the number of AND and OR operators in an expression.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
12
Most programming languages allow you to ask two or more questions in a single comparison.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
13
The NOT operator is a unary operator, meaning it takes only one operand.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
14
When you need to satisfy two or more criteria to initiate an event in a program, you must make sure that the second decision is made entirely independently of the first decision.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
15
A ____ expression is one that represents only one of two states, usually expressed as true or false.

A)single-alternative
B)Boolean
C)Unicode
D)dual
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
16
You use the case structure only when a series of decisions is based on a single expression.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
17
Usually, ____ variables are not considered to be equal unless they are identical.

A)string
B)integer
C)character
D)floating point
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
18
Any decision can be made using combinations of just two types of comparisons: equal and not equal.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
19
The ____ clause of the decision is the part that executes only when the tested condition in the decision is false.

A)if
B)then
C)else
D)endif
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
20
In any comparison, the two values compared can be either variables or constants.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
21
When you use the ____ operator, only one of the listed conditions must be met for the resulting action to take place.

A)OR
B)nested
C)AND
D)NOT
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
22
When you ____________________ decisions because the resulting action requires that two conditions be true, you must decide which of the two decisions to make first.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
23
You use the  ____ operator to reverse the meaning of a Boolean expression.

A)AND
B)XOR
C)OR
D)NOT
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
24
____ 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.

A)Truth
B)Short-circuit
C)Binary
D)Loop
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
25
To avoid confusion, you can use ____statements instead of using AND and OR operators.

A)trivial
B)nested if
C)NOT
D)range check
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
26
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.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
27
A ____________________ selection is one in which an action is associated with each of two possible outcomes.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
28
The conditional AND operator in Java, C++, and C# is ____.

A)&
B)AND
C)**
D)&&
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
29
C#, C++, C, and Java use the symbol ____ as the logical OR operator.

A)%
B)$
C)||
D)^
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
30
You can perform a ____ by making comparisons using either the lowest or highest value in a range of values.

A)range check
B)nested if
C)logic check
D)trivial expression
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
31
You can use ____ for clarity and to override the default order of operations.

A)parentheses
B)truth tables
C)multiplication
D)NOT
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
32
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.

A)AND
B)OR
C)IF
D)XOR
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
33
For maximum efficiency, a good rule of thumb in an OR decision is to ____.

A)first ask the question that is more likely to be true
B)first ask the question that is more likely to be false
C)rewrite it as an AND decision and ask the question more likely to be true
D)rewrite it as an AND decision and ask the question more likely to be false
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
34
For maximum efficiency, a good rule of thumb in an AND decision is to ____.

A)first ask the question that is more likely to be true
B)first ask the question that is more likely to be false
C)rewrite it as an OR decision and ask the question more likely to be true
D)rewrite it as an OR decision and ask the question more likely to be false
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
35
In a truth table, the expression ____ is true.

A)true AND true
B)true AND false
C)false AND true
D)false AND false
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
36
When you combine AND and OR operators, the ____ operators take precedence, meaning their Boolean values are evaluated first.

A)addition
B)AND
C)OR
D)division
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
37
In a truth table, the expression ____ is false.

A)true OR true
B)true OR false
C)false OR true
D)false OR false
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
38
In an AND decision, first ask the question that is less likely to be ____________________.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
39
____ are diagrams used in mathematics and logic to help describe the truth of an entire expression based on the truth of its parts.

A)Decision matrices
B)Decision diagrams
C)Truth diagrams
D)Truth tables
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
40
The NOT operator is a ____________________ operator, meaning it takes only one operand.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
41
When you combine AND and OR operators within the same statement, which takes precedence?
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
42
In an OR decision, why is it more efficient to first ask the question that is more likely to be true?
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
43
How can you avoid common errors in an AND selection?
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
44
How can you improve the efficiency of a nested decision?
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
45
Match between columns
Used to override the default order of operations
=, >, =,
Used to override the default order of operations
case structure
Used to override the default order of operations
AND
Used to override the default order of operations
parentheses
Used to override the default order of operations
compound condition
Used to override the default order of operations
OR
Used to override the default order of operations
else clause
Used to override the default order of operations
dead
Used to override the default order of operations
trivial expressions
Used to override the default order of operations
a decision within another decision
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
46
Explain the purpose and use of the AND operator.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
47
Match between columns
A path that can never be traveled
=, >, =,
A path that can never be traveled
case structure
A path that can never be traveled
AND
A path that can never be traveled
parentheses
A path that can never be traveled
compound condition
A path that can never be traveled
OR
A path that can never be traveled
else clause
A path that can never be traveled
dead
A path that can never be traveled
trivial expressions
A path that can never be traveled
a decision within another decision
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
48
Match between columns
When this operator is used, only one of the listed conditions must be met for the resulting action to take place
=, >, =,
When this operator is used, only one of the listed conditions must be met for the resulting action to take place
case structure
When this operator is used, only one of the listed conditions must be met for the resulting action to take place
AND
When this operator is used, only one of the listed conditions must be met for the resulting action to take place
parentheses
When this operator is used, only one of the listed conditions must be met for the resulting action to take place
compound condition
When this operator is used, only one of the listed conditions must be met for the resulting action to take place
OR
When this operator is used, only one of the listed conditions must be met for the resulting action to take place
else clause
When this operator is used, only one of the listed conditions must be met for the resulting action to take place
dead
When this operator is used, only one of the listed conditions must be met for the resulting action to take place
trivial expressions
When this operator is used, only one of the listed conditions must be met for the resulting action to take place
a decision within another decision
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
49
Match between columns
Using this operator, an expression that tests a condition with two parts that must both evaluate to true for an action to take place
=, >, =,
Using this operator, an expression that tests a condition with two parts that must both evaluate to true for an action to take place
case structure
Using this operator, an expression that tests a condition with two parts that must both evaluate to true for an action to take place
AND
Using this operator, an expression that tests a condition with two parts that must both evaluate to true for an action to take place
parentheses
Using this operator, an expression that tests a condition with two parts that must both evaluate to true for an action to take place
compound condition
Using this operator, an expression that tests a condition with two parts that must both evaluate to true for an action to take place
OR
Using this operator, an expression that tests a condition with two parts that must both evaluate to true for an action to take place
else clause
Using this operator, an expression that tests a condition with two parts that must both evaluate to true for an action to take place
dead
Using this operator, an expression that tests a condition with two parts that must both evaluate to true for an action to take place
trivial expressions
Using this operator, an expression that tests a condition with two parts that must both evaluate to true for an action to take place
a decision within another decision
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
50
When would you use a negative comparison?
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
51
How can you avoid common errors in an OR selection?
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
52
Match between columns
Used when there are several distinct possible values for a single variable, and each value requires a different subsequent action
=, >, =,
Used when there are several distinct possible values for a single variable, and each value requires a different subsequent action
case structure
Used when there are several distinct possible values for a single variable, and each value requires a different subsequent action
AND
Used when there are several distinct possible values for a single variable, and each value requires a different subsequent action
parentheses
Used when there are several distinct possible values for a single variable, and each value requires a different subsequent action
compound condition
Used when there are several distinct possible values for a single variable, and each value requires a different subsequent action
OR
Used when there are several distinct possible values for a single variable, and each value requires a different subsequent action
else clause
Used when there are several distinct possible values for a single variable, and each value requires a different subsequent action
dead
Used when there are several distinct possible values for a single variable, and each value requires a different subsequent action
trivial expressions
Used when there are several distinct possible values for a single variable, and each value requires a different subsequent action
a decision within another decision
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
53
Match between columns
Nested if
=, >, =,
Nested if
case structure
Nested if
AND
Nested if
parentheses
Nested if
compound condition
Nested if
OR
Nested if
else clause
Nested if
dead
Nested if
trivial expressions
Nested if
a decision within another decision
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
54
Match between columns
Relational comparison operators
=, >, =,
Relational comparison operators
case structure
Relational comparison operators
AND
Relational comparison operators
parentheses
Relational comparison operators
compound condition
Relational comparison operators
OR
Relational comparison operators
else clause
Relational comparison operators
dead
Relational comparison operators
trivial expressions
Relational comparison operators
a decision within another decision
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
55
List the three types of comparisons that enable the making of any decision.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
56
Match between columns
Will always evaluate to the same value
=, >, =,
Will always evaluate to the same value
case structure
Will always evaluate to the same value
AND
Will always evaluate to the same value
parentheses
Will always evaluate to the same value
compound condition
Will always evaluate to the same value
OR
Will always evaluate to the same value
else clause
Will always evaluate to the same value
dead
Will always evaluate to the same value
trivial expressions
Will always evaluate to the same value
a decision within another decision
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
57
Match between columns
Part of a decision that executes only when the tested condition in the decision is false
=, >, =,
Part of a decision that executes only when the tested condition in the decision is false
case structure
Part of a decision that executes only when the tested condition in the decision is false
AND
Part of a decision that executes only when the tested condition in the decision is false
parentheses
Part of a decision that executes only when the tested condition in the decision is false
compound condition
Part of a decision that executes only when the tested condition in the decision is false
OR
Part of a decision that executes only when the tested condition in the decision is false
else clause
Part of a decision that executes only when the tested condition in the decision is false
dead
Part of a decision that executes only when the tested condition in the decision is false
trivial expressions
Part of a decision that executes only when the tested condition in the decision is false
a decision within another decision
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
58
List three techniques to avoid confusion when mixing AND and OR operators.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
59
Match between columns
An evaluation with multiple parts
=, >, =,
An evaluation with multiple parts
case structure
An evaluation with multiple parts
AND
An evaluation with multiple parts
parentheses
An evaluation with multiple parts
compound condition
An evaluation with multiple parts
OR
An evaluation with multiple parts
else clause
An evaluation with multiple parts
dead
An evaluation with multiple parts
trivial expressions
An evaluation with multiple parts
a decision within another decision
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
60
Explain what a range check is and provide an example.
Unlock Deck
Unlock for access to all 60 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 60 flashcards in this deck.