Sample questions
Question 1Easy
Why evaluate an LLM system on a fixed set after every prompt change?
- To reduce token prices
- To retrain the model
- To delete old prompts
- To catch regressions
Answer: D. To catch regressions
Explanation
A prompt tweak that fixes one case can silently break others.
Step-by-step solution
- A prompt change aimed at one case may affect others.
- Re-running a fixed set shows whether old passing cases now fail.
- This catches regressions before users see them.
Why the other options are wrong
- A. Evaluation does not change pricing.
- B. Evaluation does not retrain the model.
- C. Old prompts are kept for comparison, not deleted.
Tip: Change a prompt, rerun the evals.
Question 2Easy
A regression test for an LLM app ensures that:
- The model is retrained daily
- Users cannot log in
- Costs never change
- Previously working cases still work
Answer: D. Previously working cases still work
Explanation
Re-running a fixed suite after changes catches breakage.
Step-by-step solution
- Keep a suite of cases that worked before.
- Re-run it after each change.
- Any newly failing case is a regression.
Why the other options are wrong
- A. Regression tests do not retrain models.
- B. Unrelated to login.
- C. Testing does not freeze costs.
Tip: Regression test = did anything that worked break?
Question 3Easy
A "golden" evaluation set is:
- The model's training data
- A fixed, labelled test set
- A list of prices
- A set of random prompts each day
Answer: B. A fixed, labelled test set
Explanation
A stable set allows fair comparison between prompt or model versions.
Step-by-step solution
- Collect representative questions.
- Label the correct answers or relevant documents.
- Keep the set fixed and reuse it for every version.
Why the other options are wrong
- A. Training data must be kept separate from the test set.
- C. Unrelated to prices.
- D. Changing prompts daily makes comparison impossible.
Tip: Golden set = fixed, labelled, reused.
Question 4Easy
Exact-match scoring is most appropriate for:
- Open-ended essays
- Summaries
- Creative stories
- Short factual answers
Answer: D. Short factual answers
Explanation
Free-form text needs semantic or rubric-based scoring.
Step-by-step solution
- Exact match checks whether the output equals the expected text.
- That only works when there is one short correct form, like a number, date or name.
- So it suits short factual answers.
Why the other options are wrong
- A. Essays have endless valid wordings.
- B. Summaries vary in wording even when correct.
- C. Creative stories have no single right text.
Tip: Short fact: exact match. Free text: rubric.
Question 5Medium
Latency and cost per query are important evaluation dimensions because:
- They are the same for every model
- Users never notice latency
- They decide practicality
- They affect model accuracy directly
Answer: C. They decide practicality
Explanation
Production readiness depends on quality, speed and cost together.
Step-by-step solution
- An accurate system may still be too slow or expensive.
- Users abandon slow answers; high cost limits scale.
- So latency and cost decide whether it is practical.
Why the other options are wrong
- A. Latency and cost vary widely across models.
- B. Users notice delays quickly.
- D. They affect usability and budget, not accuracy directly.
Tip: Evaluate quality, latency and cost together.
Question 6Medium
Which is a reasonable way to evaluate retrieval separately from generation?
- Measure GPU temperature
- Measure recall@k on labels
- Count words in answers
- Ask the model to grade itself without references
Answer: B. Measure recall@k on labels
Explanation
Ground-truth relevance labels let you score the retriever on its own.
Step-by-step solution
- Label which chunks are relevant for each test query.
- Run only the retriever.
- Measure recall@k: how many relevant chunks appear in the top k.
Why the other options are wrong
- A. GPU temperature is a hardware metric.
- C. Word count measures the answer, not retrieval.
- D. Self-grading without references is unreliable and tests generation.
Tip: Test the retriever with labels, separately from the generator.
Question 7Medium
For 4 queries, retrieval found a relevant chunk in the top 5 for 3 of them. What is recall@5 (hit rate)?
- 0.6
- 0.75
- 3
- 0.25
Answer: B. 0.75
Step-by-step solution
- Hit rate = queries with a relevant result in the top 5 / total queries.
- 3 / 4 = 0.75.
Why the other options are wrong
- A. 0.6 would be 3/5, the wrong denominator.
- C. 3 is a count, not a rate.
- D. 0.25 is the share of misses.
Tip: Hit rate = hits / queries.
Question 8Medium
In RAG evaluation, "answer relevance" measures:
- Whether chunks are short
- How many tokens were used
- How fast the answer arrived
- Whether it answers the question
Answer: D. Whether it answers the question
Explanation
It differs from faithfulness, which checks support by the retrieved context.
Step-by-step solution
- Answer relevance looks at the question and the answer.
- It asks: does this answer address what was asked?
- It is separate from faithfulness, which checks support by the context.
Why the other options are wrong
- A. Chunk length is not an answer-quality measure.
- B. Token count is a cost measure.
- C. Speed is latency.
Tip: Relevance: on topic? Faithfulness: backed by sources?
Question 9Hard
An eval set was built from questions the team wrote while designing the prompt. What risk does this create?
- Tokens become more expensive
- The model will refuse all questions
- Embeddings change
- Overfitting to known cases
Answer: D. Overfitting to known cases
Explanation
Include real user queries and held-out cases to measure generalisation.
Step-by-step solution
- The team tuned the prompt while looking at these same questions.
- The prompt may work well on them but not on new questions.
- Scores overestimate real performance: overfitting.
Why the other options are wrong
- A. Token prices are unrelated to how the set was built.
- B. There is no reason it would refuse all questions.
- C. Embeddings do not change because of the eval set.
Tip: Keep some test questions hidden from prompt tuning.
Question 10Hard
First relevant results for three queries appear at ranks 2, 1 and 3. What is the MRR, to three decimals?
- 0.611
- 0.500
- 0.667
- 2.000
Answer: A. 0.611
Explanation
(1/2 + 1 + 1/3) / 3 = 1.833 / 3 = 0.611.
Step-by-step solution
- Reciprocal ranks:
1/2 = 0.5,
1/1 = 1,
1/3 = 0.333.
- Sum = 1.833.
- Mean = 1.833 / 3
= 0.611.
Why the other options are wrong
- B. 0.500 is just the first query's reciprocal rank.
- C. 0.667 is 2/3, not the mean of reciprocals.
- D. 2.000 is the mean rank, not the mean reciprocal rank.
Tip: MRR = average of 1/rank of the first hit.
Practise all 24 questions free
The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.
Open this topic in the app →