Q2-LG03-Selection-Structure-If

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

1/15

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:34 PM on 12/6/24
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

16 Terms

1
New cards

Selection Structure

A control structure used to execute certain statements based on conditions being true or false.

2
New cards

One-way selection

A selection structure where actions are taken based only on a single condition being true.

3
New cards

Two-way selection

A selection structure where different actions are executed based on a condition being either true or false.

4
New cards

Multi-selection

A selection structure that allows the program to choose from multiple actions based on the value of an expression, such as the switch statement.

5
New cards

IF Statement

A statement that executes a block of code if a specified boolean expression evaluates to true.

6
New cards

IF/ELSE Statement

A statement that executes one block of code if a condition is true and another block if the condition is false.

7
New cards

SWITCH Statement

A selection structure that allows execution of different parts of code based on the value of a variable.

8
New cards

Boolean Expression

An expression that evaluates to either true or false.

9
New cards

Relational Operators

Operators that compare two values or expressions and return a boolean value.

10
New cards

Logical Operators

Operators that combine multiple boolean expressions, evaluating them to true or false.

11
New cards

Conditional Execution

The execution of statements based on whether a condition evaluates to true or false.

12
New cards

Assignment Operator

The '=' operator used to assign a value to a variable, different from the equality operator '=='.

13
New cards

True and False

Reserved words in C++ representing the two boolean values; special constants.

14
New cards

Flowchart

A visual representation used to illustrate the flow of the program, particularly for control structures.

15
New cards

Example of IF statement

If average greater than 60, output 'PASSED'.

16
New cards

Logical Expression

An expression that involves variables and operators, evaluated to determine true or false.