Chapter 1 Flashcards
What is an algorithm?
A step by step procedure for solving problems.
What is the simplest way of expressing an algorithm?
A List Algorithm
What is iteration?
Repeating something a set number of times, or until a condition is met,
What is selection?
A choice or decision.
What is a sequence?
A basic instruction
What makes a successful algorithm?
- Correctness
-Efficiency
What does the:
Oval
Rectangle
Parallelogram
Diamond
mean in a Flow Diagram?
Start/End
Simple Sequence Instruction
Inputs/Outputs
Selections (Yes or No)
What is a variable?
A container which is used to store data.
What is a constant?
Data that does not change throughout the script.
Snake vs Camel case?
boy_age vs boyAge
What is pseudocode?
A language that is similar to programming but closer to English. You can play your script and the layout.
Operator vs operand?
Operator: the symbols that tell the computer what to do
Operand: The data the operators work on