Introduction to Programming Flashcards

(13 cards)

1
Q

end-structure statement

A

a statement that marks the end of a block of code, such as the end of a loop or an if statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

block

A

a group of statements that are executed together, typically enclosed in curly braces or defined by indentation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

dual-alternative if

A

a selection statement where the code can branch to one of two possible paths based on a condition being true or false and there is no condition for skipping selection (aka if-else)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

loop structure

A

a way to repeat a block of code multiple times based on a condition, such as for loops or while loops

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

loop body

A

A loop body is the block of statements within a loop that executes every time the loop iterates.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

nesting structures

A

placing one control structure, such as a loop or an if statement, inside another

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

null case

A

a situation in which no action is taken, often used as the default case in a switch statement or when no conditions in an if statement are met

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

selection structure

A

a control structure that chooses different paths of execution based on conditions, such as if statements or switch cases

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

sequence structure

A

the simplest control structure where actions are performed one after another in order

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

single-alternative if

A

an if statement that provides only one path of execution if the condition is true; no action is taken if the condition is false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

stacking structures

A

placing one control structure after another in sequence

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

structure

A

an organized way to control the flow of a program, such as sequences, selections, and loops

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

while loop

A

a loop that repeats a block of code as long as a specified condition is true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly