SHSubjectHub

Data types and casting

OCR J2772.2 L2GCSELesson 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.

  • 12 questions
  • 41 marks
  • about 40 minutes
  • marked instantly

Question types: short answer, multiple choice, true or false, matching.

Try one from this worksheet

A shop's program stores each product's barcode, for example 0012345678905. Identify the most suitable data type.

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.2 Data types: integer, real, Boolean, character and string; casting; choosing suitable data types. Python lesson 2 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 9-chal…

17 slides.

Lesson outline

  1. Do Now: spot the 3 mistakes
  2. Do Now: answers
  3. Key idea: Five data types
  4. Key idea: Casting
  5. Quick check: text or number?
  6. Key idea: Choosing a data type, and casting errors
  7. Set 1: data types
  8. Set 2: casting input
  9. Set 3: choose and cast
  10. Exam question E1: film data types
  11. Model answer E1
  12. Exam question E2: casting in an ERL program
Unit bundle2.2 Programming fundamentals · Python and OCR ERL lessons
Part of: 2.2 Programming fundamentals · Python and OCR ERL lessons: the whole unitEvery resource in the unit in one zip.

More from 2.2 Programming fundamentals · Python and OCR ERL lessons