chapter 4 Flashcards

1
Q

Action Statement

A

Statement following the expression in an “if” statement

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

associativity

A

order in which operators are grouped and evaluated

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

compound statement

A
  • block of statements

- consists of a sequence of statements enclosed in curly braces { }

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

conditional expression

A

an expression that uses a conditional operator

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

conditional operator

A
  • ternary operator written as “?:”
  • the 3 arguments explain what the condition is, what the result will be if the condition is true, and the result if the condition is false
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

decision maker

A

the expression in an “if” statement which determines whether to execute the statement that follows

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

logical (boolean) expression

A

expression that has a value of either true or false

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

logical (boolean) operators

A

operators that enable you to combine logical expressions

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

logical (boolean) values

A

“true” and “false”

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

nested

A

when one control statement is located within another

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

pairing an “else” with an “if”

A

the rule stating that an “else” statement is associated with he most recent incomplete “if” statement

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

pseudocode (pseudo)

A

informal mixture of C++ and ordinary language used to design an outline of a logical solution to a problem

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

relational operator

A

operator used to make comparisons in a program

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

selector

A

expression used in a “switch” statement that determines which case will be executed

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

short-circuit evaluation

A

process in which the computer evaluates a logical expression from left to right and stops as soon as the value of the expression is known

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

switch structure

A

selection structure that does not require the evaluation of a logical expression

17
Q

ternary operator

A

operator that makes 3 arguments