Object Reference - revaturelabs/Examforce GitHub Wiki

  • Objects: Standard Account, Contact and User objects Tip: User object contacts several useful methods to identify current users. For example, getUserId() method within Userinfo Class.

Moving past User and Contact object onto Assigned_Exam__c and Answered_Question__c: The purpose of Assigned_Exam__c object is to represent a unique instance(copy) of the Exam__c object, differentiated using auto generated number, so that multiple Individuals are able to take the "same" exam simultaneously. With exam answers stored inside Answered_Question__c object for future reviews.

Assigned_Exam__c fields:

  • Score - Total score achieved by the user out of 100%

Answered_Question__c fields:

  • User Answer - Actual answer provided by an individual (For example, true in a True/False question or C in the multiple choice category)
  • Answered Correct - A boolean value displaying whether individual correctly answered the question

Lastly, Exam__c, Question__c and Question_Pool__c objects: Exam__c is a collection of Questions and General Information as specified by an Administrator. At the moment, Questions are generated manually and stored within Question__c object which contains majority of required fields, with the exception of Question Categories that are stored within Question_Pool__c object. Question Pools represent questions with related topics, for example all Javascript questions or all Visualforce questions would be assign to a different question pool which will be used to generate a unique Exam as specified by an Administrator.