Chapter 3 Flashcards

1
Q

Boolean Data type

A

It is a primitive data type. Can only be true or false

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

boolean expression

A

An expression that evaluates to a boolean value

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

boolean value

A

True or false

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

conditional operator

A

The symbols ? and : appear together in a conditional expression; booleanExpression ? expression1 : expression2

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

dangling else ambiguity

A

Describes a common mistake where an else clause is a mismatch to an if clause.

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

debugging

A

To find errors in a program.

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

fall-through behavior

A

In a switch statement, once a case is matched, the statements starting from the matched case are executed until a break statement or the end of the switch statement is reached. This phenomenon is referred to as the fall-through behavior.

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

flowchart

A

Is a diagram that describes an algorithm or process, showing the steps as boxes of various kinds, and their order by connecting these with arrows.

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

lazy operator/short-circuit operator

A

Operators such as && and || that perform short circuit evaluation.

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

operator associativity

A

Defines the order in which operators will be evaluated in an expression if the operators have the same precedence order.

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

selection statement

A

A statement that uses if or switch statement to control the execution of the program.

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