AI basics final quiz One question from each of the 10 chapters. Pick an answer for each, then press Check answers . Each explanation links back to the chapter it comes from, so you know exactly what to reread.
10 questions 1. Predicting the sale price of a house is an example of: Classification Regression Unsupervised learning Reinforcement learning Predicting a number is regression. (Chapter 1: What machine learning is )
2. Why not encode red, green and yellow as 0, 1 and 2? It implies an order and distances between colors that do not exist Numbers cannot be used as features It makes the dataset too large Colors must be removed from datasets One-hot encoding avoids inventing an order between categories. (Chapter 2: Features and labels )
3. What is the purpose of a random seed when shuffling? To make the shuffle more random To make the same shuffle repeatable To remove duplicates To balance the classes A fixed seed gives the same sequence every run. (Chapter 3: Train, test and validation data )
4. Why did the threshold model beat the memorizer on test data? It was too simple to memorize the noisy labels It trained on the test set It used more features It had perfect training accuracy Its limited flexibility prevented it from learning noise. (Chapter 4: Overfitting )
5. There are 20 fraudulent transactions and the model catches 5. What is its recall? 0.25 0.75 0.05 5 Recall = TP / (TP + FN) = 5 / 20. (Chapter 5: Accuracy, precision, recall )
6. With k = 3, the nearest neighbors are labeled orange, lemon, orange. What is predicted? orange lemon A tie Nothing until k is increased The majority label among the three neighbors wins. (Chapter 6: k-nearest neighbors )
7. Why might a rare word use several tokens? The tokenizer skips rare words It is not in the vocabulary as a whole, so it is split into smaller pieces Rare words are always translated first Each letter is always one token Subword tokenizers break unfamiliar words into known pieces. (Chapter 7: LLMs, tokens and context )
8. Which prompt is most likely to get a useful summary? Summarize. Thoughts on this? Summarize this bug report in 3 bullets for a non-technical manager PLEASE summarize!!! It states the task, the audience, the length and the format. (Chapter 8: Prompt basics )
9. Two vectors have a cosine similarity of about 0.98. What does that suggest? They point in nearly the same direction, so the items are very similar They are unrelated They are opposites One vector is longer Values near 1 mean almost the same direction. (Chapter 9: Embeddings and similarity )
10. Why break evaluation results down by group? An average can hide much worse performance for some groups It makes the model train faster It is required to compute accuracy Groups always have identical results Per-group metrics reveal disparities that a single average conceals. (Chapter 10: Responsible AI (NIST AI RMF) )
Check answers
← Back to the AI basics tutorial