liveBook · Manning

Question selector

As explained in Coding with AI

A question selector is a component or procedure that chooses questions from an available question pool for an assessment.

A question selector chooses a test’s questions from an available pool. In a practice-test application, it separates the choice of questions from storing questions, presenting them, and grading completed tests. section 3.6 section 3.7.1

For a HAM radio license practice test, the selector’s job is to randomly choose questions from a predetermined pool to form a 35-question test. The pool holds question text, multiple-choice options, and correct answers; the interface presents the chosen set, while grading calculates the final score. section 3.6

Treat the selector as one part of a small assessment system:

  • Question Pool Database stores potential questions and their answers. section 3.6
  • Question Selector randomly selects questions from that pool. section 3.6
  • User Interface lets a learner take the test and see results. section 3.6
  • Grading Component scores the completed test. section 3.6

Practice-test assembly

Start with a predetermined HAM radio question pool. Select 35 questions at random, show each question’s possible answers, then provide a score percentage after the test. This division clarifies where selection ends and presentation or grading begins. section 3.6

The component label is useful for design discussion, but it is not yet a selection algorithm. Decide the implementation details deliberately when engineers need more than a high-level system overview. section 3.7.1

How Coding with AI covers it

How deep it goes
Defines the selector’s random-selection role but stops before specifying a selection algorithm or implementation.
Examples
Uses a HAM radio license practice test that generates randomized 35-question assessments and score percentages.
What it assumes
Introduces the selector through a high-level component breakdown rather than requiring implementation details.
What you can do after
Evaluate/understand how to assign question selection a distinct responsibility within an assessment system.
How it connects
Connects Question Pool Database, User Interface, Grading Component, and randomized testing.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Coding with AI. The section links point to the parts of the book it draws on.