Exam 4: Making Decisions

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

When you use the logical ____ operator, only one of the listed conditions must be met for the resulting action to take place.

Free
(Multiple Choice)
4.9/5
(40)
Correct Answer:
Verified

A

In an OR decision, why is it more efficient to first ask the question that is more likely to be true?

Free
(Essay)
4.8/5
(28)
Correct Answer:
Verified

The general rule is: In an OR decision, first ask the question that is more likely to be true. This approach eliminates as many executions of the second decision as possible, and the time it takes to process all the data is decreased. As with the AND situation, in an OR situation, it is more efficient to eliminate as many extra decisions as possible.

When you ____________________ decisions because the resulting action requires that two conditions be true, you must decide which of the two decisions to make first.

Free
(Short Answer)
4.7/5
(35)
Correct Answer:
Verified

nest

Usually, ____ variables are not considered to be equal unless they are identical.

(Multiple Choice)
4.8/5
(31)

The conditional AND operator in Java, C++, and C# is ____.

(Multiple Choice)
4.8/5
(36)

A series of nested if statements is also called a ____ if statement.

(Multiple Choice)
4.9/5
(39)

Explain what a range check is and provide an example.

(Essay)
4.7/5
(40)

You use the logical ____ operator to reverse the meaning of a Boolean expression.

(Multiple Choice)
4.9/5
(42)

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.

(Multiple Choice)
4.8/5
(32)

Who was George Boole and what did he do?

(Essay)
4.9/5
(44)

Describe a Boolean expression.

(Essay)
4.7/5
(36)

List the three types of comparisons that enable the making of any decision.

(Essay)
4.9/5
(41)

A ____ expression is one that represents only one of two states, usually expressed as true or false.

(Multiple Choice)
5.0/5
(44)

List three techniques to avoid confusion when mixing AND and OR operators.

(Essay)
4.7/5
(44)

Most programming languages allow you to ask two or more questions in a single comparison.

(True/False)
4.9/5
(36)

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/False)
4.8/5
(45)

A ____________________ selection is one in which an action is associated with each of two possible outcomes.

(Short Answer)
4.8/5
(32)

____ operators require two operands.

(Multiple Choice)
4.9/5
(34)

Both operands in a comparison expression must be the same ____.

(Multiple Choice)
4.8/5
(39)

You can use ____ for clarity and to override the default order of operations.

(Multiple Choice)
4.9/5
(32)
Showing 1 - 20 of 51
close modal

Filters

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