Filters
Question type

Study Flashcards

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

E) C) and D)
F) B) and C)

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

E) A) and B)
F) None of the above

Correct Answer

verifed

verified

____ operators require two operands.


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

E) B) and D)
F) A) and D)

Correct Answer

verifed

verified

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


A) &
B) AND
C) **
D) &&

E) A) and B)
F) A) and C)

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

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.

A) True
B) False

Correct Answer

verifed

verified

When would you use a negative comparison?

Correct Answer

verifed

verified

Although negative comparisons can be awk...

View Answer

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

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

E) A) and D)
F) C) and D)

Correct Answer

verifed

verified

Match each term with a statement below. -Part of a decision that executes only when the tested condition in the decision is false


A) =,>,<,>=,<=,and <>
B) case structure
C) AND
D) parentheses
E) compound condition?
F) OR
G) else clause
H) dead
I) trivial expressions
J) a decision within another decision

K) B) and E)
L) C) and F)

Correct Answer

verifed

verified

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

E) All of the above
F) B) and C)

Correct Answer

verifed

verified

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


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

E) C) and D)
F) A) and C)

Correct Answer

verifed

verified

Match each term with a statement below. -Relational comparison operators


A) =,>,<,>=,<=,and <>
B) case structure
C) AND
D) parentheses
E) compound condition?
F) OR
G) else clause
H) dead
I) trivial expressions
J) a decision within another decision

K) A) and I)
L) B) and F)

Correct Answer

verifed

verified

Match each term with a statement below. -A path that can never be traveled


A) =,>,<,>=,<=,and <>
B) case structure
C) AND
D) parentheses
E) compound condition?
F) OR
G) else clause
H) dead
I) trivial expressions
J) a decision within another decision

K) C) and H)
L) G) and J)

Correct Answer

verifed

verified

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


A) stacked
B) cascading
C) indented
D) waterfall

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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

A) True
B) 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

E) C) and D)
F) B) and C)

Correct Answer

verifed

verified

Match each term with a statement below. -Will always evaluate to the same value


A) =,>,<,>=,<=,and <>
B) case structure
C) AND
D) parentheses
E) compound condition?
F) OR
G) else clause
H) dead
I) trivial expressions
J) a decision within another decision

K) A) and E)
L) D) and F)

Correct Answer

verifed

verified

Showing 41 - 60 of 60

Related Exams

Show Answer