Numeric questions (Feature #44)


Added by Hiroto Kagotani over 12 years ago. Updated over 12 years ago.


Status:Closed Start date:04/05/2012
Priority:Normal Due date:
Assignee:- % Done:

100%

Category:-
Target version:1.1.0

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

n.tex - Sample LaTeX source file with use of AMCnumericChoice (1.2 kB) Alexis Bienvenüe, 04/15/2012 04:41 pm

n.pdf - PDF subject (111.1 kB) Alexis Bienvenüe, 04/15/2012 04:41 pm


History

Updated by Alexis Bienvenüe over 12 years ago

  • Target version set to 1.1.0

Updated by Alexis Bienvenüe over 12 years ago

See resvision r1003 for a first implementation of LaTeX command \AMCnumericChoices. See package documentation (automultiplechoice.pdf) for some details.

  • Status changed from New to In Progress
  • File n.tex added
  • File n.pdf added

Updated by Alexis Bienvenüe over 12 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 12 years ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF