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
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 โ2Imperative (procedural) programming
Imperative programming is the style you have used since the start of the course.
Learn this in the lesson โ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 โ4Inheritance, polymorphism and containment
Many things share features.
Learn this in the lesson โ5Designing classes to solve a problem
Writing classes starts with a design, before any code.
Learn this in the lesson โ6Declarative programming: facts, rules and goals
In declarative programming you do not write the steps.
Learn this in the lesson โ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 โ8Text files: open, read, write, append and close
Variables vanish when a program ends.
Learn this in the lesson โ- 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.
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.
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.
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.
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.
Print it: the worksheet Save to Pinterest
๐จ๏ธ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.
Further Programming in other classes
All A Level Computer Science topics
- Information Representation
- Communication
- Hardware
- Processor Fundamentals
- System Software
- Security, Privacy and Data Integrity
- Ethics and Ownership
- Databases
- Data Types and Structures
- Programming
- Software Development
- Data Representation (A Level)
- Communication and Internet Technologies
- Hardware and Virtual Machines
- System Software (A Level)
- Security (A Level)
- Artificial Intelligence
- Computational Thinking and Problem-solving
- Further Programming
- Algorithm Design and Problem-Solving