T6 - Flowcharts/Pseudo-code Flashcards

1
Q

Variable

A
  • location in memory in which you can temporarily store a value such as a string
    or number
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Algorithm

A
  • series of steps to solve a problem or carry out a task
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Sub programs

A
  • used when you wish to call another procedure or function
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

three programming constructs used to control the flow of a program:

A

Sequence
Selection
Iteration (repetition)

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

Sequence:

A

A sequence is a series of steps which are completed one after the other

statements are executed one by one, in the order they are written

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

Selection:

A

is the ability to choose different paths through a program
In flowcharts, decision symbols are used for selection

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

Iteration:

A

means repeating a part of a program
- repeating or looping

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

eg of iteration

A

for … next
while … endwhile
do … until (doesn’t exist in python)

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

Boolean operators:

A

>

greater than =	greater than or equal to <	less than <=	less than or equal to ==	equal to !=	not equal to
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

integer

A

whole number

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

real

A

number with a decimal point

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

boolean

A

true or false value

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

character

A

single alphabetic / numeric character

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

string

A

sequence of one or more characters

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

Pseudocode:

A

kind of structured English for describing algorithms
allows a programmer to focus on the logic of the algorithm without being distracted by the exact syntax of the programming language

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

Selection:

A

An IF statement is a type of selection statement
The next statement to be executed depends on whether the condition being tested is TRUE or FALSE

17
Q

The switch/case statement

A
  • used if there are several possible options to be tested
18
Q

Do… until loop:

A

Use this when you want to keep on executing a loop until a certain condition is TRUE
The condition is tested at the end of the loop

19
Q

How to find mistakes in programmes:

A

trace tables

20
Q

Use a trace table:

A

programmer goes through the code, line by line, writing down the values of variables

21
Q

Trace tables:

A

determine the outputs from a program as it runs
enable a programmer to find errors in their programs

22
Q

Advantages of trace tables:

A

Determining the purpose of an algorithm
Finding the output of an algorithm
Finding errors in an algorithm

23
Q

Drawing trace tables:

A

make a column for each variable used, in the order in which they appear
You don’t need to fill in a value for a variable which does not change in a particular row
A row is used for each iteration

24
Q

Logical error -

A

when programmes work but gives a result that wasn’t intended by the programmer.
the logic of the program is incorrect

25
Q

Syntax error

A
  • programme won’t work
    doesn’t follow the rules of the language
26
Q

Sequence in flow chart

A

In a flow diagram they are shown as process, input or output symbols shown one after the other

27
Q

Iteration in flow charts

A

In flowcharts, iteration = arrows that repeat a section of the flowchart
A decision will control whether more iterations are required