Filters
Question type

Study Flashcards

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

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

You can use parentheses to override the ...

View Answer

Explain the purpose and use of the AND operator.

Correct Answer

verifed

verified

Most programming languages allow you to ...

View Answer

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

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


A) value
B) name
C) length
D) data type

Correct Answer

verifed

verified

____ operators require two operands.


A) Unary
B) Tertiary
C) Binary
D) Dual

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

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

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

Match each term with a statement below.

Premises
Nested if
Responses
OR
case structure
compound condition
dead
trivial expressions
=, >, =,
AND
else clause
parentheses
a decision within another decision

Correct Answer

OR
case structure
compound condition
dead
trivial expressions
=, >, =,
AND
else clause
parentheses
a decision within another decision

Match each term with a statement below.

Premises
A path that can never be traveled
Responses
compound condition
parentheses
=, >, =,
OR
case structure
a decision within another decision
AND
dead
trivial expressions
else clause

Correct Answer

compound condition
parentheses
=, >, =,
OR
case structure
a decision within another decision
AND
dead
trivial expressions
else clause

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

Explain what a range check is and provide an example.

Correct Answer

verifed

verified

When you use a range check, you compare ...

View Answer

Match each term with a statement below.

Premises
An evaluation with multiple parts
Responses
OR
case structure
compound condition
AND
trivial expressions
else clause
parentheses
=, >, =,
a decision within another decision
dead

Correct Answer

OR
case structure
compound condition
AND
trivial expressions
else clause
parentheses
=, >, =,
a decision within another decision
dead

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

Correct Answer

verifed

verified

Showing 41 - 60 of 60

Related Exams

Show Answer