I'd like to

1.)create a list of true-false statements with an essay answer blank afterwards

2.)randomize the order of those TF statements

(Unrelated to the above) I'd also like to include Latex into the statement. If you see the statements below, none of them contain Latex, b/c I wasn't sure how to do it. But suppose I wanted to say " $f(x)$ is differentiable implies that $f(x) is continuous."

The relevant code is below and I've also included it in homework3. The pop-up + essay part works, but the choosing one out of the list doesn't.

------------------------------------------------

#$f->Formula("f(x)")

# Create and use pop up lists

$popup = new_select_list();

$popup->rf_print_q(~~&pop_up_list_print_q);

# Choices presented to students

$popup->ra_pop_up_list( [

"No answer" => "?",

"True" => "True",

"False" => "False",

]);

# Questions and answers

$popup -> qa (

"Continuous functions are differentiable.",

"False",

"Differentiable functions are continuous.",

"True",

"The sum of differentiable functions is differentiable. ",

"True",

"The product of differentiable functions is differentiable. ",

"True",

"The quotient of differentiable functions is differentiable.",

"False",

" Functions which are decreasing have a negative second derivative",

"False",

"If a function f is negative, its' derivative is negative. ",

"False",

);

# Pick a question from the list. This isn't right because $popup is now fixed

# to be one specific statement from the list above. How do I choose one and #then eliminate it from the list?

$popup->choose(1);

###########################

# Main text

BEGIN_PGML

Are the following statements true or false? Explain your reasoning in

the given spaces below the statements.

[@ $popup -> print_q() @]*

[@ essay_box(5,90) @]*

[@ $popup -> print_q() @]*

[@ essay_box(5,90) @]*

END_PGML