Skip to main content
Logo image

PreTeXt Sample Book: Abstract Algebra (SAMPLE ONLY)

Section 3.16 Polling

View Source for section
<section xml:id="polling" label="polling">
  <title>Polling</title>
  <p>
    (2024-04-24) This section is experimental,
    and may not be fully functional as you view it.
    No markup in the source document is final and may change at any time.
  </p>
  <p>
    We begin with standalone queries,
    using the <tag>query</tag> element.
    Runestone calls these <term>polls</term>.
    We plan structures/blocks such as <tag>poll</tag>,
    <tag>survey</tag>, and <tag>questionnaire</tag>,
    that will be structured collections of <tag>query</tag>.
  </p>
  <query label="stoplight-query">
  <statement>
    <p>
      In my town, the stoplights have:
    </p>
  </statement>
  <choices>
  <choice>
  <p>
    Solid yellow lights.
  </p>
  </choice>
  <choice>
  <p>
    Yellow lights that are solid left-turn arrows.
  </p>
  </choice>
  <choice>
  <p>
    Yellow lights that are blinking left-turn arrows.
  </p>
  </choice>
  </choices>
  </query>
  <query label="derivative-query">
  <statement>
    <p>
      Which of the following is the derivative of <m>f(x)=x^4\sin(x)</m>?
    </p>
  </statement>
  <choices>
  <choice>
  <p>
    <m>x^5 - \cos(x)</m>
  </p>
  </choice>
  <choice>
  <p>
    <m>x^4\cos(x) + 4x^3\sin(x)</m>
  </p>
  </choice>
  <choice>
  <p>
    <m>4x^3\cos(x)</m>
  </p>
  </choice>
  </choices>
  </query>
  <query label="discipline-query" scale="5">
  <statement>
    <p>
      I like computer science better than mathematics.
      <q>1</q>
      is
      <q>strongly disagree</q>
      and
      <q>5</q>
      is
      <q>strongly agree</q>.
    </p>
  </statement>
  </query>
  <query label="animal-query-absurd" scale="37">
  <statement>
    <p>
      How many stuffed animal toys did you own growing up? (Testing an absurdly large scale,
      especially in print.)
    </p>
  </statement>
  </query>
  <query label="image-query" scale="5">
  <statement>
    <p>
      Which of the following paintings is your favorite?
    </p>
  </statement>
  <choices>
  <choice>


  <p>
    The Calydonian Boar Hunt by Peter Paul Rubens
  </p>
  <image source="image-from-rawpixel-id-14263399-jpeg.jpg" width="50%" />
  </choice>
  <choice>


  <p>
    Lucas Cranach's The fountain of youth (1546)
  </p>
  <image source="image-from-rawpixel-id-3984423-jpeg.jpg" width="50%" />
  </choice>
  <choice>


  <p>
    William-Adolphe Bouguereau's Temptation (1880)
  </p>
  <image source="image-from-rawpixel-id-8704110-jpeg.jpg" width="50%" />
  </choice>
  </choices>
  </query>
</section>
(2024-04-24) This section is experimental, and may not be fully functional as you view it. No markup in the source document is final and may change at any time.
We begin with standalone queries, using the <query> element. Runestone calls these polls. We plan structures/blocks such as <poll>, <survey>, and <questionnaire>, that will be structured collections of <query>.
    In my town, the stoplights have:
  • 1.
    Solid yellow lights.
  • 2.
    Yellow lights that are solid left-turn arrows.
  • 3.
    Yellow lights that are blinking left-turn arrows.
    Which of the following is the derivative of \(f(x)=x^4\sin(x)\text{?}\)
  • 1.
    \(x^5 - \cos(x)\)
  • 2.
    \(x^4\cos(x) + 4x^3\sin(x)\)
  • 3.
    \(4x^3\cos(x)\)
    I like computer science better than mathematics. “1” is “strongly disagree” and “5” is “strongly agree”.
  • 1
  • 2
  • 3
  • 4
  • 5
    How many stuffed animal toys did you own growing up? (Testing an absurdly large scale, especially in print.)
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
    Which of the following paintings is your favorite?
  • 1.
    The Calydonian Boar Hunt by Peter Paul Rubens
  • 2.
    Lucas Cranach’s The fountain of youth (1546)
  • 3.
    William-Adolphe Bouguereau’s Temptation (1880)