To take the quizzes, you must log in.

*Username:***student***Password:***Formulas.1**You can view this site in

the language of your choice.

- Quiz subscores
### Quiz subscores

# Multiple quizzes

If you want subscores for an exercice or an examination, it may be simpler to use multiple quizzes. For example, if a maths exam has three topics,

- Topic 1 Logic
- Topic 2 Arithmetic
- Topic 3 Geometry

then make three distinct quizzes and present them as follows:

### Maths exam

Today's maths exam covers the following three topics:

Logic

Arithmetic

Geometry

# The Quiz Subscores method

When the teacher does not want to have multiple quizzes, the Quiz Subscores method provides a workaround. The method is presented in MoodleDocs ↗. Detailed examples are also given below.

## Hide calculation marks

Calculation marks do not have much meaning to the student and therefore it's better to hide them. In the quiz settings, unselect "Marks" at all times under "Review options". This will prevent the marks from being displayed during the attempt as well as in the gradebook.

## Display questions mark

The mark for each question can be displayed by adding the following code at the beginning of the HTML of each Question text, where "***" must be replaced by the mark, e.g. "1.0" or "2.0", etc.:

- <span style="position: relative;"> <div style="height:40px;width:92px;background-color:#fff;position:absolute;left:-135px;top:80px;padding:3px;"> <p style="font-size:12px;margin-top:-7px;">Marked out of</p> <p style="font-size:12px;margin-top:-7px;">***</p> </div> </span>
## Examples

The following three examples are presented in order of complexity.

- Example 1 below includes four topics, each with three questions worth 1 point.
- Example 2 includes three topics with different numbers of questions. All the questions of a given topic have the same value.
- Example 3 includes three topics with different numbers of questions. The questions of a given topic have different values.

### Example 1

Consider a quiz called "QUIZ 1" consisting of 12 questions covering four topics. The number of questions per topic and their value are as follows:

Topic Number

of questionsPoints

per questionTotal number

of pointsMaximum mark

per questionGrade item

maximum gradeGrade item weight

(adjusted

to total 100)Calculation 1 3 1 3 1 3 3

(25)=mod(floor([[QUIZ1]]/1),4) 2 3 1 3 4 3 3

(25)=mod(floor([[QUIZ1]]/4),4) 3 3 1 3 16 3 3

(25)=mod(floor([[QUIZ1]]/16),4) 4 3 1 3 64 3 3

(25)=mod(floor([[QUIZ1]]/64),4) Base for calculation: 4

Maximum grade for the quiz: 255You must set the base for the calculations according to the largest total number of points per topic, that is, base equals 3 + 1 = 4.

On the "Editing quiz" page, set the "Maximum mark" to:

- 1 = 4⁰ x 1 point/question for questions in topic 1
- 4 = 4¹ x 1 point/question for questions in topic 2
- 16 = 4² x 1 point/question for questions in topic 3
- 64 = 4³ x 1 point/question for questions in topic 4

Also, set the "Maximum grade" for the quiz to 3x1 + 3x4 + 3x16 + 3x64 = 255 (computed by Moodle).

In the Gradebook, add a category called "EXAMPLE 1", with "Aggregation set to natural". In this category, add "QUIZ 1" as well as grade items Topic 1, Topic 2, Topic 3 and Topic 4.

In the settings of QUIZ 1, unselect "Marks" at all times under "Review options". This will prevent QUIZ 1 from being displayed to students in the Gradebook.

In the settings of these grade items, set the maximum grade and the weight to the total number of points for the topic. Note that in the Gradebook setup page, Moodle will automatically adjust these weights to total 100.

Set the calculations as shown in the above Table.

### Example 2

Consider a quiz called "QUIZ 2" consisting of 12 questions covering three topics. The number of questions per topic and their value are as follows:

Topic Number

of questionsPoints

per questionTotal number

of pointsMaximum mark

per questionGrade item

maximum gradeGrade item weight

(adjusted

to total 100)Calculation 1 3 2 6 32 6 6

