Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Question API

From MoodleDocs
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The Question API, which can be divided into the Question bank API and the Question engine API, can be used by activities that want to use questions from the question bank in activities.

At the moment, the Quiz module is the only example of a standard module that does this. (People have been saying since Moodle 1.6 that the lesson module should be converted to use the question bank!) Also, the documentation is currently in a bit of a mess, but see:

Question bank

Question engine

See also