Moduel 2 Selection Structures

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

1/11

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:15 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

12 Terms

1
New cards

Flow of Control

Refers to the order in which the computer executes our code

2
New cards

Selection Structures

Allows us to add deviations or different paths in the flow of the program

3
New cards

Boolen Value

A value that only has two possible values or states - True or False

4
New cards

Logical Operators

Will takes Boolen operands and produce Boolen results

5
New cards

NOT

Unary operators, operators and operand

6
New cards

AND/OR

Binary, operates on two operands

7
New cards

IF statment

Allows the program ot execute a block of code only if a specific condition is met. Built using Boolen expressions

8
New cards

ELSE IF / ELIF

Condition will only be evalutated by the computer if the previous IF or ELIF statment failed. Evauluted to False

9
New cards

ELSE Statment

Must be placed after an IF statment or an ELIF statment. Does not have any conditional. Will always be executed if none of the conditions from the IF statments and ELIF statments were met.

10
New cards

Nesting

You can have another IF statment structure nested in another IF statment

11
New cards

Match Statements

Provids another selection structure to pragmatically decide which statments gets executed next

12
New cards

Cases

Will contain a value and a body

  • Numeric Value Integer → Case 1

  • Numeric Value String → Case “1”