You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
This lesson consolidates everything from OCR J277 Section 2.1 with exam-style practice and techniques for tackling computational thinking questions in Paper 2.
| Topic | Key Points |
|---|---|
| Computational thinking | Four components: decomposition, abstraction, algorithmic thinking, pattern recognition |
| Decomposition | Breaking problems into manageable sub-problems; leads to subprograms |
| Abstraction | Removing unnecessary detail; focusing on relevant information |
| Algorithmic thinking | Step-by-step solutions; sequence, selection, iteration |
| Pattern recognition | Identifying similarities; generalisation; code reuse |
| Inputs, processes, outputs | IPO model; identify all three for any system |
| Structure diagrams | Visual representation of decomposition; hierarchical tree |
| Flowcharts | Standard symbols; terminators, processes, decisions, I/O |
| Pseudocode | OCR reference language; variables, selection, iteration, arrays, functions |
Paper 2 (Computational Thinking, Algorithms and Programming) tests Section 2.1 through:
OCR Exam Tip: Paper 2 questions are more practical than Paper 1. You will need to actually design algorithms (pseudocode and flowcharts), trace through code, and apply computational thinking to given scenarios. Practice is essential.
Question: A school wants to create a system to manage student homework. (a) Decompose this problem into at least four sub-problems. (4 marks) (b) Explain how abstraction would be used when designing the student record for this system. (2 marks)
Model answer (a):
Any four valid sub-problems for 4 marks.
Model answer (b): Abstraction would be used to include only the relevant data about each student, such as their name, student ID, and class group (1). Unnecessary details like their height, eye colour, or home address would be excluded because they are not relevant to the homework management system (1).
Question: A cinema charges different ticket prices based on age. Under 12: £5. 12-17: £7. 18 and over: £10. Draw a flowchart that inputs a customer's age and outputs the correct ticket price. (5 marks)
Model answer:
[Start]
|
[INPUT age]
|
<Is age < 12?> --Yes--> [OUTPUT "£5"] --> [Stop]
|
No
|
<Is age < 18?> --Yes--> [OUTPUT "£7"] --> [Stop]
|
No
|
[OUTPUT "£10"]
|
[Stop]
Marking points:
Question: Study the following pseudocode:
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.