2.1.2 creating algorithms Flashcards

1
Q

what is a flowchart for?

A

represent algorithms visually

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

process

A

rectangle

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

input/output

A

parallelogram

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

decision

A

diamond

  • a yes/no true/false decision
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

start/stop

A

rectangle round edges

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

logic error

A

the code will still run but not as intended

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

syntax error

A

causes error, code will not run

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

what is pseudocode?

A

simplified language that resembles real programming languages

no syntax

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

why use pseudocode?

A

quick + easy to understand
cannot be syntax error

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

while loop

A

has a condition at the beginning
keeps repeating until condition is met

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

for loop

A

executes the loop a specific number of times

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

iteration

A

repetition of a section of code

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

3 types of iteration

A

for
while
do

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