Exam 4: Making Decisions

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The keyword that is NOT included in a single-alternative selection is ____.

(Multiple Choice)
4.9/5
(37)

Any decision can be made using combinations of just two types of comparisons: equal and not equal.

(True/False)
4.7/5
(41)

When you combine AND and OR operators, the OR operators take precedence, meaning their Boolean values are evaluated first.

(True/False)
5.0/5
(38)

A(n) ____ decision is a decision in which two conditions must be true for an action to take place.

(Multiple Choice)
4.8/5
(36)

Most programming languages limit the number of AND and OR operators in an expression.

(True/False)
4.8/5
(31)

When you ask multiple questions before an outcome is determined, you create a ____ condition.

(Multiple Choice)
4.9/5
(37)

In an AND decision, first ask the question that is less likely to be ____________________.

(Short Answer)
4.9/5
(42)
Match each term with a statement below.
Used to override the default order of operations
AND
Will always evaluate to the same result
parentheses
Relational comparison operators
Boolean expression
Correct Answer:
Verified
Premises:
Responses:
Used to override the default order of operations
AND
Will always evaluate to the same result
parentheses
Relational comparison operators
Boolean expression
Part of a decision that executes only when the tested condition in the decision is false
a decision within another decision
An expression whose value can be only true or false
dead
Nested if
else clause
A path that can never be traveled
logical OR
When this operator is used, only one of the listed conditions must be met for the resulting action to take place
case structure
Using this operator, each Boolean expression must be true in order for the entire expression to be evaluated as true
=, >, =,
Used when you must nest a series of decisions about a single variable
trivial expressions
(Matching)
4.7/5
(37)

C#, C++, C, and Java use the symbol ____ as the logical OR operator.

(Multiple Choice)
4.8/5
(41)

How can you improve the efficiency of a nested decision?

(Essay)
4.9/5
(35)

When you combine AND and OR operators, the ____ operators take precedence, meaning their Boolean values are evaluated first.

(Multiple Choice)
4.8/5
(39)
Showing 41 - 51 of 51
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)