Constructs Flashcards

(12 cards)

1
Q

What is an abstract step?

A

A high-level action in an algorithm that describes what needs to be done without detailing how to do it.

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

What is an algorithm?

A

A step-by-step set of instructions designed to perform a specific task or solve a problem.

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

What is a branch in an algorithm?

A

A point in an algorithm where a decision is made, leading to different actions based on conditions.

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

What is an infinite loop?

A

A loop that never ends because the termination condition is never met or is incorrectly written.

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

What is input in programming?

A

Data that are provided to a program for processing.

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

What is a loop control variable?

A

A variable that determines whether the loop will continue running or stop, often incremented or modified within the loop.

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

What is a nested structure?

A

A programming construct where one control structure is placed inside another.

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

What is output in programming?

A

Data that are produced by a program and presented to the user or another system.

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

What is a pretest loop?

A

A loop that evaluates its condition before executing the body of the loop.

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

What is pseudocode?

A

A simplified, human-readable version of a program’s code that outlines the logic without strict syntax rules.

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

What is repetition (iteration)?

A

The act of executing a set of instructions multiple times, typically using loops.

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

What is selection in programming?

A

A control structure that allows a program to choose between different actions based on conditions.

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