Filters
Question type

Study Flashcards

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

Correct Answer

verifed

verified

You can use parentheses to override the default order of operations.

Correct Answer

verifed

verified

In a truth table, the expression ____ is true.


A) true AND true
B) true AND false
C) false AND true
D) false AND false

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

Every decision you make in a computer program involves evaluating a Boolean expression.

Correct Answer

verifed

verified

The NOT operator is a unary operator, meaning it takes only one operand.

Correct Answer

verifed

verified

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.


A) blocked
B) case
C) AND IF
D) logical

Correct Answer

verifed

verified

When you combine AND and OR operators within the same statement, which takes precedence?

Correct Answer

verifed

verified

When you combine AND and OR op...

View Answer

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

Correct Answer

verifed

verified

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.

Correct Answer

verifed

verified

In a truth table, the expression ____ is false.


A) true OR true
B) true OR false
C) false OR true
D) false OR false

Correct Answer

verifed

verified

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.

Correct Answer

verifed

verified

The NOT operator is a ____________________ operator, meaning it takes only one operand.

Correct Answer

verifed

verified

In any Boolean expression, the two values compared can be either variables or constants.

Correct Answer

verifed

verified

____ 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

Correct Answer

verifed

verified

____ 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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

Explain the purpose and use of the AND operator.

Correct Answer

verifed

verified

Most programming languages allow you to ...

View 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.


A) AND
B) OR
C) IF
D) XOR

Correct Answer

verifed

verified

When would you use a negative comparison?

Correct Answer

verifed

verified

Although negative comparisons can be awk...

View Answer

Showing 21 - 40 of 51

Related Exams

Show Answer