These practice questions cover the entire course. Attempt each question before revealing
the answer. The format mimics the final exam — a mix of multiple‑choice, short answer,
and coding/architecture questions.
Section 1: Multiple Choice
Q1
Which of the following is NOT a layer in a typical full‑stack architecture?
Frontend (UI)
Backend API
Blockchain ledger
Database
Show answer
C. Blockchain ledger.
Q2
In the CAP theorem, which property is often sacrificed in NoSQL systems for high
availability?
Availability
Partition tolerance
Consistency
Performance
Show answer
C. Consistency (eventual consistency is used instead).
Q3
What is the primary advantage of using React's Context API?
It replaces Redux entirely
It avoids prop drilling by providing global state
It improves performance by memoising components
It handles side effects automatically
Show answer
B. It avoids prop drilling by providing global state.
Q4
Which tool is used to containerise applications for consistent deployment?
Git
Docker
Jenkins
Nginx
Show answer
B. Docker.
Section 2: Short Answer
Q5
Explain the N+1 query problem in ORMs and how to solve it.
Show answer
N+1 occurs when an ORM fetches parent entities with one query and then fetches each
child with a separate query (N). Solved by eager loading (e.g.,
include, join) to fetch children in the same query.
Q6
What are the four principles of the WCAG accessibility standard?
List three caching patterns and describe one use case for each.
Show answer
Cache‑Aside: User profiles – fetch from DB on miss, store in Redis.
Write‑Through: Financial transactions – writes go to cache and DB synchronously.
Write‑Behind: Analytics logs – writes go to cache, then asynchronously to DB.
Section 3: Coding & Architecture
Q8
Write a React component that fetches and displays a list of users using React
Query.
Show sample answer
import { useQuery } from '@tanstack/react-query';
import axios from 'axios';