Practical Programming Skills Guide - OCR GCSE Computers
Assessment of Practical Programming Skills: Component 2
OCR GCSE Computer Science practical programming skills are assessed in Component 2. Students use computational thinking to design, write, test, and refine programs.
All programming code given in examination papers will be presented using the OCR Exam Reference Language.
Use this page with the exam reference language, assessment requirements, command words, and OCR GCSE Computer Science past papers.
Section A
Section A assesses a student’s ability to structure answers logically without a focus on syntactic precision. Students have flexibility and choice in how they present their answer.
Questions may be written in natural English, OCR Exam Reference Language, or flowcharts. Students may answer using pseudocode, flowcharts, bullet points, OCR Exam Reference Language, a high-level programming language, or natural English.
How to answer
- Use a clear structure that matches the question.
- Choose pseudocode, a flowchart, bullet points, or natural English when allowed.
- Show the algorithmic steps in the correct order.
- Make decisions and loops easy to follow.
Section B
Section B assesses a student's ability to design, write, test, and refine programs. The answer format depends on the command word and the way the question is presented.
Design questions
- Questions are usually written in natural English.
- Students may answer with pseudocode, a flowchart, tick-box responses, or natural English.
- The answer should show inputs, outputs, decisions, loops, and processing steps.
Write questions
- Questions may use pseudocode, natural English, or flowcharts.
- Students answer using OCR Exam Reference Language or a high-level programming language.
- The code should solve the exact problem and use clear logic.
Test and refine questions
- Testing questions may ask for trace tables, test plans, or suitable test data.
- Refine questions may require corrected code, improved logic, or a written explanation.
- Students should use normal, boundary, and invalid data when a test plan is needed.
Precision & Syntax Guidelines
When a question asks for OCR Exam Reference Language or a high-level programming language, students must write code with enough precision to show the logic clearly. These questions test programming logic and understanding of core structures.
Students should not answer these questions with pseudocode, natural English, or bullet points unless the question allows it. OCR does not usually penalise minor syntax errors if the logic is clear, but the answer must still show valid programming intent.
Programming practice routine
Students should practise small programming tasks often. A useful routine is to read the problem, identify inputs and outputs, plan the steps, write the code, test it, and refine it.
Strong programming answers use sequence, selection, iteration, variables, arrays, and subprograms where they fit the problem. Students should avoid adding extra features that the question does not ask for.
Before submitting
- Check that the solution matches the problem.
- Test normal, boundary, and invalid data.
- Check variable names and data types.
- Trace the code to find logic errors.
- Refine the program only where the question asks for improvement.
Common programming tasks
OCR practical programming questions often ask students to design or complete an algorithm, write program code, create test data, identify errors, or refine a solution.
Students should practise the same patterns in different contexts. For example, a loop that totals scores can also count valid entries, search a list, or process values in an array.
Skills to repeat
- Use variables and constants correctly.
- Write IF statements with clear conditions.
- Use FOR and WHILE loops for the right type of repetition.
- Store related values in arrays.
- Break larger problems into procedures or functions.
- Explain how test data proves that the program works.