If there is an entirely different way to to do same, I would surely like to know.

Thanks for any help.

DOCUMENT();

loadMacros(

"PGstandard.pl",

"PGchoicemacros.pl",

"PGcourse.pl",

);

TEXT(beginproblem());

$mc = new_checkbox_multiple_choice();

$mc -> qa (

"Select the tables that define a function.",

"\( \begin{array}{c|cccccc}

x& 0 & 3 & 6 & 9 & 12 & 15\\

\hline

y& 1&1& 2 & 1&1&1

\end{array}

\)$BR $BR",

"\( \begin{array}{c|ccccc}

s&-3& -1 & 1 & 3 & 5\\

\hline

t & 1 & 3 & 5 & 3 & 1

\end{array} \)$BR $BR",

"\( \begin{array}{c|ccccc}

u&0& 2 & 4 & 6 & 8\\

\hline

v & 1 & 1 & 1 & 1 & 1

\end{array} \)$BR $BR",

"\( \begin{array}{c|ccccc}

u&0& 2 & 0 & 2 & 0\\

\hline

v & 1 & 3 & 1 & 3 & 1

\end{array} \)$BR $BR"

);

$mc -> extra(

"\( \begin{array}{c|cccccc}

s&0&1&2&1&0\\

\hline

t&4&3&2&1&0

\end{array} \)$BR $BR",

"\( \begin{array}{c|cccccc}

x &1&4&7&4&1&0\\

\hline

y&1&0&3&1&2&1

\end{array} \)$BR $BR",

);

BEGIN_TEXT

\{ $mc -> print_q() \}

$BR

\{ $mc -> print_a() \}

END_TEXT

install_problem_grader(~~&std_problem_grader);

$showPartialCorrectAnswers = 0;

ANS( checkbox_cmp( $mc->correct_ans() ) );

ENDDOCUMENT();