2.1 Algorithms - flow diagrams Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

terminal

A

shows start and end of an algorithm

rounded oval shape

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

input/ouput

A

shows input or output of data

parallelagram

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

decision/selection

A

shows yes/no or true/false decisions where there are two possible outcomes

rhombus shape

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

process

A

shows data processing e.g. a calculation

rectangle

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

subroutine

A

shows a function or procedure that has its own flow diagram

rectangle split into a main part with two smaller rectangles

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

line

A

represents control passing between the other symbols

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

Draw a flow chart for an algorithm to find the sum of 10 numbers and output the result [5]

A

start

entered = 0
sum = 0

INPUT
number

sum = sum + number
entered = entered + 1

Is entered = 10?

NO
(return to INPUT)

YES

OUTPUT
sum

end

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