Eduqas A-Level Computer Science A500QS
Data Structures: Arrays, Records and Hash Tables
Stacks, Queues, Linked Lists and Trees
Boolean Logic and Simplification
Algorithms, Pseudo-Code and Programming Constructs
Variables, Scope, Parameters and Identifiers
Recursion and Modular Programming
Sorting Algorithms
Searching and Shortest-Path Algorithms
Big O Notation and Algorithm Efficiency
Validation, Verification and Testing
Data Compression
Programming Paradigms and Computer Languages
Systems Analysis, Maintenance and Documentation
System Design and Human-Computer Interaction
Software Engineering Tools and Translators
Computing, Society and the Law
Computer Architecture, the Processor and Assembly Language
Input, Output and Secondary Storage
Networks, Protocols and the Internet
Data Transmission and Network Performance
Number Systems and Binary Arithmetic
Data Types, Characters and Floating Point
Files, Records and File Organisation
Databases, Normalisation and Entity Modelling
SQL, Big Data and Distributed Systems
The Operating System and Its Modes
Interrupts, Memory Management and Scheduling
Types of Software System
Data Security, Cryptography and Attack
Variables, Scope, Parameters and Identifiers
Annotation and program layout
- 3 things to know
- Component 1
Overview
Annotation in a program, how indentation helps a reader understand a program and three features of good program layout.
What you need to know
Answer each one before you reveal it.
Give two things a useful comment should record.
Why is a comment that restates the code useless?
Questions from this subtopic
Each one with the model answer underneath.
- 1
What is annotation in a program?
Model answer
Annotation is a comment written into the source code for a human reader. The translator ignores annotation completely.
- 2
Give two things a useful comment should record.
Model answer
A useful comment records why a piece of code exists and any assumption it relies on. The purpose of a subprogram and its parameters are also worth recording.
- 3
Why is a comment that restates the code useless?
Model answer
A comment such as add one to the counter repeats what the statement already says. The reader gains nothing and the comment must still be maintained.
- 4
What happens to comments when a program is compiled?
Model answer
The compiler discards comments during translation, so they occupy no space in the object code. Execution speed is unaffected.
- 5
Explain how indentation helps a reader understand a program.
Model answer
Indentation shows which statements belong inside a loop or a selection. The block structure becomes visible at a glance.
- 6
State three features of good program layout.
Model answer
Good layout uses consistent indentation, blank lines between subprograms and one statement per line. A header block at the top of each module also helps.
Other ways to work this
The same content, four other ways.
What is inside Levo
Six ways to work the same material.
Every question in Variables, Scope, Parameters and Identifiers, on a schedule.
Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.
Or £46 a year, about £3.83 a month. Cancel anytime.