Difference between revisions of "Scaffolding2"
Jump to navigation
Jump to search
Paultpearson (talk | contribs) (New scaffold example using PGML.) |
Paultpearson (talk | contribs) m |
||
Line 106: | Line 106: | ||
</tr> |
</tr> |
||
− | <tr> |
||
+ | <tr valign="top"> |
||
− | <td> |
||
+ | <td style="background-color:#ddffdd;border:black 1px dashed;"> |
||
<pre> |
<pre> |
||
BEGIN_PGML_SOLUTION |
BEGIN_PGML_SOLUTION |
Revision as of 23:28, 7 June 2015
Deprecated: Sequentially Revealed (Scaffolded) Problems
This PG code shows how to create multi-part questions that hide from students parts that have not yet been answered correct.
- PGML location in OPL: FortLewis/Authoring/Templates/Misc/Scaffolding2_PGML.pg
PG problem file | Explanation |
---|---|
Problem tagging: |
|
DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "scaffold.pl", "PGML.pl", "PGcourse.pl", ); TEXT(beginproblem()); |
Initialization: Use scaffold.pl. |
Context("Numeric"); |
Setup: For randomization, etc. |
Scaffold::Begin(); Section::Begin("Part 1: The first part"); BEGIN_PGML This is the text for part 1. [` 1+1 = `] [_________]{"2"} END_PGML Section::End(); Section::Begin("Part 2: The second part"); BEGIN_PGML This is text for the second part. [` 2 * 2 = `] [_________]{"4"} END_PGML Section::End(); Section::Begin("Part 3: The third part"); BEGIN_PGML This is text for the third part. [` 1 + 2 + 4 = `] [_________]{"7"} END_PGML Section::End(); Scaffold::End(); |
Main text:
Each |
BEGIN_PGML_SOLUTION Solution explanation goes here. END_PGML_SOLUTION COMMENT('MathObject version. Uses PGML.'); ENDDOCUMENT(); |
Solution: Optional solution section. |