Skip to content
AI Course Zero to Agent DE
Contents

In depth · Appendix · A4

Final quiz

Understand, calculate, apply: 30 questions with four answers each, at least one from every chapter, each with an explanation and a link to read more.

Reading time with exercises: 30 minutes

How the quiz works: each question has four answers, and exactly one is correct. As soon as you click an answer, the explanation appears below it with a link to the chapter, and at the end of the quiz you see how many you got right. You can change your choice at any time. Your progress is only saved in this browser (in local storage, localStorage); nobody else sees it, and on another device you start over. The button at the bottom resets all answers. Without JavaScript, each question keeps a “Show answer” you can expand.

A calculator is enough for the math questions. The formulas you need are in the cheat sheet, the terms in the glossary.

The 30 questions

1. A fully connected network has 4 inputs, one hidden layer with 3 neurons, and 2 outputs. How many parameters does it have?

The answer is B. Weights: 4 × 3 + 3 × 2 = 18. Only the neurons that compute have biases: 3 + 2 = 5. Together 23; the input layer has no biases (chapter 1).

Show answer

The answer is B. Weights: 4 × 3 + 3 × 2 = 18. Only the neurons that compute have biases: 3 + 2 = 5. Together 23; the input layer has no biases (chapter 1).

2. Yesterday a colleague explained your price list to the chatbot and thinks the model now knows it for everyone on the team. What’s true?

The answer is D. During inference the parameters are frozen. For everyone to be able to use the price list, it has to be sent along or looked up every time (chapter 1, chapter 11).

Show answer

The answer is D. During inference the parameters are frozen. For everyone to be able to use the price list, it has to be sent along or looked up every time (chapter 1, chapter 11).

3. An online store runs a chatbot that doesn’t say it’s an AI. What maximum fine does the EU AI Act set for this violation of Article 50?

The answer is A. €35 million or 7 percent applies only to prohibited practices under Article 5, €20 million or 4 percent is a tier of the GDPR, and €7.5 million or 1 percent applies to false information given to authorities (chapter 2).

Show answer

The answer is A. €35 million or 7 percent applies only to prohibited practices under Article 5, €20 million or 4 percent is a tier of the GDPR, and €7.5 million or 1 percent applies to false information given to authorities (chapter 2).

4. An HR department wants to evaluate paper questionnaires with checked boxes, which someone has so far typed into Excel by hand. What does the course’s decision guide recommend?

The answer is C. The task drops out at the very first question of the decision guide: counting check marks follows a fixed rule. Video 1 (in German) solves exactly this case “interestingly, not with AI” (chapter 2).

Show answer

The answer is C. The task drops out at the very first question of the decision guide: counting check marks follows a fixed rule. Video 1 (in German) solves exactly this case “interestingly, not with AI” (chapter 2).

5. Three candidates have the logits 2, 1 and 0. How likely is the first one after the softmax function at temperature 1?

The answer is C. e² = 7.389, e¹ = 2.718, e⁰ = 1, sum 11.107. 7.389 ÷ 11.107 = 66.5 percent. 86.7 percent would be the value at temperature 0.5 (chapter 3).

Show answer

The answer is C. e² = 7.389, e¹ = 2.718, e⁰ = 1, sum 11.107. 7.389 ÷ 11.107 = 66.5 percent. 86.7 percent would be the value at temperature 0.5 (chapter 3).

6. A script sends the parameter “temperature”: 0 to Claude Opus 5.5 with API version 2026-10-21 to always get the same answers. What happens?

The answer is A. Starting with this API version, any sampling parameter sent along leads to a 400 error, even with the default value. According to Anthropic, temperature 0 never guaranteed identical outputs in the past either (chapter 3).

Show answer

The answer is A. Starting with this API version, any sampling parameter sent along leads to a 400 error, even with the default value. According to Anthropic, temperature 0 never guaranteed identical outputs in the past either (chapter 3).

7. Where are most of Qwen3-8B’s 8.19 billion parameters?

The answer is D. The feed-forward layers hold 66.4 percent, the attention only 18.4 percent, and the embedding and output matrix share the rest (chapter 4).

Show answer

The answer is D. The feed-forward layers hold 66.4 percent, the attention only 18.4 percent, and the embedding and output matrix share the rest (chapter 4).

