2.1.2 creating algorithms Flashcards
1
Q
what is a flowchart for?
A
represent algorithms visually
2
Q
process
A
rectangle
- an action
3
Q
input/output
A
parallelogram
4
Q
decision
A
diamond
- a yes/no true/false decision
5
Q
start/stop
A
rectangle round edges
6
Q
logic error
A
the code will still run but not as intended
7
Q
syntax error
A
causes error, code will not run
8
Q
what is pseudocode?
A
simplified language that resembles real programming languages
no syntax
9
Q
why use pseudocode?
A
quick + easy to understand
cannot be syntax error
10
Q
while loop
A
has a condition at the beginning
keeps repeating until condition is met
11
Q
for loop
A
executes the loop a specific number of times
12
Q
iteration
A
repetition of a section of code
13
Q
3 types of iteration
A
for
while
do