Algorithm Flashcards
What is an algorithm?
A set of instruction to perform a specific task.
It is a well-defined step by step solution.
Algorithm.
What are the 2 ways of representing an algorithm?
- Flowcharting
- Pseudocode
It is a variable declaration that is placed in an oval.
Terminal box.
It represents the beginning/end of a code.
Terminal box.
More than 2 terminal boxes can exist in a code.
False.
It is used to connect symbols and indicate the flow of logic.
Flowlines.
A variable declaration in a hexagon.
Initialization box.
What is the purpose of an initialization box?
To declare a beginning value.
A variable declaration in the shape of a parallelogram.
Input/output box.
The input/output box allows…
reading and printing of the data.
A variable declaration in the shape of a rectangle.
Processing box.
The processing box operates….
arithmetic and data manipulation.
A variable declaration in the shape of a diamond.
Decision box.
This operates logic and comparisons.
Decision box.
4 examples of words used in a decision box.
- Yes
- No
- True
- False