Numeric questions (Feature #44)
Description
It will be very useful for arithmetic/mathematical questions if numeric answers can be coded as AMCcode does.
Question 1 How much is the square root of 3? Answer in the form of [s][A].[B][C][D]. s: [x]+ [ ]- A: [ ]0 [x]1 [ ]2 [ ]3 [ ]4 ..... [ ]9 B: [ ]0 [ ]1 [ ]2 [ ]3 [ ]4 ..... [ ]9 C: [ ]0 [ ]1 [ ]2 [x]3 [ ]4 ..... [ ]9 D: [ ]0 [ ]1 [x]2 [ ]3 [ ]4 ..... [ ]9
Question 2 Say decimal integer 123 in 8-bit binary. bit7 bit0 [x]0 [ ]0 [ ]0 ........... [ ]0 [ ]1 [x]1 [x]1 ........... [x]1
History
Updated by Alexis Bienvenüe over 13 years ago
- Target version set to 1.1.0
Updated by Alexis Bienvenüe over 13 years ago
See resvision r1003 for a first implementation of LaTeX command \AMCnumericChoices. See package documentation (automultiplechoice.pdf) for some details.
Updated by Alexis Bienvenüe over 13 years ago
From revision r1022, binary coding is also available, as in
\begin{questionmultx}{binary}
\FPeval\VQa{trunc(100+random*20,0)}
Write the decimal integer \VQa{} in binary notation.
\AMCnumericChoices{\VQa}{sign=false,vertical=true,base=2,digits=8}
\end{questionmultx}
Please test.
- Status changed from In Progress to Feedback
Updated by Alexis Bienvenüe over 13 years ago
- Status changed from Feedback to Closed