Topic Variables - Glossary

There are a number of topic-specific variables which Opus keeps track of via the new Question object. These mirror those provided by the Scoring variables for Questions but are specific to the chosen topic.

 

Q_TOPIC_ANSWERED_QUESTIONS: the number of questions answered

Q_TOPIC_CORRECT: correct count for the current topic

Q_TOPIC_CURRENT_VALUE: value of user’s answers for the active topic

Q_TOPIC_CRITICAL_PASS: set to false if the user gets a critical question wrong

Q_TOPIC_CURRENT_PERCENT: current user score for this topic as a percentage

Q_TOPIC_CURRENT_POSSIBLE: maximum the user could still score for this topic

Q_TOPIC_CURRENT_VALUE: marks awarded so far for for this topic

Q_TOPIC_FINISHED: tracks whether all questions in a topic have been attempted.

Q_TOPIC_INCORRECT: incorrect count for the current topic

Q_TOPIC_NAME: holds the name of the topic as set in Publication Properties

Q_TOPIC_PASSED: can be checked to see if a topic has been passed or not.

Q_TOPIC_PASS_PERCENT: the percentage required to pass the topic, as set in Publication Properties

Q_TOPIC_PASS_VALUE: the actual marks required to pass the topic, as set in Publication Properties.

Q_TOPIC_VALUE_POSSIBLE: possible value of questions so far

Q_TOPIC_TOTAL_POSSIBLE: the total value of marks available in the topic

Q_TOPIC_VALUE_REMAINING: total value of unanswered questions left

Q_TOPIC_TOTAL_QUESTIONS: the total number of questions

Q_TOPIC_VALUE_TOTAL_REMAINING: the marks left in unanswered questions.

 

They are maintained as array variables so that different topics can be accessed.

Note:

Array numbering always starts with 0 instead of 1 which may cause confusion.

Thus the percentage scored for the first topic you set up in the Publication Properties is stored in the variable TOPIC_VALUE_PERCENT[0] and the incorrect answers relating to the second topic would be in TOTAL_INCORRECT[1].