Skip to main content

A Level ยท Computer Science

Further Programming: A Level Computer Science

The four programming paradigms (low-level with addressing modes, imperative, object-oriented and declarative), then file processing with serial, sequential and random files, and exception handling, finishing with how a larger program is developed.

  • Lesson
  • 3 quizzes
  • Worksheet PDF

A step-by-step lesson, 3 self-marking quizzes and a printable worksheet, all on Further Programming for A Level.

Learn it: the lesson

Further Programming: Paradigms, OOP, Files and Exceptions8 steps ยท one idea at a time ยท quick check at the endStart the lesson โ†’
What the lesson covers8 steps ยท tap to see
  1. 1Programming paradigms, and low-level programming

    A programming paradigm is a style of programming: a way of thinking about a problem and of organising the code that solves it.

    Learn this in the lesson โ†’
  2. 2Imperative (procedural) programming

    Imperative programming is the style you have used since the start of the course.

    Learn this in the lesson โ†’
  3. 3Object-oriented programming: classes, objects and encapsulation

    Object-oriented programming (OOP) builds a program from objects, each of which bundles together data and the code that is allowed to work on that data.

    Learn this in the lesson โ†’
  4. 4Inheritance, polymorphism and containment

    Many things share features.

    Learn this in the lesson โ†’
  5. 5Designing classes to solve a problem

    Writing classes starts with a design, before any code.

    Learn this in the lesson โ†’
  6. 6Declarative programming: facts, rules and goals

    In declarative programming you do not write the steps.

    Learn this in the lesson โ†’
  7. 7Choosing between paradigms

    Most real systems mix several: a web application might use an object-oriented language, a declarative query language to reach its database, and a fewโ€ฆ

    Learn this in the lesson โ†’
  8. 8Text files: open, read, write, append and close

    Variables vanish when a program ends.

    Learn this in the lesson โ†’
  9. Quick check: see what you remember

Further Programming: A Level Computer Science notes

Programming paradigms, and low-level programming

A programming paradigm is a style of programming: a way of thinking about a problem and of organising the code that solves it. Different paradigms suit different jobs, and one program may use several. The syllabus asks about four.

Low-level programming works at the level of the processor. Machine code is binary instructions. Assembly language gives each instruction a mnemonic (LDD, ADD, STO) and an assembler translates it one-for-one into machine code. The programmer deals directly with the registers and memory addresses. It is used where speed, small size or direct hardware control matters: device drivers, embedded controllers and the innermost loops of high-performance code. Drawbacks: slow and error-prone to write, hard to read, and tied to one type of processor.

An instruction has an opcode and an operand. The addressing mode says how the operand is used to find the data.

Indexed addressing steps through an array by changing IX. Indirect addressing implements pointers. Relative addressing keeps code position-independent. Work out what the next instruction does, then run it.

The 2021 specimen Paper 3 gave part of the instruction set (LDM, LDD, STO, ADD, INC, CMP, JPN, END). It asked for the addressing modes of LDM (immediate) and LDD (direct), and then for instructions to set address 509 to the contents of address 500 plus 12. The accepted answer was LDM #12, ADD 500, STO 509: put the constant in ACC, add the memory location, store the result. Read the table you are given: only opcodes that appear in it may be used.

Key facts

  • A programming paradigm is a style of programming: a way of thinking about a problem and of organising the code that solves it.
  • Low-level programming works at the level of the processor.
  • The addressing mode says how the operand is used to find the data.
  • Imperative programming is the style you have used since the start of the course.
  • Object-oriented programming (OOP) builds a program from objects, each of which bundles together data and the code that is allowed to work on that data.
  • An object (an instance of the class) is one thing made from the blueprint, with its own values.

Further Programming MCQs with answers

Tap an answer to check it.

  1. What is a low-level language?

    Answer: D. One that is close to the hardware, such as assembly language Low-level languages such as assembly map closely to the processor's instructions and give direct control of the hardware.

  2. Which loop condition stops the reading of a file at the end of the file in 9618 pseudocode?

    Answer: A. WHILE NOT EOF("Data.txt") EOF returns TRUE at the end of the file, so WHILE NOT EOF keeps looping until the end is reached.

  3. A class Student inherits from a class Person. What does this mean?

    Answer: A. Student has the properties and methods of Person and can add its own Inheritance means the subclass Student gains the properties and methods of Person and may add or override its own.

  4. What describes imperative (procedural) programming?

    Answer: C. A program is written as a sequence of statements that say how to do the task Imperative programming gives an ordered sequence of statements that tell the computer how to carry out the task.

More questions in the 3 quizzes below โ†“ ยท All A Level Computer Science MCQs with answers โ†’

Practise real quizzes on this topic: 3 quizzes

Each quiz marks itself the moment it is finished and explains every answer. Start easy and work up.

๐Ÿ–จ๏ธFurther ProgrammingA printable A Level Computer Science 9618 worksheet on further programming: low-level, imperative, object-oriented and declarative paradigms, classes, inheritance and polymorphism, logic rules and queries, text and random-access file processing, andโ€ฆSee the worksheet โ†’

โฌ‡ Download free PDFFree sample copy with a light QuizByt mark. A free account gives you more.