Algorithms Flashcards
What is abstraction?
Hiding or removing unnecessary data to keep something simple
What is decomposition?
Breaking down a problem into smaller subproblems
What is algorithmic thinking?
Identifying the steps involved in solving a problem
What symbol is used to represent an input in a flow chart?
Parallelogram
What symbol is used to represent an output in a flow chart?
Parallelogram
What symbol is used to represent a decision in a flow chart?
Rhombus
What symbol is used to represent a process in a flow chart?
Rectangle
What symbol is used to represent a terminal in a flow chart?
Oval
What symbol is used to represent a subroutine in a flow chart?
Rectangle with two vertical lines near each end of the shape
What is used to connect each symbol in a flow chart?
An arrow
Name two examples of decomposition
- Flow charts
- Structure diagrams
What is a structure diagram?
A way of visually showing the breakdown of a program into individual steps (subroutines)
What are trace tables?
Tables used in testing that show every variable change in a program
When would you use a trace table?
- When testing
- When checking for logic errors
What is a syntax error?
An error that will prevent the code from executing