(24)=mod(floor([[QUIZ2]]/16),16) 2 5 3 15 3 15 15

(60)=mod(floor([[QUIZ2]]/1),16) 3 4 1 4 256 4 4

(16)=mod(floor([[QUIZ2]]/256),16) Base for calculation: 16

Maximum grade for the quiz: 1135Set the base for the calculations according to the largest total number of points per topic, that is, base equals 15 + 1 = 16.

It is possible to minimize the value of the "Maximum grade" for the quiz by assigning the lowest "Maximum mark" to the topics with the most total number of points. Hence, on the "Editing quiz" page, set the "Maximum mark" to:

- 32 = 16¹x 2 points/question for questions in topic 1
- 3 = 16⁰ x 3 points/question for questions in topic 2
- 256 = 16² x 1 point/question for questions in topic 3

Also, set the "Maximum grade" for the quiz to 3x32 + 5x3 + 4x256 = 1135 (computed by Moodle).

In the Gradebook, add a category called "EXAMPLE 2", with "Aggregation" set to natural. In this category, place "QUIZ 2" as well as grade items Topic 1, Topic 2 and Topic 3.

In the settings of QUIZ 2, unselect "Marks" at all times under "Review options". This will prevent QUIZ 2 from being displayed to students in the Gradebook.

Set the maximum grade and the weight of these grade items equal to the total number of points for the topic. Note that in the Gradebook setup page, Moodle will automatically adjust these weights to total 100.

Set the calculation of the grade items as shown in the above Table.

### Example 3

Consider a quiz called "QUIZ 3" consisting of 9 questions covering three topics. The number of questions per topic and their value are as follows:

Topic Number

of questionsQuestion

numberPoints

per question1 3 1 2 2 3 3 2 Total --> 7 2 4 4 1 5 1 6 2 7 3 Total --> 7 3 2 8 2 9 3 Total --> 5 Grand Total --> 19 Topic 1 consists of three questions totaling 7 points, topic 2 four questions which also total 7 points and topic 3 two questions totaling 5 points. The grand total for the quiz is 19 points. The score for each question can only be zero or a positive integer. For example, the score of question 1 can only be 0, 1 or 2, the score for question 2 can only be 0, 1, 2 or 3, and so on. We want to know how many points students get in each topic.

## The quiz should look like this

## The gradebook should look like this

Proceed as follows. In each topic, group the questions with the same value. For example, place questions 1 and 3 in group 1 and questions 4 and 5 in group 3, as shown in the Table below.

Set the base for the calculations according to the largest total number of points per group, that is, base equals 4 + 1 = 5.

Topic Number

of questionsGroup number Question number(s) Points

per questionTotal number

of pointsMaximum mark

per questionGrade item

maximum gradeGrade item weight

(adjusted

to total 100)Calculation 1 2 1 1, 3 2 4 2 4 4 =mod(floor(([[QUIZ3]]+0.1)/(5^0)),5), ID:[[Q3_1]], hidden 1 2 2 3 3 15 3 3 =mod(floor(([[QUIZ3]]+0.1)/(5^1)),5), ID:[[Q3_2]], hidden Total --> 7 7

(36.8)=[[Q3_1]]+[[Q3_2]] 2 2 3 4, 5 1 2 625 2 2 =mod(floor(([[QUIZ3]]+0.1)/(5^4)),5), ID:[[Q3_3]], hidden 1 4 6 2 2 6250 2 2 =mod(floor(([[QUIZ3]]+0.1)/(5^5)),5), ID:[[Q3_4]], hidden 1 5 7 3 3 75 3 3 =mod(floor(([[QUIZ3]]+0.1)/(5^2)),5), ID:[[Q3_5]], hidden Total --> 7 7

(36.8)=[[Q3_3]]+[[Q3_4]]+[[Q3_5]] 3 2 6 8 2 2 31250 2 2 =mod(floor(([[QUIZ3]]+0.1)/(5^6)),5), ID:[[Q3_6]], hidden 1 7 9 3 3 375 3 3 =mod(floor(([[QUIZ3]]+0.1)/(5^3)),5), ID:[[Q3_7]], hidden Total --> 5 5

