Variables, Constants, Operators & Data Types
OCR J2772.2aGCSELesson packSubscription
Also online
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.
- 8 questions
- 24 marks
- about 18 minutes
- marked instantly
Question types: multi-part, multiple choice, matching, true or false.
Try one from this worksheet
Which of the following best describes the difference between a variable and a constant?
Pick an answer: it's marked straight away, just as your pupils would see it.
About this resource
Understand variables, constants, assignment, inputs, outputs, arithmetic and comparison operators, Boolean operators, data types and casting.
17 slides.
Lesson outline
- Quick Check
- Variables and Constants
- Variables in Memory
- Inputs and Outputs
- Code Demo: Variables and Input/Output
- Arithmetic Operators
- DIV and MOD Practice
- Comparison Operators
- Boolean Operators: AND, OR, NOT
- Data Types
- Task: Choose the Right Data Type
- Casting (Type Conversion)
Unit bundle2.2 Programming Fundamentals
More from 2.2 Programming Fundamentals
- Lesson pack · 2.2bSelection & IterationSubscription
- Lesson pack · 2.2cString ManipulationSubscription
- Lesson pack · 2.2dArrays & RecordsSubscription
- Lesson pack · 2.2eFile Handling & SQLSubscription
- Lesson pack · 2.2fSubprograms & Random NumbersSubscription
- Knowledge organiser · 2.2Programming FundamentalsSubscription
- Scheme of work · 2.2Programming FundamentalsSubscription


