Constructs Flashcards

1
Q

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

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

branch

A

a point in an algorithm where a decision is made, leading to different actions based on conditions (e.g., if-then statements)

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

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

input

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

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

nested structure

A

a programming construct where one control structure (like a loop or a conditional statement) is placed inside another

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

output

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

pretest loop

A

a loop that evaluates its condition before executing the body of the loop, such as a while loop

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

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

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

selection

A

a control structure that allows a program to choose between different actions based on conditions (similar to a branch)

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