Difference between revisions of "EssayAnswer1"
Paultpearson (talk | contribs) m |
Paultpearson (talk | contribs) m |
||
Line 3: | Line 3: | ||
[[File:EssayAnswer1.png|300px|thumb|right|Click to enlarge]] |
[[File:EssayAnswer1.png|300px|thumb|right|Click to enlarge]] |
||
<p style="background-color:#f9f9f9;border:black solid 1px;padding:3px;"> |
<p style="background-color:#f9f9f9;border:black solid 1px;padding:3px;"> |
||
− | This PG code shows how to write a question whose answer is an essay. |
+ | This PG code shows how to write a question whose answer is an essay. This feature was introduced in [http://webworkgoehle.blogspot.com/2012/09/essay-answers-in-webwork.html Fall 2012]. |
</p> |
</p> |
||
* Download file: [[File:EssayAnswer1.txt]] (change the file extension from txt to pg when you save it) |
* Download file: [[File:EssayAnswer1.txt]] (change the file extension from txt to pg when you save it) |
Revision as of 21:33, 15 June 2013
Essay answer
This PG code shows how to write a question whose answer is an essay. This feature was introduced in Fall 2012.
- Download file: File:EssayAnswer1.txt (change the file extension from txt to pg when you save it)
- File location in OPL:
FortLewis/Authoring/Templates/Misc/EssayAnswer1.pg
PG problem file | Explanation |
---|---|
Problem tagging: |
|
DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserPopUp.pl", "PGessaymacros.pl", "PGcourse.pl", ); TEXT(beginproblem()); $showPartialCorrectAnswers = 0; install_problem_grader(~~&std_problem_grader); |
Initialization:
Use the |
Context("Numeric"); $popup = PopUp( [ "Choose", "True", "False" ], # choices "False" # corect answer ); $a = random(2,5,1); $f1 = Compute("ln(x (x-$a))"); $f2 = Compute("ln(x) + ln(x-$a)"); |
Setup: Nothing out of the ordinary happens here. |
Context()->texStrings; BEGIN_TEXT Answer the following true / false question and then explain your answer. Your answers will be read and graded manually at a later time. $BR $BR \{ $popup->menu() \} For all real numbers \( x \), \( $f1 = $f2 \). $BR $BR Please explain your reasoning in the answer box below. $BR \{ essay_box() \} END_TEXT Context()->normalStrings; |
Main Text: Clearly communicate to the student the expectations
of the problem and how it will be graded. The |
ANS( $popup->cmp() ); ANS( essay_cmp() ); |
Answer Evaluation: The essay answer is graded manually by the professor. Hand grading is done by clicking on Statistics in Instructor Tools menu, selecting the homework set, and clicking the Needs grading or Regrade links under. For more details, please see the initial blog announcement about essay answers.
Note that |
Context()->texStrings; BEGIN_SOLUTION ${PAR}SOLUTION:${PAR} Solution explanation goes here. END_SOLUTION Context()->normalStrings; COMMENT('MathObject version.'); ENDDOCUMENT(); |
Solution: |