Forum archive 2000-2006

Michael Gage - PG language constants

Michael Gage - PG language constants

by Arnold Pizer -
Number of replies: 0
inactiveTopicPG language constants topic started 4/27/2000; 6:40:53 PM
last post 4/27/2000; 6:40:53 PM
userMichael Gage - PG language constants  blueArrow
4/27/2000; 6:40:53 PM (reads: 2765, responses: 0)

 

Reserved words in Problem Generating language

 

List of constants available for use in writing problems.

These constants are all defined in the subroutine &defineProblemVars(...)
$pinNumber
Also known as $psvn or problem set version number. This is the unique identifier for individualized version of the problem set given to an individual student.
$studentName
A string containing the full name: first, middle and last name
$studentLogin;
A string containing the student's unique login name.
$sectionName;
A string containing the name (or number) of the section of the class the student is enrolled in.
$setNumber
A string giving the "number" of the problem set. You can also use identifers such as E1 for an exam. The identifiers are usually printed by prefixing Set to the $setNumber (e.g. SetE1).
$probNum
The number of the problem within the problem set. This must be a number and is determined by the order in which it appears in the set.
$problemValue
The value given to a correct answer of the problem.
$openDate
The date (in seconds after 1980) after which students can begin to work on the problem set. Before this date the problem set can be reviewed only by instructors.
$formattedOpenDate
The date (in standard format) after which students can begin to work on the problem set. Before this date the problem set can be reviewed only by instructors.
$dueDate
The date (in seconds after 1980) by which the student's work must be completed. At the due date and time due date the problem set is closed and no further answers can be entered and recorded.
$formattedDueDate
The date (in standard format) by which the student's work must be completed. At the due date and time due date the problem set is closed and no further answers can be entered and recorded.
$answerDate
Date after (in seconds after 1980) which students can view the correct answers to the questions in the problem set.
$formattedAnswerDate
Date after (in standard format) which students can view the correct answers to the questions in the problem set.
$currentDirectory
This is set to the enclosing directory of the problem template (the .pg file).
$templateDirectory
This directory contains all of the problem templates and as well as the header files for printing TeX output.
$macroDirectory
This directory contains the macro packages defining additional functions. It should not be needed -- ue the loadMacros() subroutine to load macro packages in this directory.
@submittedAnswers
An array containing the answers submitted by the students.
$languageMode
Defines the mode in which the template is being rendered. It is one of 'TeX', 'Latex2HMTL', or 'HTML' depending on whether it is being rendered by TeX and printed in postscript or .pdf format; rendered by TeX and converted to HTML for display on the screen; or being rendered directly into HTML.
$courseName
The courseName (or courseID or course identifier). This identifies the course either in the CGI script or on the command line.
$sessionKey
The session key used by CGI scripts to recognize a recently logged in user. This will not be defined if the evaluation subroutines have not been called by a CGI script defining the variable $in{'key'}.

List of functions available for use in writing problems.

 

List of perl functions which cannot be used in writing problems.

 

<| Post or View Comments |>