4: Making Decisions

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

1/13

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 7:03 PM on 10/9/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

14 Terms

1
New cards

block

A group of statements that are enclosed in a set of braces.

2
New cards

block scope

A variable may be used only in the part of the program between the variable's definition and the closing brace of the block in which the variable is defined.

3
New cards

conditional expression

An expression that is written using the conditional operator.

4
New cards

conditionally executed

A statement that is executed only when a specific condition exists.

5
New cards

decision structure

A set of programming statements in which an action is taken only when a specific condition exists.

6
New cards

flag

A bool or integer variable that signals when some condition exists in a program.

7
New cards

input validation

The process of inspecting data given to a program by the user and determining if it is valid.

8
New cards

menu

A screen displaying a set of choices from which the user selects.

9
New cards

menu-driven program

A program that allows the user to determine the course of action by selecting it from a list of actions.

10
New cards

null statement

An empty statement that does nothing.

11
New cards

relational expression

An expression that uses a relational operator to test one value against another value.

12
New cards

sequence structure

A set of programming statements that are executed in sequence.

13
New cards

short-circuit evaluation

Stopping the evaluation of a compound Boolean expression as soon as the expression's value can be determined.

14
New cards

trailing else

The last else clause that does not have an if statement following it in an if/else if construct.