Single choice (ETH)

Question types ::: qtype_sc
Maintained by ETHzETH Zürich
Teachers can have more than one (single) true/false question in same stem. this saves creating new questions for each stem. especially when it comes to an essay followed by many questions.

Single choice (ETH) 1.1 for Moodle 3.3+

Moodle 3.6, 3.7, 3.8, 3.9, 3.10
Released: Tuesday, March 2, 2021, 8:18 PM

Single Choice (ETH)

What it is:

The MC question type as it exists in Moodle is not very ideal, since you can configure questions which are not very well designed regarding best practices of MC questions. Therefore two question types the Mutliple True/False and the Single Choice will be developed. Creating a SC question teachers will have the possibility of choosing between three scoring methods: - SC 1/0 - Subpoints - Aprime

Aprime is a new scoring method designed to find a solution for a fairer scoring if students are risk averse.

The Scoringmethods explained:

  • Scoring method: SC1/0 A student solving a SC question clicks on the distractor icon to select distractors. In this way she or he can cross out the options, which she/he is sure are not the correct answers and doing this she/he can focus on finding the correct option between the remaining not crossed out options. This selection has to be saved for the duration of the exam and in the results.

    SC run mode with distractor cross out (scoring methods: SC1/0) This feature allows the student to cross out options he or she is sure are wrong so that he or she only has to look at the reminding options coming back again to solve the question. This allows what student can do on paper exams, when marking distractors with a pencil.

  • Scoringmethod: Aprime or Subpoints In the contrary to SC1/0 for the scoring method Aprime and Subpoints the crossing-out-distractors-function is combined with scoring. A student can cross out an option as a distractor instead of guessing which option is correct and gets subpoints for each correctly identified distractor. As soon she or he selects an option as the correct one, no subpoints are awarded for correctly identified distractors. The layout here has to show that this is used as a scoring method and not as a crossing out of distractors for annotation reasons.

Installation:

  1. Extract the contents of the downloaded zip to question/type/.
  2. Rename the extracted folder to sc.
  3. Start the Moodle upgrade procedure.

Migration Scripts:

qtype_multichoice to qtype_sc

Description:

The Script bin/mig_multichoice_to_sc.php migrates questions of the type qtype_multichoice to the questiontype qtype_sc. No questions will be overwritten or deleted, the script will solely create new questions.

Required Parameters (choose 1):
  • courseid (values: a valid course ID)
  • categoryid (values: a valid category ID)
  • all (values: 1)
Conditional Parameters (choose 0-n):
  • dryrun (values: 0,1)
  • includesubcategories (values: 0,1)

    The Dryrun Option is enabled (1) by default. With Dryrun enabled no changes will be made to the database. Use Dryrun to receive information about possible issues before migrating.

    includesubcategories wird in Kombination mit Migration by "categoryid" verwendet. Falls aktiviert (1) werden Unterkategorien mit migriert.

Examples
  • Migrate Multichoice Questions in a specific course: MOODLE_URL/question/type/sc/bin/mig_multichoice_to_sc.php?courseid=55
  • Migrate Multichoice Questions in a specific category: MOODLE_URL/question/type/sc/bin/mig_multichoice_to_sc.php?categoryid=1
  • Migrate all Multichoice Questions: MOODLE_URL/question/type/sc/bin/mig_multichoice_to_sc.php?all=1
  • Disable Dryrun: MOODLE_URL/question/type/sc/bin/mig_multichoice_to_sc.php?all=1&dryrun=0

qtype_sc to qtype_multichoice

Description:

The Script bin/mig_sc_to_multichoice.php migrates questions of the type qtype_sc to the questiontype qtype_multichoice. No questions will be overwritten or deleted, the script will solely create new questions.

Required Parameters (choose 1):
  • courseid (values: a valid course ID)
  • categoryid (values: a valid category ID)
  • all (values: 1)
Conditional Parameters (choose 0-n):
  • dryrun (values: 0,1)
  • includesubcategories (values: 0,1)

    The Dryrun Option is enabled (1) by default. With Dryrun enabled no changes will be made to the database. Use Dryrun to receive information about possible issues before migrating.

    includesubcategories is used in combination with migration by categoryid. If enabled all subcategories will be migrated as well.

Examples
  • Migrate SC Questions in a specific course: MOODLE_URL/question/type/sc/bin/mig_sc_to_multichoice.php?courseid=55
  • Migrate SC Questions in a specific category: MOODLE_URL/question/type/sc/bin/mig_sc_to_multichoice.php?categoryid=1
  • Migrate all SC Questions: MOODLE_URL/question/type/sc/bin/mig_sc_to_multichoice.php?all=1
  • Disable Dryrun: MOODLE_URL/question/type/sc/bin/mig_sc_to_multichoice.php?all=1&dryrun=0

Further information:

Behat- and Unit tests:

Behat tests are included but scenarios are designed explicitly for ETH Zürich testcases. Some of the included Test steps are designed to work with the ETH Zürich Moodle setup. However Unit tests can be used genetically in combination with any Moodle setup.

Contributors:

ETH Zürich (Lead maintainer) Thomas Korner (Service owner, thomas.korner@let.ethz.ch)

Version information

Version build number
2021022500
Version release name
1.1 for Moodle 3.3+
Maturity
Stable version
MD5 Sum
5a857d66bc3f25974747ece42f8d4c8d
Supported software
Moodle 3.6, Moodle 3.7, Moodle 3.8, Moodle 3.9, Moodle 3.10
  • Latest release for Moodle 3.6
  • Latest release for Moodle 3.7
  • Latest release for Moodle 3.8
  • Latest release for Moodle 3.9
  • Latest release for Moodle 3.10

Version control information

Version control system (VCS)
Other...
VCS repository URL

Default installation instructions for plugins of the type Question types

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "myquestiontype") in the "question/type" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation