2.1.4 Thinking Logically Flashcards
What is the point of this topic?
Identification of decision points for branching or iteration?
What is the aim of the structured approach?
To improve clarity and maintainability of programs.
What are the three basic structures of the structured approach?
sequence
selection
iteration
What are the examples of programming languages that use the structured approach?
Python and Pascal
What are the 2 tools used for designing algorithms?
Flowcharts and psudocodes
What is the symbol for a decision in a flowchart?
A diamond
What is the symbol for a process in a flowchart?
A rectangle
What is the symbol for inputs/outputs in a flowchart?
A paralellogram
What is the symbol for a document in a flowchart?
Rectangle with going down paint at bottom
What is the symbol for a sub process in a flowchart?
A rectangle with two lines towards the edges on it.
What is a sequence?
Linear execution of statements
What is selection?
Used to decide which sequence of statements will be executed based upon conditions. e.g If , else , then
What is an iteration?
Repetition of a sequence until condition is met e.g. repeat until or while