# Numeric questions (Feature #44)

Status: Start date: Closed 04/05/2012 Normal - 100% - 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


### History

#### #1 Updated by Alexis Bienvenüeabout 10 years ago

• Target version set to 1.1.0

#### #2 Updated by Alexis Bienvenüeabout 10 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

#### #3 Updated by Alexis Bienvenüeabout 10 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}