Variables, constants, input, output and assignment
This worksheet marks itself
Set it as homework or classwork and every answer is marked as pupils go, with feedback on what they got wrong. The scores go straight into your mark book, so you can see who needs help before the next lesson.
- 11 questions
- 32 marks
- about 35 minutes
- marked instantly
Question types: short answer, multiple choice, true or false.
Try one from this worksheet
Identify the OCR Exam Reference Language statement that stores a name typed in by the user in the variable name.
Pick an answer: it's marked straight away, just as your pupils would see it.
About this resource
OCR GCSE Computer Science (J277) 2.2.1 Programming fundamentals: variables, constants, inputs, outputs and assignments, and sequence. Python lesson 1 of 10 in 2.2 Programming fundamentals, with OCR Exam Reference Language beside the Python: a spot-the-mistakes Do Now, a short key idea, a 10-chall…
17 slides.
Lesson outline
- Do Now: spot the 3 mistakes
- Do Now: answers
- Key idea: Variables, constants and assignment
- Key idea: Sequence: one line after another
- Quick check: a copy, not a link
- Key idea: Input and output
- Set 1: print and assign
- Set 2: input and output
- Set 3: constants and sequence
- Exam question E1: input, assignment and output in ERL
- Model answer E1
- Exam question E2: read an ERL program
More from 2.2 Programming fundamentals · Python and OCR ERL lessons
- Lesson pack · 2.2 L2Data types and castingSubscription
- Lesson pack · 2.2 L3Operators: arithmetic, comparison and BooleanSubscription
- Lesson pack · 2.2 L4Selection: if, elif, else, nested if and caseSubscription
- Lesson pack · 2.2 L5Iteration: count-controlled and condition-controlled loopsSubscription
- Lesson pack · 2.2 L6String manipulationSubscription
- Lesson pack · 2.2 L71D arraysSubscription
- Lesson pack · 2.2 L82D arrays and recordsSubscription
- Lesson pack · 2.2 L9File handling and SQLSubscription


