Hardware Practice Library

Every practice question across the Hardware pages in one place, grouped by topic and difficulty. Use the filters to narrow by difficulty or mark band; click any page name to open the full question with its sub-parts and follow-on text.

Difficulty
Marks

Truth tables

3 questions.

Logic Gates

  • Core · 7 marks · Draw the truth table for each of the 7 fundamental gates (AND, OR, NOT, NAND, NOR, XOR, XNOR). For the two-input gates, each table should...
  • Core · 4 marks · Construct the truth table for Q = (A OR B) AND (NOT A). List all 4 input combinations and identify which rows produce Q = 1.
  • Extension · 5 marks · Build a complete truth table (8 rows) for the circuit Q = (A AND B) OR (B AND C) OR (A AND C). This circuit is called a *majority gate*; ...

Simplification

2 questions.

Logic Gates

  • Core · 6 marks · Apply De Morgan's theorem to simplify each of the following:
  • Extension · 6 marks · The following truth table defines a function of three variables. Use a K-map to find the simplified Boolean expression.

Logic diagrams

2 questions.

Logic Gates

  • Extension · 4 marks · The following logic diagram shows a circuit. Write the Boolean expression it represents:
  • Challenge · 9 marks · A home alarm system has three binary inputs: D (door sensor: 1 = door open), W (window sensor: 1 = window open), S (system armed: 1 = arm...

CPU components

1 question.

CPU Architecture

  • Core · 5 marks · Describe the role of each of the following registers in one sentence each: PC, MAR, MDR, IR, AC.

FDE cycle

2 questions.

CPU Architecture

  • Core · 6 marks · Describe the three phases of the fetch-decode-execute cycle. For each phase, name the registers involved and explain what happens to them.
  • Extension · 9 marks · Given the following memory contents and PC = 0, trace all register values through each phase of the FDE cycle for all three instructions:

Buses

2 questions.

CPU Architecture

  • Core · 6 marks · Name the three types of bus in a computer system. For each bus, state its direction (unidirectional or bidirectional) and what it carries.
  • Extension · 5 marks · A program loads a value from memory address 100. Explain which buses are used during this operation, what signals travel on each bus, and...

Multicore

1 question.

CPU Architecture

  • Challenge · 6 marks · A program has two tasks: Task A takes 4 seconds and Task B takes 3 seconds. Task B depends on the output of Task A (it cannot start until...

Pipelining (HL)

1 question.

CPU Architecture

  • Challenge · 7 marks · (HL) Consider this sequence of instructions:

GPU

2 questions.

GPU

  • Core · 6 marks · Describe the GPU's role in three different real-world scenarios. For each, explain what kind of data the GPU processes in parallel and wh...
  • Core · 4 marks · Explain why GPUs are essential for modern gaming. Reference the number of pixels that must be calculated per frame and why parallel proce...

GPU vs CPU

5 questions.

GPU

  • Core · 6 marks · List three key differences between CPU and GPU architecture. For each difference, explain how it affects what tasks the processor is best...
  • Extension · 6 marks · A school runs a student database system that handles enrollment records, generates report cards, and processes individual student queries...
  • Extension · 6 marks · Compare how a CPU and GPU would each handle processing 1 million image pixels (e.g., converting a photo from colour to greyscale). Descri...
  • Challenge · 8 marks · A company wants to train an AI model during the day and run their office productivity software (email, spreadsheets, word processing) thr...
  • Challenge · 7 marks · (HL) Explain why a GPU would struggle with a program that has many if/else branches and sequential dependencies. Use the concept of SIMD ...

Memory and cache

4 questions.

Primary Memory

  • Core · 5 marks · Create a table comparing RAM, ROM, cache, and registers across five criteria: speed, capacity, volatility, cost per byte, and primary pur...
  • Core · 4 marks · Define cache hit and cache miss. For each, give a real-world analogy (e.g., finding a book on your desk vs going to the library).
  • Extension · 5 marks · Explain why L1 cache is faster but smaller than L3 cache. Why not make all cache L1-speed?
  • Challenge · 6 marks · A gaming PC has 32 GB RAM and 32 MB L3 cache. A budget office PC has 8 GB RAM and 4 MB L3 cache. Evaluate which system is better suited f...

RAM and ROM

1 question.

Primary Memory

  • Core · 6 marks · Explain why a computer needs both RAM and ROM. What would happen if a computer had only RAM? What if it had only ROM?

Virtual memory

2 questions.

Primary Memory

  • Extension · 5 marks · Describe what happens when a computer runs out of physical RAM. Explain how virtual memory helps and what problem arises if it is used to...
  • Challenge · 7 marks · A school server runs 50 virtual machines simultaneously. Users report the system has become extremely slow. Explain how thrashing could b...

Secondary storage

3 questions.

Secondary Storage

  • Core · 6 marks · Compare SSD and HDD across five criteria: speed, cost per GB, durability, capacity, and noise. Present your answer as a table and write o...
  • Core · 6 marks · List three different types of external storage. For each one, give a specific real-world use case explaining why that storage type is the...
  • Core · 6 marks · Explain why secondary storage is necessary even though RAM exists. Your answer should address at least three reasons, referencing the con...

Storage system design

3 questions.

Secondary Storage

  • Extension · 8 marks · A school is setting up a new computer lab with 30 machines. The IT budget allows either SSDs (256 GB each) or HDDs (1 TB each) for the sa...
  • Extension · 8 marks · Evaluate the advantages and disadvantages of cloud storage compared to local secondary storage. Consider: accessibility, cost model (subs...
  • Challenge · 10 marks · Design a storage solution for a media production company with these requirements:

Compression: lossless

4 questions.

Compression

  • Core · 3 marks · Apply Run-Length Encoding to each of the following strings:
  • Core · 2 marks · Decode the following RLE string back to the original: 4A2B3C1D
  • Extension · 4 marks · Apply RLE to the string AAAAABBBCCCCCCCC (16 characters). Calculate the compressed length and the compression ratio.
  • Extension · 4 marks · Explain why RLE is classified as lossless compression. How can you guarantee that the original data is perfectly recovered from the compr...

Compression: lossy

2 questions.

Compression

  • Core · 6 marks · State whether each of the following formats uses lossy or lossless compression: ZIP, MP3, PNG, JPEG, FLAC, MP4.
  • Challenge · 7 marks · Explain why MPEG uses three different frame types (I-frames, P-frames, and B-frames) rather than compressing each frame independently lik...

Compression evaluation

2 questions.

Compression

  • Extension · 6 marks · Compare JPEG and PNG compression. For each of the following scenarios, recommend which format to use and explain why:
  • Challenge · 8 marks · A streaming service needs to compress both audio and video for real-time playback. For each media type, evaluate which compression method...

Cloud service models

2 questions.

Cloud Computing

  • Core · 5 marks · Classify each of the following as SaaS, PaaS, or IaaS: Gmail, Azure Virtual Machines, Heroku, Zoom, Google Compute Engine. For each, expl...
  • Challenge · 9 marks · A growing startup currently has 10 employees but expects to grow to 100 within 2 years. Design a cloud architecture recommending specific...

Virtualisation

2 questions.

Cloud Computing

  • Core · 6 marks · Explain the difference between a virtual machine and a container. State one advantage and one disadvantage of each approach.
  • Extension · 6 marks · Explain how virtualisation makes cloud computing possible. Describe the role of the hypervisor and explain why running multiple VMs on on...

Cloud evaluation

2 questions.

Cloud Computing

  • Core · 6 marks · List three advantages of cloud computing over on-premise solutions. For each advantage, give a specific example of how it would benefit a...
  • Extension · 8 marks · A school with 500 students and 50 teachers is deciding between cloud and on-premise solutions for their IT infrastructure. Compare the tw...

Translation methods

3 questions.

Translation (HL)

  • Core · 4 marks · State two differences between a compiler and an interpreter. For each difference, explain which approach is better and why.
  • Core · 6 marks · For each scenario, state whether a compiler, interpreter, or bytecode+VM approach would be most suitable. Justify each answer:
  • Extension · 6 marks · A 200-line program has syntax errors on lines 50 and 150. Compare and contrast how a compiler and an interpreter would handle these error...

JIT and bytecode (HL)

2 questions.

Translation (HL)

  • Core · 4 marks · Draw a diagram showing the stages of Java translation from .java file to program output. Label each stage and name the tool or component ...
  • Extension · 4 marks · Explain how JIT compilation aims to provide \"the best of both worlds\" between compilation and interpretation. What are the trade-offs com...

Translation evaluation

3 questions.

Translation (HL)

  • Extension · 9 marks · A company distributes compiled C++ executables for Windows. They now want to support macOS and Linux as well. Evaluate three possible sol...
  • Challenge · 9 marks · Research one real programming language that uses each translation method: (a) purely compiled, (b) purely interpreted, (c) bytecode + JIT...
  • Challenge · 9 marks · Evaluate the statement: *\"Modern languages make the distinction between compilers and interpreters obsolete.\"* To what extent do you agre...

© EduCS.me — A resource hub for Computer Science education

This site uses Just the Docs, a documentation theme for Jekyll.