2.1 Pseudocode and diagrams Flashcards

1
Q

What is pseudocode?

A

Pseudocode is an alternative, text-based way of representing the sequence of steps in an algorithm
- Pseudocode can be thought of as a simplified form of programming code

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

What does pseudocode allow us to do?

A
  • It allows us to lay down the logic of a problem in an almost-like-real-code way without worrying about the actual rules and syntax of a particular language
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the terminal symbol?

A

Represents the start or the end of a process

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

What is the process symbol?

A

Represents something being initialised, processed, or calculated

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

What is the decision symbol?

A
  • Represents a decision
  • It usually has YES or NO and TRUE or FALSE outcomes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the input/output shape?

A
  • Represents the input and output of data to the algorithm
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the sub routine symbol?

A
  • Represents a call to a sub routine
  • A sub routine will have its own flowchart but when you call it from the main program you need to express that call using this symbol
How well did you know this?
1
Not at all
2
3
4
5
Perfectly