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
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
3
Q
What is the terminal symbol?
A
Represents the start or the end of a process
4
Q
What is the process symbol?
A
Represents something being initialised, processed, or calculated
5
Q
What is the decision symbol?
A
- Represents a decision
- It usually has YES or NO and TRUE or FALSE outcomes
6
Q
What is the input/output shape?
A
- Represents the input and output of data to the algorithm
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