Note: You are currently viewing documentation for Moodle 3.3. Up-to-date documentation for the latest stable version of Moodle is probably available here: True/False question type.

Development:True/False question type

From MoodleDocs
Revision as of 23:27, 5 February 2006 by Gustav Delius (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Questiontype developer docs

Database tables

An extension of the quiz_questions table the quiz_truefalse table stores the answer ids for the true and for the false answers.

id
int(10) unsigned NOT NULL auto_increment,
question
int(10) unsigned NOT NULL default '0',
trueanswer
int(10) unsigned NOT NULL default '0',
falseanswer
int(10) unsigned NOT NULL default '0',

Response storage

Question->options

State->options