Quiz3 Flashcards

1
Q

You can use the conditional ____ operator within a Boolean expression to determine whether two ex-pressions are both true.

A

AND

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Using a(n) ____ with a switch structure can often be convenient.

A

enumeration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The conditional OR operator is written as (____).

A

||

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A ____ is a collection of one or more statements contained within a pair of curly braces.

A

block

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The Boolean logical inclusive OR operator is written as (____).

A

|

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A ____ structure involves choosing between alternative courses of action based on some value within a program.

A

decision

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

In a ____, one step follows another unconditionally.

A

sequence structure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

If you want to perform one action when a Boolean expression evaluates as true and an alternate action when it evaluates as false, you can use a(n) ____ statement.

A

if-else

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The NOT operator is written as ____.

A

!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

You can use the conditional ____ operator when you want some action to occur even if only one of two conditions is true.

A

OR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Not allowing code to reach the end of a case is known as the ____.

A

no fall through rule

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The Boolean logical AND operator is written as (____).

A

&

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The conditional operator ?: is a ____ operator.

A

ternary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The expressions in each part of an AND expression are evaluated only as much as necessary to deter-mine whether the entire expression is true or false. This feature is called ____ evaluation.

A

short-circuit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The keyword ____ optionally is used prior to any action that should occur if the test expression does not match any case.

A

default

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

The conditional AND operator is written as (____).

A

&&

17
Q

The keyword ____ usually terminates a switch structure at the end of each case.

A

break

18
Q

The ____ operator is used as an abbreviated version of the if-else statement.

A

conditional

19
Q

You use a(n) ____ statement to make a single-alternative decision.

A

if

20
Q

The keyword ____ starts the switch structure.

A

switch

21
Q

You can use the conditional ____ operator when you want some action to occur even if only one of two conditions is true.

A

OR

22
Q
A