// Text can be any number of lines.
// Last line of an item starts with a : and may specify a figure file.
// Elaborations are enclosed in braces.
// New Interface for output problems
Specify the output produced by this code.
:
{
Study the code in the left panel.
: readCode.GIF
If the code does not produce any output, click on the No Output button.
: noOutput.GIF
Otherwise, identify all the outputs produced by the code.
:
{
Enter the output, one at a time.
:
{
Enter the output text in the box.
: box.GIF
Select the line number of the code that generated the output.
If the code has only one output statement, you need not select its line number.
: line.GIF
Your answer may be color-coded.
If an output has green background, it is correct.
If it has red background, it is incorrect.
: errorFlag.GIF
}
Repeat the above procedure for all the outputs produced by the code.
:
If there is a limit on how many times you can revise your answers, it is listed at the top of the answer panel.
Once the limit is reached, you can add new answers, but cannot revise previous answers.
: revisions.gif
Be sure to identify the outputs in the order in which the code is executed.
: correctOrder.GIF
Note that you can modify an output you entered earlier.
:
{
To modify the output text, delete and re-type in the box.
: boxMod.GIF
To change the line number, re-select from the drop-down box.
: lineMod.GIF
To delete an entire output, click on the Delete button.
: delete.GIF
}
}
After identifying all the outputs, click on the Submit button.
: submit.GIF
{
When submitting your answer, leave the last output blank.
: last.GIF
If an output is incomplete, you will be asked to complete or delete it before submitting.
For example, 2nd output below is incomplete since it has no output text.
Before submitting the answer, you must either enter the output text for 2nd output or delete it.
: complete.GIF
}
}