AQA AS COMPUTER SCIENCE PAPER 1 – PROGRAMMING
FUNDAMENTALS & THEORY (7516/1) FINAL EXAM QUESTIONS WITH
DETAILED- VERIFIED ANSWERS- ALREADY GRADED A+ || NEWEST
EXAM 2025-2026
Programming, Data Structures
This comprehensive practice exam for AQA AS Computer Science 7516/1
covers: binary/hex/octal conversions, two’s complement, bitwise
operations, ASCII/Unicode, hardware (CPU, memory, fetch‑execute
cycle), programming constructs (loops, selection, functions), data
structures (arrays, stacks, queues, linked lists), sorting/searching
(bubble, merge, binary, linear), OOP basics, SQL, networking (TCP/IP,
DNS, HTTP), finite state machines, regular expressions, and software
testing. It also covers covering fundamentals of programming, data
structures, algorithms, data representation, computer hardware,
networking, databases, and the theory of computation
Questions 1–200
1. What is the decimal value of the binary number 101101?
A) 45 ✓
B) 43
C) 47
D) 41
*Rationale: Binary 101101 equals 1×32 + 0×16 + 1×8 + 1×4 + 0×2 + 1×1 =
32+8+4+1 = 45. Converting binary to decimal requires summing powers
of two where bits are 1.*
, Page 2 of 80
2. Which of the following is a valid identifier in most programming
languages?
A) 2fast
B) my-variable
C) _score ✓
D) int
Rationale: Identifiers cannot start with a digit, so 2fast is invalid.
Hyphens are not allowed; underscores are permitted. int is a reserved
keyword.
3. What is the result of (5 > 3) AND (4 < 2) in Boolean logic?
A) True
B) False ✓
C) 5
D) Error
Rationale: (5 > 3) is true, (4 < 2) is false. The AND operator returns true
only if both operands are true, therefore the expression evaluates to
false.
4. Which data structure follows the Last‑In‑First‑Out (LIFO) principle?
A) Queue
B) Stack ✓
, Page 3 of 80
C) Array
D) List
Rationale: A stack uses LIFO: the most recently added item is removed
first. Queues use FIFO, while arrays and lists allow access by index.
5. What does the hexadecimal digit F represent in decimal?
A) 10
B) 12
C) 15 ✓
D) 16
*Rationale: Hexadecimal uses digits 0‑9 and letters A=10, B=11, C=12,
D=13, E=14, F=15. Thus F equals decimal 15.*
6. Which of the following is a high‑level programming language?
A) Assembly language
B) Python ✓
C) Machine code
D) C++ – also high‑level but the question expects one – Python is a
typical example.
Rationale: Python is a high‑level language because it abstracts away
hardware details and uses human‑readable syntax. Assembly and
machine code are low‑level.
, Page 4 of 80
7. A program has a syntax error. What does this mean?
A) The program runs but gives wrong output
B) The program violates the language’s grammatical rules ✓
C) The program crashes due to invalid input
D) The program uses too much memory
Rationale: Syntax errors occur when code does not follow the language’s
grammar, such as missing parentheses. These errors are caught by the
compiler or interpreter before execution.
8. Which logic gate produces an output of 1 only when both inputs are 1?
A) OR
B) NOR
C) AND ✓
D) XOR
Rationale: The AND gate outputs 1 only when all inputs are 1. OR outputs
1 if any input is 1; XOR outputs 1 when inputs differ.
9. What is the purpose of the return statement in a function?
A) To print a value to the screen
B) To exit the function and optionally send a value back to the caller ✓
C) To restart the function
D) To declare a variable