programming Flashcards

1
Q

what is an algorithm?

A

an algorithm is a set of rules which need to be followed in a specific order in order for them to be successful.

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

how can algorithms be expressed?

A

as a flowchart or as pseudo code

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

what is a flowchart?

A

a flowchart is a diagrammatic representation of the data

flow and structure for the solution

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

what is pseudo code?

A

pseudo code is a structured form of English used to

define the steps needed to solve a problem

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

name the purpose of the following shapes in a flowchart:

  • diamond
  • square
  • rounded square
A
  • diamond: decision
  • square: inputs, outputs, processes
  • rounded square: start and stop
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what language is pseudo code in?

A

English

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

is pseudo code written in code?

A

no, it is written in English

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

what do the arrows in a flowchart symbolise?

A

the direction of data flow.

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

true or false?:

algorithms can be executed in any order.

A

false: they must be followed in a specific order.

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

what is an iteration?

A

an iteration is a loop in the code.

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