8. A chat has a fixed part of 3,000 tokens, each user message has 200 tokens, each answer 400. How many input tokens does the application send in round 10?

The answer is B. Input in round n = 3,000 + n × 200 + (n − 1) × 400, so 3,000 + 2,000 + 3,600 = 8,600. Because the whole history goes along every time, the costs grow roughly with the square of the number of rounds (chapter 5).

Show answer

The answer is B. Input in round n = 3,000 + n × 200 + (n − 1) × 400, so 3,000 + 2,000 + 3,600 = 8,600. Because the whole history goes along every time, the costs grow roughly with the square of the number of rounds (chapter 5).

9. An agent starts its system prompt with “Today is Tuesday, 2:32 p.m.”, followed by 7,000 tokens of fixed rules and tools. Why does prompt caching save almost nothing here?

The answer is A. Fixed parts belong at the front, changing parts like the date and time at the end or in the user message. The minimum length is 512 tokens, and the cache lasts five minutes (chapter 5, chapter 7).

Show answer

The answer is A. Fixed parts belong at the front, changing parts like the date and time at the end or in the user message. The minimum length is 512 tokens, and the cache lasts five minutes (chapter 5, chapter 7).

10. A model is 9.3 GB in Q4_K_M. How many tokens per second can it generate at most when writing on a Mac with an M4 Pro (273 GB/s)?

The answer is B. Upper limit = bandwidth ÷ bytes per token = 273 ÷ 9.3 ≈ 29. Based on the Spark measurements, expect about 70 percent of that in practice; about 13 would be the limit on an M4 with 120 GB/s (chapter 6).

Show answer

The answer is B. Upper limit = bandwidth ÷ bytes per token = 273 ÷ 9.3 ≈ 29. Based on the Spark measurements, expect about 70 percent of that in practice; about 13 would be the limit on an M4 with 120 GB/s (chapter 6).

11. According to the llama.cpp docs, the decode rate of Llama 3.1 8B rises from 29 (F16) to 72 tokens per second (Q4_K_M), while prefill stays at 820 to 920. Why?

The answer is D. During prefill, many tokens run through per loaded weight, and the compute units are fully busy. During decode, every weight is read for every single token, so a smaller file brings an almost proportional gain in speed (chapter 6).

Show answer

The answer is D. During prefill, many tokens run through per loaded weight, and the compute units are fully busy. During decode, every weight is read for every single token, so a smaller file brings an almost proportional gain in speed (chapter 6).

12. Llama 3.1 8B has 32 layers, 8 KV heads and a head dimension of 128. How big is the KV cache in FP16 with a context of 32,768 tokens?

The answer is C. 2 × 32 × 8 × 128 × 2 bytes = 131,072 bytes (128 KiB) per token, times 32,768 tokens = 4 GiB. It would be 16 GiB at the full 131,072 tokens (chapter 7).

Show answer

The answer is C. 2 × 32 × 8 × 128 × 2 bytes = 131,072 bytes (128 KiB) per token, times 32,768 tokens = 4 GiB. It would be 16 GiB at the full 131,072 tokens (chapter 7).

13. A document with 100,000 tokens sits at the start of 10 questions to Claude Opus 5.5 ($4 per million input tokens), all less than five minutes apart. What does the document part cost with prompt caching?

The answer is B. The first request writes the cache: 100,000 × $4 × 1.25 ÷ 1,000,000 = $0.50. Nine hits read at a twentieth: 9 × 100,000 × $4 × 0.05 ÷ 1,000,000 = $0.18. Together $0.68 instead of $4.00 without caching (chapter 7).

Show answer

The answer is B. The first request writes the cache: 100,000 × $4 × 1.25 ÷ 1,000,000 = $0.50. Nine hits read at a twentieth: 9 × 100,000 × $4 × 0.05 ÷ 1,000,000 = $0.18. Together $0.68 instead of $4.00 without caching (chapter 7).

14. Which rule applies to a Mixture of Experts model like gpt-oss-120b?

The answer is A. All experts have to be ready, but only the active ones are read per token: gpt-oss-120b takes up about 65 GB and reads about 5 GB per token. Experts aren’t subject areas (chapter 8).

Show answer