(26.3)=[[Q3_6]]+[[Q3_7]] Base for calculation: 5

Maximum grade for the quiz: 39219Minimize the value of the "Maximum grade" for the quiz by assigning the lowest "Maximum mark" to the groups with the most total number of points. Hence, on the "Editing quiz" page, set the "Maximum mark" to:

- 2 = 5⁰x 2 points/question for questions in group 1
- 15 = 5¹ x 3 points/question for questions in group 2
- 625 = 5⁴ x 1 point/question for questions in group 3
- 6250 = 5⁵ x 2 points/question for questions in group 4
- 75 = 5² x 3 points/question for questions in group 5
- 31250 = 5⁶ x 2 point/question for questions in group 6
- 375 = 5³ x 3 point/question for questions in group 7

Also, set the "Maximum grade" for the quiz to 2x2 + 1x15 + 2x625 + 1x6250 + 1x75 + 1x31250 + 1x375 = 39219 (also computed by Moodle).

## Editing quiz

In the Gradebook, add a category called "EXAMPLE 3", with "Aggregation" set to natural. In this category, place QUIZ 3 as well as grade items Q3_1, Q3_2, Q3_3, Q3_4, Q3_5, Q3_6, Q3_7 (hidden) and Topic 1, Topic 2, Topic 3.

## Gradebook setup

In the settings of QUIZ 3, unselect "Marks" at all times under "Review options". This will prevent QUIZ 3 from being displayed to students in the Gradebook.

Set the maximum grade, the weight and the calculation of the grade items as shown in the above Table. Note that Moodle will automatically adjust the weights to total 100.

In the calculations, a value of 0.1 is added in order to avoid errors due to the limited accuracy of the computer.

### Example

This quiz consists of 20 multiple choice questions. All questions carry the same weight. For each question, the weighting of the choices is as follows:

Choice

numberGrade (Value) Description 1 0 % 0/6 Totally disagree 2 16.7 % 1/6 Almost disagree 3 33.3 % 2/6 Probably disagree 4 50 % 3/6 Do not agree or disagree 5 66.7 % 4/6 Probably agree 6 83.3 % 5/6 Almost agree 7 100 % 6/6 Totally agree Of the twenty questions, we want to distinguish the answers to the ten even questions, which indicate the qualities of "Leader", from those of the ten odd questions, which indicate the qualities of "Administrator".

For verification purposes, the Table below shows 12 differant student answer sets and the corresponding scores for Leader and for Administrator:

#### On the "Edit quiz" page

- For the odd questions (Leader), set the "Maximum mark" say to 6. Since there are 10 questions for Leader, the maximum total number of points for Leader is 6 × 10 = 60.
- In order to distinguish the answers for Administrator from those for Leader, you must have a minimum grade larger than 60, say 61, for Administrator. So set the "Maximum mark" to 61 × 6 = 366 for even questions (Administrator).
- In the top right, Moodle calculates the "Total of marks" as 3720 (= 6 × 10 + 366 × 10). Put this number as the "Maximum grade".

#### On the "Edit settings" page

- Under "Common module settings", give the quiz an "ID number", for example "Quiz_1".

#### On the "Grade" / "Set up" page

- "Add grade item" (at the bottom of the page), one for Leader and one for Administrator.
- For the Leader grade item, "Edit calculation" as follows:

=(([[Quiz_1]]/61)-floor([[Quiz_1]]/61))*61/60*100

This will give the score for Leader. - For the Administrator grade item, "Edit calculation" as follows:=(floor([[QUIZ5]]/61))*61/3660*100

This will give the score for Administrator.

Moodle forum discussion: 2019-12-20.

## Note on the grades for choices in multiple choice questions

Positive values of grades for choices are shown in the Figure below: (There are also negative values which are not shown here.)