Introduction To Programming Flashcards

(13 cards)

1
Q

What is an 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

What is a block in programming?

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

What is a dual-alternative if?

A

An if statement that provides two paths: one for when the condition is true and another for when it is false (also known as if-else).

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

What is a 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

What is a loop body?

A

The set of statements inside a loop that are executed each time the loop runs.

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

What are 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

What is a 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

What is a 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

What is a 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

What is a 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

What are 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

What is a structure in programming?

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

What is a 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