21.1 Case Study: MCQ

We are going to use R code to generate HTML or LaTeX to produce multiple-choice questions such as

21.1.1 Pop Quiz!

  1. What is the derivative of f(x)=1+2cos(3πx+4)?

    1. f(x)=6πsin(3πx+4)
    2. f(x)=6πsin(3πx+4)
    3. f(x)=24πsin(3πx+4)
    4. f(x)=24πsin(3πx+4)
A whisker plot
A whisker plot

As developers, we may be asking ourselves:

  • What are the expressions?
  • What are the symbols?
  • Will we have to quote inputs from the user (math teacher)?