2.1.2 Designing, creating and refining algorithms Flashcards

1
Q

What processes happen within analysing a problem?

A

Input
Processes
Output

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

What is an input?

A

any data that will be entered into a system

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

What is processes?

A

include any validation, calculations or operations carried out on a set of data.

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

What is an output?

A

information that will be returned to the user

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

What is a structure diagram?

A

Used to graphically represent a problem and break it down into smaller problems.

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

What do Top-Level approaches allow?

A

individual elements to be tackled and eventually written as program and sub-program code.

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

What does Top-Level represent?

A

the problem and each level below it is that problem broken down into one or more subsections.

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

What is a circle used for within a flowchart?

A

used at the start or end point of a diagram

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

What is a parallelogram used for within a flowchart?

A

used to represent the input or output of data in a process

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

What is a diamond used for withinn a flowchart?

A

Used when a decision or choice must be made

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

What is a rectangle used for within a flowchart?

A

A process symbol, used to indicate a process or computational task being carried out.

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

What is the symbol of two rectangles together used for within a flowchart?

A

Used to represent a sub-routine that can be called at various points of an algorithm.

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

What is Pseudocode?

A

Not a formal programming language. Informal way of describing computer instructions that programmers use to help plan and program before writing it in a specific language

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

What are the characteristics of Pseudocode

A

Not designed to be understood directly by a computer, uses terminology, syntax and structure common to most coding languages but in simple English.

Simple mistakes that would halt a computer program, will not have an impact on pseudocode

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

What is a trace table?

A

Used to test an algorithm by examining each line of code step by step and predicting results.

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

What are common errors in algorithms?

A

User-generated syntax errors, caused by entering the wrong code
Logic error is a fault in the design or structure of an algorithm