The answer is A. All experts have to be ready, but only the active ones are read per token: gpt-oss-120b takes up about 65 GB and reads about 5 GB per token. Experts aren’t subject areas (chapter 8).

15. gpt-oss-120b only reads about 5 GB per token. Why doesn’t it still run smoothly on a MacBook with 24 GB?

The answer is D. Loading experts from the SSD on demand is far too slow. The middle ground --cpu-moe only helps on PCs with a separate graphics card; a Mac has only one memory (chapter 8).

Show answer

The answer is D. Loading experts from the SSD on demand is far too slow. The middle ground --cpu-moe only helps on PCs with a separate graphics card; a Mac has only one memory (chapter 8).

16. A model has 14 billion parameters. Roughly how big are its weights in Q4_K_M with a measured 4.89 bits per weight?

The answer is C. 14 × 4.89 ÷ 8 ≈ 8.6 GB. With a flat 4 bits you’d get 7.0 GB and underestimate; 10.0 GB would be Q5_K_M. The KV cache and overhead come on top (chapter 9).

Show answer

The answer is C. 14 × 4.89 ÷ 8 ≈ 8.6 GB. With a flat 4 bits you’d get 7.0 GB and underestimate; 10.0 GB would be Q5_K_M. The KV cache and overhead come on top (chapter 9).

17. Why is BF16 more popular than FP16 for neural networks, even though both have 16 bits?

The answer is A. BF16 has 1 sign bit, 8 exponent bits and 7 mantissa bits; FP16 has 5 exponent and 10 mantissa bits. For training, the value range matters more than the third decimal place (chapter 9).

Show answer

The answer is A. BF16 has 1 sign bit, 8 exponent bits and 7 mantissa bits; FP16 has 5 exponent and 10 mantissa bits. For training, the value range matters more than the third decimal place (chapter 9).

18. You want to set the default context length in Ollama to 8,192 tokens for all requests. Which environment variable is correct?

The answer is C. OLLAMA_NUM_CTX doesn’t exist and is silently ignored, even though video 1 names it. num_ctx is only the name of the parameter in a request, in the Modelfile or with /set parameter (chapter 10).

Show answer

The answer is C. OLLAMA_NUM_CTX doesn’t exist and is silently ignored, even though video 1 names it. num_ctx is only the name of the parameter in a request, in the Modelfile or with /set parameter (chapter 10).

19. A colleague has a MacBook with 8 GB and wants to try a model with some context locally. What fits, according to the table in the course?

The answer is B. On 8 GB, realistically about 5 GB is left after the system and browser. An 8B model alone is already that big, and Ollama would put layers on the CPU. An MoE needs memory for all experts (chapter 10).

Show answer

The answer is B. On 8 GB, realistically about 5 GB is left after the system and browser. An 8B model alone is already that big, and Ollama would put layers on the CPU. An MoE needs memory for all experts (chapter 10).

20. What is the cosine similarity of the vectors (1, 0, 1) and (1, 1, 0)?

The answer is D. Dot product 1 · 1 + 0 · 1 + 1 · 0 = 1. Both lengths are √2. 1 ÷ (√2 · √2) = 0.5. If you divide by only one of the two lengths, you get 0.707 (chapter 11).

Show answer

The answer is D. Dot product 1 · 1 + 0 · 1 + 1 · 0 = 1. Both lengths are √2. 1 ÷ (√2 · √2) = 0.5. If you divide by only one of the two lengths, you get 0.707 (chapter 11).

21. A service chatbot with purely semantic search can’t find the only manual section on the error message “E-4711”. What helps most?

The answer is B. To an embedding model, “E-4711” and “E-4712” look almost the same. BM25 gives a term that appears in only one chunk a very high weight (chapter 11).

Show answer

The answer is B. To an embedding model, “E-4711” and “E-4712” look almost the same. BM25 gives a term that appears in only one chunk a very high weight (chapter 11).

22. Five AI applications are supposed to use 20 services. How many building blocks do you need with MCP?

The answer is A. Without a shared standard it would be 5 × 20 = 100 connections. With MCP, each service gets a server once and each application gets a client once: 5 + 20 = 25 (chapter 12).

Show answer

The answer is A. Without a shared standard it would be 5 × 20 = 100 connections. With MCP, each service gets a server once and each application gets a client once: 5 + 20 = 25 (chapter 12).

