Moodle  2.2.1
http://www.collinsharper.com
qformat_aiken Class Reference
Inheritance diagram for qformat_aiken:
Collaboration diagram for qformat_aiken:

Public Member Functions

 provide_import ()
 readquestions ($lines)
 readquestion ($lines)

Protected Member Functions

 text_field ($text)

Detailed Description

Aiken format - a simple format for creating multiple choice questions (with only one correct choice, and no feedback).

The format looks like this:

Question text A) Choice #1 B) Choice #2 C) Choice #3 D) Choice #4 ANSWER: B

That is, + question text all one one line. + then a number of choices, one to a line. Each line must comprise a letter, then ')' or '.', then a space, then the choice text. + Then a line of the form 'ANSWER: X' to indicate the correct answer.

Be sure to word "All of the above" type choices like "All of these" in case choices are being shuffled.

Definition at line 55 of file format.php.


Member Function Documentation

Reimplemented from qformat_default.

Definition at line 57 of file format.php.

readquestion ( lines)

Reimplemented from qformat_default.

Definition at line 124 of file format.php.

readquestions ( lines)

Reimplemented from qformat_default.

Definition at line 61 of file format.php.

Here is the call graph for this function:

text_field ( text) [protected]

Definition at line 116 of file format.php.

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations