CHAP 4 SELECTION STRUCTURES Flashcards

(6 cards)

1
Q

combines two logical expressions and requires that both expressions be TRUE for the entire expression to be TRUE.

A

AND ( && ) - logical and

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

precedes a single expression and gives its opposite as the result.

A

not (!)

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

an expression that evaluates to either true or false.

A

boolean exp.

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

combines two logical expressions and states that if either or both of the expressions are TRUE, the entire expression is TRUE

A

OR ( || ) - logical or

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

When boolean expressions are formed they must set up a relationship between items in the expression. This relationship is set up using a set of operators called the [ ] operators

A

relational

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

choosing between two or more alternative actions.

A

selection

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