Constructs Flashcards

learn how to express algorithms and use simple variables within them (12 cards)

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

When instructions in a program/algorithm can branch off into different actions depending on conditions, such as with an if, if/else or while statement. (Selection is choosing the path, branch is walking the path)

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

infinite loop

A

An infinite loop is a loop that never ends because its stop-condition is never satisfied or is missing.

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

input

A

when the program receives and processes data from any source

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

loop control variable

A

The variable that determines if a loop continues or ends

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

nested structure

A

When you have instructions placed inside another set of instructions.

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

output

A

Any data that’s given/posted by the program to either a user or system.

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

pretest loop

A

a loop that checks its condition to stop or continue before running, such as a while loop.

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

pseudocode

A

Fake code written as close to plain English as possible so you can focus on problem solving without worrying about syntax.

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. (Selection is choosing the path, branching is walking it).

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