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
A variable declaration similar to a process box.
Predefined process box.
A predefined process box is a marker…
for another process formally defined elsewhere.
A variable declaration in the shape of a circle.
On-page connector.
An off-page connector allows flowcharts to connect on the same page.
False. On-page connector.
A variable declaration in the shape of an upside-down pentagon.
Off-page connector.
What is the purpose of an off-page connector?
To connect a flowchart to another page.
“Pseudo” means…
False.
A pseudocode describes an algorithm using a combination of…
natural and programming language.