SHSubjectHub

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

  1. Quick Check
  2. Variables and Constants
  3. Variables in Memory
  4. Inputs and Outputs
  5. Code Demo: Variables and Input/Output
  6. Arithmetic Operators
  7. DIV and MOD Practice
  8. Comparison Operators
  9. Boolean Operators: AND, OR, NOT
  10. Data Types
  11. Task: Choose the Right Data Type
  12. Casting (Type Conversion)
Unit bundle2.2 Programming Fundamentals
Part of: 2.2 Programming Fundamentals: the whole unitEvery resource in the unit in one zip.

More from 2.2 Programming Fundamentals