Chapter 3 Review: Decision Structures

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/11

flashcard set

Earn XP

Description and Tags

Flashcards covering key vocabulary related to Decision Structures from Chapter 3 review questions.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

12 Terms

1
New cards

decision structure

A structure that can execute a set of statements only under certain circumstances.

2
New cards

single alternative decision structure

A structure that provides one alternative path of execution.

3
New cards

Boolean expression

An expression that has a value of either True or False.

4
New cards

relational operators

The symbols >, <, and ==.

5
New cards

dual alternative decision structure

A structure that tests a condition and then takes one path if the condition is true, or another path if the condition is false.

6
New cards

if statement

Used to write a single alternative decision structure.

7
New cards

if-else statement

Used to write a dual alternative decision structure.

8
New cards

logical operators

and, or, and not.

9
New cards

and operator

Used to create a compound Boolean expression that is true only if both of its subexpressions are true.

10
New cards

or operator

Used to create a compound Boolean expression that is true if either of its subexpressions is true.

11
New cards

not operator

Takes a Boolean expression as its operand and reverses its logical value.

12
New cards

flag

A Boolean variable that signals when some condition exists in the program.