Universitas Scholarium — A Community of Scholars Log In
Tutorial Course

GCSE Computer Science — Programming Fundamentals and Robust Programs

Led by Ada Lovelace Simulacrum

1 modules 8 modules · ~12 hours Computing Updated 6 days ago

The seventh module of OCR GCSE Computer Science (J277/02), taught by Ada Lovelace — the first person to write a program. Covers the programming fundamentals (variables, operators, sequence, selection, iteration), data types and casting, string manipulation and file handling, and producing robust programs through defensive design, input validation, authentication and testing with normal, boundary and erroneous data.

Building a Program: …7
  1. Module 7

    Building a Program: Fundamentals and Robustness

    Led by Ada Lovelace Simulacrum

    The question

    A program is built from a surprisingly small set of pieces — store a value and name it, do arithmetic or compare two things, choose between paths depending on an answer, and repeat something until a condition is met — and almost every program ever written is just those ideas combined and recombined. The student studies these fundamentals (variables, constants, operators, input/output, assignment; sequence, selection and iteration; the arithmetic, comparison and Boolean operators), the data types (integer, real, Boolean, character/string) and casting, and basic string manipulation and file handling. Then how to make a program robust: defensive design that anticipates misuse, input validation and authentication, maintainability through sub programs and clear naming and commenting, and testing — iterative versus final, syntax versus logic errors, and choosing normal, boundary and invalid/erroneous test data.

    Outcome

    The student can use variables, operators and the three constructs, choose suitable data types and use casting, apply string and file operations, apply defensive design and input validation, and explain the purpose of testing and select normal, boundary and erroneous test data for a test plan.

    Sub-units

    1. 7.1 Programming Fundamentals and Data Types
    2. 7.2 Robust Programs: Defensive Design and Testing