Description
Inline questions are a more flexible and extensible form of free response question that can include multiple response objects. In this way, they are similar to Multipart questions in that they provide a shell structure in which to embed other questions. Questions can contain multiple response cells, much like Blanks questions.
Inline questions
support the widest variety of types of EDU response objects
(linked to specific question grader types) anwhere within the
body of a question, including within HTML tables. Use the
\blank
macro, with no arguments, to place a
response cell within \qutext
. The type of blank, correct answer,
and other details are specified within sequential blank environments
outside of \qutext
. In this way, Inline questions are written much like
Multipart
questions, where each blank functions as one part.
Notes
- As in a Multipart question, each subpart of an
Inline question
must itself be a well formed EDU question. The only
exception is that, when used to define a blank inside an
Inline question,
any of the above question types may omit the
\qutext
statement (because this is actually defined in the body of the larger question statement). - The Inline question type is a "shell" that is internally consistent with other EDU questions: Numeric blanks inside Inline questions, for example, will grade the same as single-part Numeric questions because the grading is actually done by the Numeric question itself. Likewise, each embedded question type inside an Inline question will support all the features offered with that individual question type (e.g., margin of error, significant figures, tolerance, etc.).
- As in Multipart questions, by default, each
blank receives equal weighting when the question is graded.
To specify a non-uniform weighting, use the
\weighting
macro. The\weighting
macro requires one argument, a comma-delimited list of nonnegative integers, specifying the relative values to be assigned to each part.
Example
\begin{question}{Inline} \qutext{$2+2=$\blank\\ $3+8=$\blank\\ \\ If a cat walks 20~ft in 2~min, how fast is the cat walking? \blank\\ Who was president during the Civil War? \blank\\ Which is my first dog? \blank} \begin{blank}{Formula} \answer{4} \tol{1.0E-9} \end{blank} \begin{blank}{Formula} \answer{11} \tol{1.0E-9} \end{blank} \begin{blank}{Numeric} \answer[ft/min]{10} \end{blank} \begin{blank}{List} \answer{1.0}{Lincoln} \answer{1.0}{Abraham Lincoln} \answer{0.25}{Jefferson Davis} \grader{exact} % not necessary, since 'exact' is the default \end{blank} \begin{blank}{List} \display{menu} \answer{1.0}{Ishie} \answer{0.5}{Raphi} \answer{0.0}{Trudeau} \answer{0.0}{Pongi} \end{blank} \end{question}