2.1.2 - Designing, creating and refining algos Flashcards

1
Q

Advantages of pseudocode

A
  • Doesn’t matter if there are syntax errors as it doesn’t follow programming language syntax
  • Easily converted into a real programming language as it is generic
  • Easily understandable even for non-programmers
  • Easy to make changes to the design
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is an algorithm

A

A sequence of logical instruction used to solve a problem. Starting point before a program

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

Use of trace tables

A

Used to show how variables change during the execution of a program

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

Two types of algorithms

A
  • Pseudocode
  • Flow charts
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Advantages and disadvantages of flowcharts

A
  • Advantages - international standard, easy to see how it flows
  • Disadvantages - not easy to make changes at it has to be redrawn, can be massive for big programs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does an oval represent in a flowchart

A

Start/End

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

What does a rectangle represent in a flow chart

A

Process done by the program - any calculations for example

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

What does a diamond represent ina flow chart

A

A decision ( yes or no) has two separate paths coming from it

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

What does a parallelogram represent in a flow chart

A

An input or an output

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

Shape that represents a subroutine in a flowchart

A

Rectangle with extra short lines inside it

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

Defenition of pseudocode

A

English language structured like programming language code - simplified code

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