Page 1 of 79
AQA A-LEVEL COMPUTER SCIENCE FINAL PAPER EXAM QUESTIONS AND
CORRECT ANSWERS LATEST EDITION 2026
AQA A-LEVEL COMPUTER SCIENCE FINAL PAPER
SECTION 1: PROGRAMMING FUNDAMENTALS
Questions 1–35
1. Which of the following is a primitive data type?
• A) Array
• B) Integer
• C) Record
• D) List
Answer: B) Integer
Rationale: Integer is a primitive data type. Arrays, records, and lists are composite/derived data
types.
2. What is the purpose of a constant in programming?
• A) To store a value that cannot change during program execution
• B) To store multiple values
• C) To define a subroutine
1|Page
,Page 2 of 79
• D) To create a loop
Answer: A) To store a value that cannot change during program execution
Rationale: A constant holds a fixed value that cannot be altered while the program runs.
3. Which operator is used for integer division?
• A) /
• B) DIV
• C) MOD
• D) ^
Answer: B) DIV
Rationale: DIV performs integer division, discarding any remainder.
4. What does the MOD operator return?
• A) The quotient of division
• B) The remainder of division
• C) The product of two numbers
• D) The difference between two numbers
Answer: B) The remainder of division
Rationale: MOD returns the remainder after integer division.
5. What is the result of 17 DIV 5?
• A) 2
• B) 3
• C) 3.4
• D) 2.5
Answer: B) 3
2|Page
,Page 3 of 79
Rationale: 17 ÷ 5 = 3 remainder 2. DIV returns the quotient, which is 3.
6. What is the result of 17 MOD 5?
• A) 2
• B) 3
• C) 3.4
• D) 2.5
Answer: A) 2
Rationale: 17 ÷ 5 = 3 remainder 2. MOD returns the remainder, which is 2.
7. Which data type would be most appropriate for storing whether a light is on or off?
• A) String
• B) Boolean
• C) Integer
• D) Real
Answer: B) Boolean
Rationale: A Boolean stores True/False values, ideal for on/off states.
8. What is a subroutine?
• A) A named block of code that performs a specific task
• B) A type of variable
• C) A type of loop
• D) A type of data structure
Answer: A) A named block of code that performs a specific task
Rationale: Subroutines are reusable blocks of code that can be called multiple times.
3|Page
, Page 4 of 79
9. What is a parameter?
• A) A value returned by a subroutine
• B) A value passed into a subroutine
• C) A local variable
• D) A global variable
Answer: B) A value passed into a subroutine
Rationale: Parameters are values passed into subroutines for processing.
10. What is the difference between a function and a procedure?
• A) Functions return a value; procedures do not
• B) Procedures return a value; functions do not
• C) There is no difference
• D) Functions are faster
Answer: A) Functions return a value; procedures do not
Rationale: Functions return a value; procedures perform actions without returning a value.
11. What is a local variable?
• A) A variable accessible anywhere in the program
• B) A variable accessible only within the subroutine where it is declared
• C) A variable stored on disk
• D) A variable declared at the start of the program
Answer: B) A variable accessible only within the subroutine where it is declared
Rationale: Local variables are scoped to the subroutine in which they are declared.
12. What is a global variable?
• A) A variable accessible only within a subroutine
4|Page
AQA A-LEVEL COMPUTER SCIENCE FINAL PAPER EXAM QUESTIONS AND
CORRECT ANSWERS LATEST EDITION 2026
AQA A-LEVEL COMPUTER SCIENCE FINAL PAPER
SECTION 1: PROGRAMMING FUNDAMENTALS
Questions 1–35
1. Which of the following is a primitive data type?
• A) Array
• B) Integer
• C) Record
• D) List
Answer: B) Integer
Rationale: Integer is a primitive data type. Arrays, records, and lists are composite/derived data
types.
2. What is the purpose of a constant in programming?
• A) To store a value that cannot change during program execution
• B) To store multiple values
• C) To define a subroutine
1|Page
,Page 2 of 79
• D) To create a loop
Answer: A) To store a value that cannot change during program execution
Rationale: A constant holds a fixed value that cannot be altered while the program runs.
3. Which operator is used for integer division?
• A) /
• B) DIV
• C) MOD
• D) ^
Answer: B) DIV
Rationale: DIV performs integer division, discarding any remainder.
4. What does the MOD operator return?
• A) The quotient of division
• B) The remainder of division
• C) The product of two numbers
• D) The difference between two numbers
Answer: B) The remainder of division
Rationale: MOD returns the remainder after integer division.
5. What is the result of 17 DIV 5?
• A) 2
• B) 3
• C) 3.4
• D) 2.5
Answer: B) 3
2|Page
,Page 3 of 79
Rationale: 17 ÷ 5 = 3 remainder 2. DIV returns the quotient, which is 3.
6. What is the result of 17 MOD 5?
• A) 2
• B) 3
• C) 3.4
• D) 2.5
Answer: A) 2
Rationale: 17 ÷ 5 = 3 remainder 2. MOD returns the remainder, which is 2.
7. Which data type would be most appropriate for storing whether a light is on or off?
• A) String
• B) Boolean
• C) Integer
• D) Real
Answer: B) Boolean
Rationale: A Boolean stores True/False values, ideal for on/off states.
8. What is a subroutine?
• A) A named block of code that performs a specific task
• B) A type of variable
• C) A type of loop
• D) A type of data structure
Answer: A) A named block of code that performs a specific task
Rationale: Subroutines are reusable blocks of code that can be called multiple times.
3|Page
, Page 4 of 79
9. What is a parameter?
• A) A value returned by a subroutine
• B) A value passed into a subroutine
• C) A local variable
• D) A global variable
Answer: B) A value passed into a subroutine
Rationale: Parameters are values passed into subroutines for processing.
10. What is the difference between a function and a procedure?
• A) Functions return a value; procedures do not
• B) Procedures return a value; functions do not
• C) There is no difference
• D) Functions are faster
Answer: A) Functions return a value; procedures do not
Rationale: Functions return a value; procedures perform actions without returning a value.
11. What is a local variable?
• A) A variable accessible anywhere in the program
• B) A variable accessible only within the subroutine where it is declared
• C) A variable stored on disk
• D) A variable declared at the start of the program
Answer: B) A variable accessible only within the subroutine where it is declared
Rationale: Local variables are scoped to the subroutine in which they are declared.
12. What is a global variable?
• A) A variable accessible only within a subroutine
4|Page