SHSubjectHub

String Handling, Random Numbers & Exception Handling

AQA 75174.1.7–4.1.9A-levelLesson 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.

  • 11 questions
  • 39 marks
  • about 55 minutes
  • marked instantly

Question types: multiple choice, multi-part, short answer, fill the gap, matching.

About this resource

AQA A-level Computer Science (7517) Paper 1, 4.1.1.7–4.1.1.9 — string-handling operations (length, position, substring, concatenation, character↔character code, string conversion operations), random number generation, and exception handling.

27 slides.

Lesson outline

  1. Do Now — Retrieval
  2. I-Do: Length and Position
  3. Hinge Check — Length
  4. I-Do: Substring and Slicing
  5. Hinge Check — Slicing is Exclusive at the Stop Index
  6. We-Do — Trace Indexing, Slicing and Concatenation
  7. I-Do: Concatenation
  8. I-Do: Character ↔ Character Code
  9. Hinge Check — chr()
  10. We-Do — Character Codes
  11. I-Do: String Conversion Operations
  12. Hinge Check — Concatenation Needs a Conversion
Unit bundlePaper 1
Part of: Paper 1: the whole unitEvery resource in the unit in one zip.

More from 4.1 Fundamentals of programming