Skip to main content
Logo image

PreTeXt Sample Book Abstract Algebra (SAMPLE ONLY)

Exercises 3.14 Select Exercises

View Source for exercises
  <exercises xml:id="select-exercises">
    <title>Select Exercises</title>
    <introduction>
      <p>
        These <term>select</term> questions specify a list of extant questions,
        and the reader,
        or Runestone, selects questions from the list to be graded
        (in different ways).
        They are only really functional with a database of students in a course,
        i.e.<nbsp/>when hosted on Runestone.
      </p>
    </introduction>
<!-- Select one at random -->
    <exercise label="question-select">
      <title>Three-way Select Question</title>
      <select grade="random" questions="true-false-one multiple-choice-one matching-one"/>
    </exercise>
<!-- Select according to a student's group (A or B) -->
    <exercise label="ab-experiment">
      <title>A/B Experiment Select Question</title>
      <select grade="ab-experiment" questions="true-false-one multiple-choice-one" experiment-name="sample-book"/>
    </exercise>
<!-- Select grades first alwys, others to view -->
    <exercise label="toggle-first">
      <title>Grade First Question</title>
      <select grade="first" questions="true-false-one multiple-choice-one"/>
    </exercise>
<!-- Select grades any one reader chooses -->
    <exercise label="toggle-any">
      <title>Grade Any Question</title>
      <select grade="any" questions="true-false-one multiple-choice-one"/>
    </exercise>
  </exercises>
These select questions specify a list of extant questions, and the reader, or Runestone, selects questions from the list to be graded (in different ways). They are only really functional with a database of students in a course, i.e. when hosted on Runestone.

1. Three-way Select Question.

View Source for exercise
<exercise label="question-select">
  <title>Three-way Select Question</title>
  <select grade="random" questions="true-false-one multiple-choice-one matching-one"/>
</exercise>
Runestone-only: exercise to grade will be automatically chosen by Runestone from Exercise 3.8.1, Exercise 3.9.1, or Exercise 3.12.1.

2. A/B Experiment Select Question.

View Source for exercise
<exercise label="ab-experiment">
  <title>A/B Experiment Select Question</title>
  <select grade="ab-experiment" questions="true-false-one multiple-choice-one" experiment-name="sample-book"/>
</exercise>
Runestone-only: an A/B experiment (named sample-book) with Exercise 3.8.1 as (A) and Exercise 3.9.1 as (B).

3. Grade First Question.

View Source for exercise
<exercise label="toggle-first">
  <title>Grade First Question</title>
  <select grade="first" questions="true-false-one multiple-choice-one"/>
</exercise>
Runestone-only: a toggle question where the question graded is always the first of Exercise 3.8.1, or Exercise 3.9.1.

4. Grade Any Question.

View Source for exercise
<exercise label="toggle-any">
  <title>Grade Any Question</title>
  <select grade="any" questions="true-false-one multiple-choice-one"/>
</exercise>
Runestone-only: a toggle question where the question graded is any question chosen by the reader from Exercise 3.8.1, or Exercise 3.9.1.