23. A caller says: “My customer number is … hold on … 4711.” The voice agent already answers after “is”. Which change helps most?

The answer is D. A plain silence threshold takes the pause after “is” for the end of the sentence. A longer threshold would cost time at every sentence end; a turn model also evaluates the words and how they sound (chapter 13).

Show answer

The answer is D. A plain silence threshold takes the pause after “is” for the end of the sentence. A longer threshold would cost time at every sentence end; a turn model also evaluates the words and how they sound (chapter 13).

24. What is “memory” in an assistant like tybo, technically?

The answer is C. The weights don’t change in operation, and the KV cache only applies to one request. tybo stores facts, goals and history in Supabase, or without a database only facts and goals in a SQLite file, and pulls what’s relevant into the prompt (chapter 14).

Show answer

The answer is C. The weights don’t change in operation, and the KV cache only applies to one request. tybo stores facts, goals and history in Supabase, or without a database only facts and goals in a SQLite file, and pulls what’s relevant into the prompt (chapter 14).

25. A company builds a page with a logo and a fixed system prompt that sends each question exactly once to Claude Opus 5.5 and shows the answer. What is that?

The answer is A. It only becomes a harness with tools, a loop, permissions and context management, an agent with a goal and its own steps, and an autonomous agent with triggers like schedules (chapter 15).

Show answer

The answer is A. It only becomes a harness with tools, a loop, permissions and context management, an agent with a goal and its own steps, and an autonomous agent with triggers like schedules (chapter 15).

26. How does an agent loop with the Claude API reliably recognize that it’s done?

The answer is B. Text can appear alongside tool calls, and the maximum number of rounds is only a safety net. Ollama has no stop_reason; there, the absence of tool_calls marks the end (chapter 16).

Show answer

The answer is B. Text can appear alongside tool calls, and the maximum number of rounds is only a safety net. Ollama has no stop_reason; there, the absence of tool_calls marks the end (chapter 16).

27. A briefing script can’t reach the calendar API; the cache holds yesterday’s appointments. What does the rule “no old data” require?

The answer is C. A briefing with yesterday’s appointments looks right and leads people astray. Only the error code lets the wrapper and the routine watchdog in tybo see the failure (chapter 17).

Show answer

The answer is C. A briefing with yesterday’s appointments looks right and leads people astray. Only the error code lets the wrapper and the routine watchdog in tybo see the failure (chapter 17).

28. An agent reads application PDFs, compares them with internal documents and on its own sends reply emails to the applicants. What does the Agents Rule of Two say about this?

The answer is D. A note in the system prompt is a request, not protection, and an email is a way out. Better: read the PDF into a fixed schema without tools, compare separately, and send the email only after approval (chapter 18).

Show answer

The answer is D. A note in the system prompt is a request, not protection, and an email is a way out. Better: read the PDF into a fixed schema without tools, compare separately, and send the email only after approval (chapter 18).

29. How many trainable parameters does a LoRA adapter with rank 8 have on a matrix of size 4,096 × 4,096?

The answer is A. r × (rows + columns) = 8 × (4,096 + 4,096) = 65,536, which is 0.39 percent of the 16,777,216 values of the full matrix. 32,768 is only one of the two matrices B and A (chapter 19).

Show answer

The answer is A. r × (rows + columns) = 8 × (4,096 + 4,096) = 65,536, which is 0.39 percent of the 16,777,216 values of the full matrix. 32,768 is only one of the two matrices B and A (chapter 19).

30. A team wants its assistant to know the current prices of 400 products that change every month. Which approach fits?

The answer is B. For knowledge that changes, RAG is the right approach; after every change, a fine-tuned model states the old prices with great confidence and without a source. Fine-tuning shapes form, style and narrow tasks (chapter 19).

Show answer

The answer is B. For knowledge that changes, RAG is the right approach; after every change, a fine-tuned model states the old prices with great confidence and without a source. Fine-tuning shapes form, style and narrow tasks (chapter 19).

What’s next?

If you get a question wrong, read the linked section and work through the example there yourself. The review questions at the end of each chapter go deeper than this quiz, because they ask for reasoning instead of a choice.

Progress is saved in this browser only.