Essay answer template
Download file: EssayAnswer.pg
DOCUMENT();
loadMacros(
'PGstandard.pl', 'PGML.pl',
'parserPopUp.pl', 'PGessaymacros.pl',
'PGcourse.pl'
);
Preamble
This uses PGessaymacros.pl for essay answers and parserPopUp.pl for multiple choice drop down menus.
$popup = PopUp(
[ 'Choose', 'True', 'False' ], # choices
'False' # correct answer
);
$a = random(2, 5);
$f1 = Compute("ln(x(x - $a))");
$f2 = Compute("ln(x) + ln(x - $a)");
Setup
This perl code sets up the problem.BEGIN_PGML
Determine if the following statement is true or false, and then explain your
answer. Your explanation will be graded manually at a later time.
[_]{$popup}: For all real numbers [`x`], [`[$f1] = [$f2]`].
Please explain your reasoning in the answer box below.
[@ ANS(essay_cmp()); essay_box(8, 60) @]*
END_PGML
ENDDOCUMENT();
Statement
Clearly communicate to the student the expectations of the problem
and how it will be graded. The essay_box(w, h) method takes
inputs for the initial width and height of the text area answer
rule.
Note that essay_cmp is a method that is not associated
with any object (i.e., it is not
$essay->cmp).
An essay answer must be graded manually by the instructor. Hand grading is done either