Chapter 3: Selection Control Structure

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/22

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering C++ Boolean values, operators, and selection control structures including if, if-else, nested-if, and switch statements.

Last updated 1:48 PM on 6/21/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

23 Terms

1
New cards

Boolean Values

The values TRUE (11) or FALSE (00) used in logic.

2
New cards

Relational Operators

A set of 66 binary operations that compare two operands to produce a logical result of TRUE (11) or FALSE (00).

3
New cards
<

The relational operator meaning 'Less than'.

4
New cards

The relational operator meaning 'Less than or equal'.

5
New cards

>

The relational operator meaning 'Greater'.

6
New cards

=

The relational operator meaning 'Greater than or equal'.

7
New cards

==

The relational operator meaning 'Equal'.

8
New cards

!=

The relational operator meaning 'Not equal'.

9
New cards

Simple Boolean Expressions

An expression in which two numbers (arithmetic values) are compared using a single relational operator.

10
New cards

Logical Operators

Operators in C++ used for combining logical values, including NOT (!!), AND (&&\&\&), and OR (||).

11
New cards

Logical NOT (!)

A unary operator that changes a TRUE value (non zero) to FALSE (00) and a FALSE value (00) to TRUE (11).

12
New cards

Logical AND (&&)

A binary operator that results in TRUE only if both operands are TRUE; otherwise, it is FALSE.

13
New cards

Logical OR (||)

A binary operator that results in FALSE only if both operands are FALSE; otherwise, it is TRUE.

14
New cards

Logical Priority

The order of evaluation where ()() is first, followed by !!, then arithmetic (,/,%*, /, \%, then +,+, -), then relational operators, then &&\&\&, and finally ||.

15
New cards

Selection Structure

A control structure where statements are executed based on conditions formed by Boolean expressions.

16
New cards

One-way Selection (if)

A selection structure where a statement is executed if a condition is TRUE, otherwise it is ignored.

17
New cards

Two-way Selection (if…else)

A structure that makes a decision between two alternatives; one set of statements executes if the condition is TRUE, and another if it is FALSE.

18
New cards

Multi-way Selection

Selection structures such as nested-if or switch statements used to handle multiple alternative conditions.

19
New cards

Nested-if

A structure where an if…else statement is included within another if…else statement.

20
New cards

Compound Statements

A sequence of statements enclosed in curly braces { } that is treated by C++ as a single statement.

21
New cards

Switch Statements

A composite statement used to make a decision between many alternatives based on integral types.

22
New cards

Break Statement

A statement used within a switch to cause the program to jump out of the switch block.

23
New cards

Default Label

An optional label in a switch statement that executes when none of the case constants match the switch expression.