TetSharing

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:

Predicting a number is regression. (Chapter 1: What machine learning is)

2. Why not encode red, green and yellow as 0, 1 and 2?

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?

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?

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?

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?

The majority label among the three neighbors wins. (Chapter 6: k-nearest neighbors)

7. Why might a rare word use several tokens?

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?

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?

Values near 1 mean almost the same direction. (Chapter 9: Embeddings and similarity)

10. Why break evaluation results down by group?

Per-group metrics reveal disparities that a single average conceals. (Chapter 10: Responsible AI (NIST AI RMF))

← Back to the AI basics tutorial