Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/autopilot.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ The owner's priority since 2026-11-03: proper exam practice. The design, decisio
- [x] Discrete Mathematics: +26 (42 → 68), 1 or 2 for each of the 17 taught lessons, each with `lesson` and `section`. (PR #101)
- [x] Data Structures: +20 (28 → 48) and Computer Networks: +9 (27 → 36), 1 or 2 per taught lesson, each with `lesson` and `section`. (PR #102, stacked on #101)
- 4c is done for every course except Logic Design and Computer Architecture (inline practice, owner's decision pending), Algorithm Design (owner's) and Advanced Software Engineering (its authors').
- [ ] 4d. Set `lesson`/`section` on the 259 migrated questions.
- [ ] 4d. Set `lesson`/`section` on the migrated quiz questions. Counted 2026-11-19: 262 untagged in 9 courses.
- [x] Computer Organization 10, Microprocessors 10, Computer Architecture 6, Computer Networks 27, Data Structures 28: 81 tagged. (PR #104, stacked on #102)
- [ ] Still untagged: Computational Mathematics 83, Discrete Mathematics 42, Logic Design 40, Algorithm Design 16.
- [ ] 5. Generated questions (subnets, scheduling, Big-O first).
- [ ] 6. Account sync for review cards and exam attempts.

Expand Down Expand Up @@ -94,6 +96,7 @@ Nothing. The exam-stack block (since 2026-11-06, over #68's inline practice ques

Newest first. One line per run: date and run, what was done, PR link, merged or open.

- 2026-11-19 06:10 (run A): exam phase 4d started. Tagged 81 migrated quiz questions in five courses with the lesson (and, where one heading teaches it, the section) that teaches each, checked against the lesson text. The bank test confirms every lesson and heading exists. PR #104, open, stacked on #102.
- 2026-11-18 10:40 (run B): exam phase 4c, the last two courses: Data Structures +20 and Computer Networks +9, numbers checked by script (g[2][1] at 1036, 31 copies for 17 doubling appends, ring back at index 1, heap parent of 9 is 4, 10 ms over 2,000 km, cwnd 16 after 4 slow-start round trips). Next exam phase: 4d, tagging the 259 migrated quiz questions with `lesson` and `section`. PR #102, open, stacked on #101.
- 2026-11-18 06:10 (run A): the owner merged everything on 2026-11-17 (the exam stack #90 to #96, #86, #92, #99, #100), so this phase branches from main again. Exam phase 4c, Discrete Mathematics: +26 questions over all 17 taught lessons (precedence, vacuous truth, contrapositive vs converse, nested quantifiers, composition order, partial orders, proof setups, the base case, strong induction, invariant checks, sum and product rules, binomial and Pascal, pigeonhole, K₇, Euler vs Hamiltonian, tree height, expectation, birthday pairs), numbers checked by script. PR #101, open.
- 2026-11-17 14:50 (run C): from the 2026-11-12 audit, the Computer Organization `bits-and-bytes` unit ladder (124 px too wide at 390 px) now fits. Its captions now sit under their bars in a two-column grid at every width, which also fixes the desktop TB and PB captions wrapping unindented, and "2^0 = 1 bytes" now reads "1 byte". PR #99, open. Its CI check is red only because main is: The Exam Mind's round 7 (#97) renamed a heading that a bank question points at; fixed in PR #100.
Expand Down
12 changes: 12 additions & 0 deletions src/content/computer-architecture/questions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ export const questions: Question[] = [
{
id: "computer-architecture/hardware-datapath-quiz/q1",
quiz: "hardware-datapath-quiz",
lesson: "demystifying-circuit-schematics",
section: "marks-on-wires-and-pins",
prompt: "In a digital schematic, what does an inversion bubble (small circle) on an input pin signify?",
options: [
{ id: "a", text: "The input is active-low: it acts when pulled to 0" },
Expand All @@ -260,6 +262,8 @@ export const questions: Question[] = [
{
id: "computer-architecture/hardware-datapath-quiz/q2",
quiz: "hardware-datapath-quiz",
lesson: "sequential-logic-and-latches",
section: "the-sr-latch",
prompt: "Why is S = 1 and R = 1 considered a forbidden input condition in an SR latch built from NOR gates?",
options: [
{ id: "a", text: "It causes both outputs Q and Q' to become 0, and subsequent release produces an unpredictable race condition" },
Expand All @@ -273,6 +277,8 @@ export const questions: Question[] = [
{
id: "computer-architecture/hardware-datapath-quiz/q3",
quiz: "hardware-datapath-quiz",
lesson: "registers-and-shift-registers",
section: "shift-registers",
prompt: "A 4-bit Serial-In Serial-Out (SISO) shift register starts cleared at 0000. Data bits 1, 0, 1, 1 arrive sequentially, shifting right with bits entering at the most significant bit (Q3). What is the register's 4-bit state immediately after the 4th clock tick?",
options: [
{ id: "a", text: "1101" },
Expand All @@ -286,6 +292,8 @@ export const questions: Question[] = [
{
id: "computer-architecture/hardware-datapath-quiz/q4",
quiz: "hardware-datapath-quiz",
lesson: "ripple-and-synchronous-counters",
section: "the-settling-problem",
prompt: "A 4-bit binary ripple counter has a flip-flop propagation delay of 12 ns per stage. What is the maximum settling time when rolling from 7 (0111) to 8 (1000)?",
options: [
{ id: "a", text: "48 ns" },
Expand All @@ -299,6 +307,8 @@ export const questions: Question[] = [
{
id: "computer-architecture/hardware-datapath-quiz/q5",
quiz: "hardware-datapath-quiz",
lesson: "ripple-and-synchronous-counters",
section: "synchronous-counters",
prompt: "In designing a 3-bit synchronous binary counter using T flip-flops, what is the required input equation for the most significant toggle input T2?",
options: [
{ id: "a", text: "T2 = A1 · A0" },
Expand All @@ -312,6 +322,8 @@ export const questions: Question[] = [
{
id: "computer-architecture/hardware-datapath-quiz/q6",
quiz: "hardware-datapath-quiz",
lesson: "ripple-and-synchronous-counters",
section: "the-program-counter",
prompt: "How does the CPU's Program Counter (PC) handle non-sequential jumps and branches?",
options: [
{ id: "a", text: "The control unit sets the PC's LOAD input, and the jump address is loaded into its flip-flops" },
Expand Down
54 changes: 54 additions & 0 deletions src/content/computer-networks/questions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export const questions: Question[] = [
{
id: "computer-networks/foundations-quiz/q1",
quiz: "foundations-quiz",
lesson: "layers-and-packets",
section: "the-four-layers",
prompt: "Which layer's job is to deliver data to the right program on a machine, using port numbers?",
options: [
{ id: "a", text: "Application" },
Expand All @@ -20,6 +22,8 @@ export const questions: Question[] = [
{
id: "computer-networks/foundations-quiz/q2",
quiz: "foundations-quiz",
lesson: "layers-and-packets",
section: "encapsulation",
prompt: "A router forwarding a packet normally reads which headers?",
options: [
{ id: "a", text: "Only the HTTP request" },
Expand All @@ -33,6 +37,8 @@ export const questions: Question[] = [
{
id: "computer-networks/foundations-quiz/q3",
quiz: "foundations-quiz",
lesson: "delay-and-throughput",
section: "four-kinds-of-delay",
prompt: "A 12,000-bit packet goes onto a 1 Mb/s link. What is its transmission delay?",
options: [
{ id: "a", text: "1.2 µs" },
Expand All @@ -46,6 +52,8 @@ export const questions: Question[] = [
{
id: "computer-networks/foundations-quiz/q4",
quiz: "foundations-quiz",
lesson: "delay-and-throughput",
section: "latency-round-trips-and-throughput",
prompt: "You upgrade from 100 Mb/s to 1 Gb/s, but a small web page from another continent loads almost as slowly. Why?",
options: [
{ id: "a", text: "The upgrade didn't work" },
Expand All @@ -59,6 +67,8 @@ export const questions: Question[] = [
{
id: "computer-networks/foundations-quiz/q5",
quiz: "foundations-quiz",
lesson: "delay-and-throughput",
section: "latency-round-trips-and-throughput",
prompt: "A path crosses links of 1 Gb/s, 50 Mb/s and 300 Mb/s. What is the most throughput you can get end to end?",
options: [
{ id: "a", text: "1 Gb/s" },
Expand All @@ -72,6 +82,8 @@ export const questions: Question[] = [
{
id: "computer-networks/foundations-quiz/q6",
quiz: "foundations-quiz",
lesson: "delay-and-throughput",
section: "latency-round-trips-and-throughput",
prompt: "Why must a fast sender on a long-distance link keep many bytes \"in flight\" rather than waiting for each reply?",
options: [
{ id: "a", text: "To save memory" },
Expand All @@ -85,6 +97,8 @@ export const questions: Question[] = [
{
id: "computer-networks/network-quiz/q1",
quiz: "network-quiz",
lesson: "ip-addresses-and-subnets",
section: "network-part-and-host-part",
prompt: "How many usable host addresses does a /27 subnet have?",
options: [
{ id: "a", text: "27" },
Expand All @@ -98,6 +112,8 @@ export const questions: Question[] = [
{
id: "computer-networks/network-quiz/q2",
quiz: "network-quiz",
lesson: "ip-addresses-and-subnets",
section: "network-part-and-host-part",
prompt: "What is the network address of 172.16.5.4/20?",
options: [
{ id: "a", text: "172.16.0.0" },
Expand All @@ -111,6 +127,8 @@ export const questions: Question[] = [
{
id: "computer-networks/network-quiz/q3",
quiz: "network-quiz",
lesson: "routing",
section: "longest-prefix-match",
prompt: "A forwarding table has 10.0.0.0/8 → A, 10.4.0.0/16 → B and 0.0.0.0/0 → C. Where does a packet for 10.4.9.1 go?",
options: [
{ id: "a", text: "A, the first match" },
Expand All @@ -124,6 +142,8 @@ export const questions: Question[] = [
{
id: "computer-networks/network-quiz/q4",
quiz: "network-quiz",
lesson: "ip-addresses-and-subnets",
section: "private-addresses-and-nat",
prompt: "Your laptop at home has the address 192.168.1.23. How can it reach a public website?",
options: [
{ id: "a", text: "192.168 addresses are public" },
Expand All @@ -137,6 +157,8 @@ export const questions: Question[] = [
{
id: "computer-networks/network-quiz/q5",
quiz: "network-quiz",
lesson: "routing",
section: "link-state-routing",
prompt: "In link-state routing, what does each router use to compute its forwarding table?",
options: [
{ id: "a", text: "Only its neighbours' distance estimates" },
Expand All @@ -150,6 +172,8 @@ export const questions: Question[] = [
{
id: "computer-networks/network-quiz/q6",
quiz: "network-quiz",
lesson: "routing",
section: "ttl-and-traceroute",
prompt: "What stops a packet circulating forever if routers form a loop?",
options: [
{ id: "a", text: "The TCP checksum" },
Expand All @@ -163,6 +187,8 @@ export const questions: Question[] = [
{
id: "computer-networks/transport-quiz/q1",
quiz: "transport-quiz",
lesson: "udp-and-ports",
section: "ports",
prompt: "One web server on port 443 is talking to 5,000 browsers at once. How does it tell their connections apart?",
options: [
{ id: "a", text: "Each browser uses a different server port" },
Expand All @@ -176,6 +202,8 @@ export const questions: Question[] = [
{
id: "computer-networks/transport-quiz/q2",
quiz: "transport-quiz",
lesson: "udp-and-ports",
section: "why-use-an-unreliable-protocol",
prompt: "Which is a good reason to choose UDP over TCP?",
options: [
{ id: "a", text: "You need every byte delivered in order" },
Expand All @@ -189,6 +217,8 @@ export const questions: Question[] = [
{
id: "computer-networks/transport-quiz/q3",
quiz: "transport-quiz",
lesson: "tcp-reliable-delivery",
section: "a-reliable-byte-stream",
prompt: "A client sends `send(\"ab\")` then `send(\"cd\")` over TCP. What might one `recv(10)` on the server return?",
options: [
{ id: "a", text: "Always exactly \"ab\"" },
Expand All @@ -202,6 +232,8 @@ export const questions: Question[] = [
{
id: "computer-networks/transport-quiz/q4",
quiz: "transport-quiz",
lesson: "tcp-reliable-delivery",
section: "sequence-numbers-and-acknowledgements",
prompt: "A receiver has bytes up to 199, and segments starting at 300 and 400 arrive, but 200 to 299 is missing. What ACK number does it send?",
options: [
{ id: "a", text: "200" },
Expand All @@ -215,6 +247,8 @@ export const questions: Question[] = [
{
id: "computer-networks/transport-quiz/q5",
quiz: "transport-quiz",
lesson: "tcp-reliable-delivery",
section: "retransmission",
prompt: "Why does TCP resend after three duplicate ACKs instead of waiting for the timeout?",
options: [
{ id: "a", text: "Duplicate ACKs mean the connection is closing" },
Expand All @@ -228,6 +262,8 @@ export const questions: Question[] = [
{
id: "computer-networks/transport-quiz/q6",
quiz: "transport-quiz",
lesson: "congestion-control",
section: "backing-off",
prompt: "In congestion avoidance, a TCP Reno sender has cwnd = 20 and gets three duplicate ACKs. What happens?",
options: [
{ id: "a", text: "cwnd becomes 1 and slow start restarts" },
Expand All @@ -241,6 +277,8 @@ export const questions: Question[] = [
{
id: "computer-networks/transport-quiz/q7",
quiz: "transport-quiz",
lesson: "congestion-control",
section: "why-aimd-is-fair",
prompt: "Why does AIMD make competing flows converge to equal shares?",
options: [
{ id: "a", text: "Routers divide the bandwidth evenly" },
Expand All @@ -254,6 +292,8 @@ export const questions: Question[] = [
{
id: "computer-networks/final-quiz/q1",
quiz: "final-quiz",
lesson: "dns",
section: "resolution",
prompt: "You type a URL for a site you've never visited. What happens first, before any connection to the site?",
options: [
{ id: "a", text: "A TCP handshake with the site" },
Expand All @@ -267,6 +307,8 @@ export const questions: Question[] = [
{
id: "computer-networks/final-quiz/q2",
quiz: "final-quiz",
lesson: "dns",
section: "resolution",
prompt: "Your resolver has no cache. How does it find the address for www.decoded-demo.com?",
options: [
{ id: "a", text: "It asks one central server that knows every name" },
Expand All @@ -280,6 +322,8 @@ export const questions: Question[] = [
{
id: "computer-networks/final-quiz/q3",
quiz: "final-quiz",
lesson: "dns",
section: "caching-and-ttl",
prompt: "You change your website's A record, but some users still reach the old server an hour later. Why?",
options: [
{ id: "a", text: "DNS changes need a server restart" },
Expand All @@ -293,6 +337,8 @@ export const questions: Question[] = [
{
id: "computer-networks/final-quiz/q4",
quiz: "final-quiz",
lesson: "http-and-https",
section: "https-and-tls",
prompt: "Over TCP with TLS 1.3, how many round trips pass before the first byte of the HTTP request can be sent (ignoring DNS)?",
options: [
{ id: "a", text: "0" },
Expand All @@ -306,6 +352,8 @@ export const questions: Question[] = [
{
id: "computer-networks/final-quiz/q5",
quiz: "final-quiz",
lesson: "ip-addresses-and-subnets",
section: "network-part-and-host-part",
prompt: "Your laptop (192.168.1.23/24) sends a packet to 203.0.113.10. Where does it send the packet first?",
options: [
{ id: "a", text: "Directly to 203.0.113.10 over Wi-Fi" },
Expand All @@ -319,6 +367,8 @@ export const questions: Question[] = [
{
id: "computer-networks/final-quiz/q6",
quiz: "final-quiz",
lesson: "routing",
section: "longest-prefix-match",
prompt: "A router in the middle of the internet forwards the packet. What does it look at?",
options: [
{ id: "a", text: "The HTTP request, to see what's being fetched" },
Expand All @@ -332,6 +382,8 @@ export const questions: Question[] = [
{
id: "computer-networks/final-quiz/q7",
quiz: "final-quiz",
lesson: "tcp-reliable-delivery",
section: "retransmission",
prompt: "One segment of the page is lost on the way back. What does the browser's application code see?",
options: [
{ id: "a", text: "A gap in the page" },
Expand All @@ -345,6 +397,8 @@ export const questions: Question[] = [
{
id: "computer-networks/final-quiz/q8",
quiz: "final-quiz",
lesson: "http-and-https",
section: "requests-and-responses",
prompt: "The server responds with status 304. What should the browser do?",
options: [
{ id: "a", text: "Show an error page" },
Expand Down
Loading
Loading