#StackBounty: #tikz-pgf #arrays #exam #xspace How to embed choices in tabular in exam class?

Bounty: 50

Similar to the question: Exam class multiple choice answers in table format,
I’m trying to embed the choices into a table format and looking like a table.

documentclass[11pt]{exam}
usepackage{mathtools}
usepackage{xspace}
usepackage{array}
usepackage{tikz}
printanswers
newcommand{wideunderline}[2][2em]{%
  underline{makebox[ifdimwidth>#1widthelse#1fi][c]{#2}}%
}
begin{document}

fbox{parbox{linewidth}{
When compared to the graph of $y=f(x)$, the graph of $8y=f(-x)$ has been reflected in the wideunderline[1.5cm]{textit{i}} and vertically stretched about the x-axis by a factor of wideunderline[1.5cm]{textit{ii}}}}medskip
begin{questions}
question The statement above is completed by the information in row:medskip

begin{choices}
renewcommandarraystretch{1.5}
choice A
correctchoice B
choice C
choice D
end{choices}

question I want choice B embedded in the table. 
%begin{choices}%%%is this possible?
begin{tabular}{|c|c|c|}
hline
    textbf{Row }& textbf{textit{i}}&textbf{textit{ii}}\
    hline
    A &  $y$-axis&8\ 
    hline
        B &  $y$-axis&$frac{1}{8}$\%I would like the choice to be embeded i.e. choice B%
    hline
        C &  $x$-axis&8\
    hline
        D &  $x$-axis&$frac{1}{8}$\
    hline
end{tabular}
%end{choices}%%%%doesn't work. 
end{questions}
end{document}

Can anyone help me with this?


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.