Summary
Writing algorithms involves creating step-by-step instructions to solve problems, while identifying errors ensures these instructions work correctly.
Exam Tips
Key Definitions to Remember
- Algorithm — A step-by-step procedure to solve a problem.
- Pseudocode — A way to write algorithms using plain language that resembles programming.
- Flowchart — A diagram that represents an algorithm using symbols.
Common Confusions
- Confusing pseudocode with actual programming code.
- Misunderstanding the difference between even and odd numbers.
Typical Exam Questions
- How do you write pseudocode to find the maximum of three numbers? Use conditional statements to compare the numbers.
- How do you determine if a number is odd or even in pseudocode? Check if the number is divisible by 2.
- How do you count even and odd numbers in an array? Iterate through the array and use a condition to check each number.
What Examiners Usually Test
- Ability to write clear and correct pseudocode.
- Understanding of flowchart symbols and their use.
- Skill in identifying and correcting errors in algorithms.