SLIDE 4 Control Structures I (Selection) Flashcards

1
Q

allows you to make
comparisons in a program.

A

relational operator

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

Relational Operators

A

== equal to
!= not equal to
< less than
<= less than or equal to
> greater than
>= greater than or equal to

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

In C++, the symbol ==, which consists of two equal signs, is called the

A

equality operator.

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

the symbol = is called the

A

assignment operator

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

For char values, whether an expression using relational operators evaluates to true or false
depends on a machine’s

A

collating sequence.

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