How to create a Quiz with game like effects

How to create a Quiz with game like effects

autor Sudhir Singhal -
Počet odpovědí: 38
Can anyone guide how to create a quiz with the following features or maybe some plugin for a similar effect:

1) It is randomly generated questions of the times table. There can be two types of randomly generated questions, may busing formula question type:
a) a two-digit number multiplied by a single-digit number
b) a two-digit number multiplied by a two-digit number
c) or maybe we will give some specific questions with answer options (MCQ type).

2) In the answers I want to show 5 or 6 randomly generated options, out of which only one should be correct. The options may come in the form of clickable rectangular buttons and not in the form of a radio button format.
I know that we can check for the correct answer in the formula question type but don't know how to generate random answers options using it.

3) Once we select the answer from the given options, it should check and display the correct answer if the selected answer is wrong. Like we can do this with an immediate feedback option in the quiz, but there we need to click on one extra button 'check', here I want there is no need to click on an extra button, just select one of the given options, and will show if it is correct or not.

4) After selecting the right/ wrong answer, it should move to the next question automatically after some given seconds, the user does not have to click next to move further.

5) When the user selects any of the given multiple options, a small click sound will come as it comes in games.

A similar activity is given in H5p interactive content with the name Arithmetic quiz, but there we do not have the option to select the questions or specify any question.
I hope we can generate a similar effect using the basic quiz of Moodle as well, maybe using some scripts in it.

I would request other members to share their ideas on the above and if anyone is using some plugin to achieve a similar effect, kindly share it.

Best Regards,
Sudhir Singhal
Průměr hodnocení: -
V odpovědi na Sudhir Singhal

Re: How to create a Quiz with game like effects

autor Dominique Bauer -
Obrázek: Documentation writers Obrázek: Particularly helpful Moodlers Obrázek: Plugin developers

Here is an example of a question formatted to make it easier for young children. The question generates numbers automatically, has no "Check" button, and moves to the next question automatically. The star is animated. Sound could easily be added. The question could be modified to present the correct answer together with incorrect choices.

Multiplication tables could be made in a similar fashion. It might help if you provided a mock-up of what you want to achieve.

https://dynamiccourseware.org/course/view.php?id=122&section=5

MoodleForum_20230717_1252.png

V odpovědi na Dominique Bauer

Re: How to create a Quiz with game like effects

autor Sudhir Singhal -
Thanks Dominique !
This is almost the same thing I am looking for.
Below are some more details about the type of questions:
1) The numbers can be randomly generated using the formula question type (from 1 to 99, both inclusive) multiplied by another number (from 1 to 10, both inclusive).
2) There can be two different levels of this in terms of answer input:
a) Level one: In this, we can give some answer options, say 5 to 6 options, one is correct, and the rest are incorrect. Answers text will come in some boxes with outer frame, and when the user clicks on the option, the colour of the box changes, and a click sound comes. Sound can be different for correct and incorrect options.
If the answer is incorrect, the correct answer box will be highlighted with expanded text and box sizes and maybe with some shadow effect. See the sample image below:

b) Level Two:
Instead of showing multiple options, we take the answer in the text box, as shown in your example.

The rest of the interface will remain the same in both options, i.e., auto-moving to the next question, no check button. We may add a timer also at the top right corner.
For answers feedback, at the bottom, we can show some custom symbols like a star or some custom message (optional).

Once this interface is ready then we may use it with other questions as well from the question bank to make it like a game.


V odpovědi na Sudhir Singhal

Re: How to create a Quiz with game like effects

autor Dominique Bauer -
Obrázek: Documentation writers Obrázek: Particularly helpful Moodlers Obrázek: Plugin developers
Sudhir,

It seems a bit tricky and fun, and should be possible.
V odpovědi na Dominique Bauer

Re: How to create a Quiz with game like effects

autor Sudhir Singhal -
Any update on the above?
V odpovědi na Sudhir Singhal

Re: How to create a Quiz with game like effects

autor Dominique Bauer -
Obrázek: Documentation writers Obrázek: Particularly helpful Moodlers Obrázek: Plugin developers
It's not quite complete. Refresh the page (F5) to get new values. The sound works.

https://dynamiccourseware.org/course/view.php?id=122&section=2➚
V odpovědi na Dominique Bauer

Re: How to create a Quiz with game like effects

autor Sudhir Singhal -
Great Work!

I believe the question, fonts, border style, and everything are customizable.
What is the possibility of programming the answers of other options?
Like in the below example, 348, 564, 264 are coming, which are far away from the actual answer.


V odpovědi na Dominique Bauer

Re: How to create a Quiz with game like effects

autor Dominique Bauer -
Obrázek: Documentation writers Obrázek: Particularly helpful Moodlers Obrázek: Plugin developers

I believe the question, fonts, border style, and everything are customizable.

Yes. Simply modify the values of these properties in the HTML of the question.

What is the possibility of programming the answers of other options?
Like in the below example, 348, 564, 264 are coming, which are far away from the actual answer.

The distractors can be programmed in many ways.
In the example, 156, 366, 264, 348 and 564 are the results of random multiplicands times the multiplier 6.

  1. With 9 x 6, what would you suggest as distractors, for example 9 + 6, (9*6) + 1, (9*6) - 2, 8*6, 9*7, (9*6) ± random values, etc.?
  2. Do you want students to have multiple tries to answer a question?
  3. Do you want there to be a delay (how long) between a incorrect choice selected and the display of the correct answer.
  4. Do you want points to be counted and displayed? For example, one point more for a correct answer and one point less for an incorrect answer.
  5. Will the question be used in a quiz or embedded on a page like on dynamiccourseware.org.
  6. Do you want a score to be put in the gradebook (could be limiting)?
V odpovědi na Dominique Bauer

Re: How to create a Quiz with game like effects

autor Sudhir Singhal -
1. With 9 x 6, what would you suggest as distractors, for example 9 + 6, (9*6) + 1, (9*6) - 2, 8*6, 9*7, (9*6) ± random values, etc.?
Yes, this will be perfect. 
So, it can be: (a + b), (a±1)*b, a*(b±1), (a*b)+ single digit random number, (a*b)– single digit random number, and the correct answer a*b. 
Here I am considering both a and b are ≥1, so if the randomly selected value of a or b is 1, then we need to check that it only adds the number to it and do not subtract from it.

2. Do you want students to have multiple tries to answer a question?
Generally, I think one try is sufficient, so by default, it should be one. If possible, and can easily be done, then we can have some parameters while defining the question, to make it 2,

3. Do you want there to be a delay (how long) between a incorrect choice selected and the display of the correct answer.
I think no delay is required.

4. Do you want points to be counted and displayed? For example, one point more for a correct answer and one point less for an incorrect answer.
Yes, the score should come at some top corner. One point for the correct answer, no negative points for the incorrect answer.
We may give an option for the teacher to enable one negative point for an incorrect answer, to make it difficult at a later stage, or to increase the level. It is optional.

5. Will the question be used in a quiz or embedded on a page like on dynamiccourseware.org.
Although, if it can be displayed directly, then it will make it easy for the student to use. 
But here, the score is the motivation for them to practice it again and again so that they can compete with the other students in the group.
From my experience, I notice that if it is to show it as an example, then embed question type is the best, but for practicing it repeatedly, scoring works as a motivation.
If it can not be done in the embedded questions, then we will use it as a quiz only but with auto-switching to the next question.

6. Do you want a score to be put in the gradebook (could be limiting)?
Yes

Can we later use our question bank also, in this interface to give input for MCQ-type questions in it?

V odpovědi na Sudhir Singhal

Re: How to create a Quiz with game like effects

autor Dominique Bauer -
Obrázek: Documentation writers Obrázek: Particularly helpful Moodlers Obrázek: Plugin developers

Do you want a score to be put in the gradebook (could be limiting)?
Yes

As it stands, the question contains only one multiplication. In this case, the scoring is simple: the question counts as one point. Students get one point if they get the answer correct and no points if they get the answer wrong. To do several multiplications in the same quiz, it would be necessary to have the same question several times, but Moodle does not allow it to have the same question several times in the same quiz. This approach is therefore not possible.

If you want students to do multiple multiplications in the same quiz, the question must allow multiple multiplications. I think this is possible. I will keep you posted on this. Also, for the score to be meaningful, there should be a given number of multiplications. For example, there could be ten multiplications.

Can we later use our question bank also, in this interface to give input for MCQ-type questions in it?

The code, which is mostly formatting, could be applied to other types of questions, for example via a block so that the questions themselves don't have to be modified.

I must tell you that the scripts I write are just quick solutions developed on the client side. They are not full-fledged plugins. The benefit of rapid development probably outweighs the fact that they are not real plugins, which by the way isn't that important, in my opinion, as long as the solutions work.

V odpovědi na Dominique Bauer

Re: How to create a Quiz with game like effects

autor Sudhir Singhal -
Thanks, Dominique, for explaining the working of the script in detail.
Although I am not sure what you mean by "question must allow multiple multiplications" and how you will script it.
I am writing my thoughts here. Kindly see what is practically possible and how can give the best experience to the students:

What I understand is that it will be a quiz so that we can add the results to the Grade book.
We will enable a time limit using quiz settings.
I think using the formula questions type we can generate such random questions for multiplication.
I am not sure how to add different answer options in the Formula question type along with the correct answer.
(Kindly share the link of any such example if available on dynamiccourseware.org)
Then we can duplicate the question and add them in the quiz, say 20 such questions or as per the requirement. 
I am not sure, but I think I read in some articles that if all such questions are used in the same quiz, then the system is intelligent enough to generate all different questions and won't repeat them in the same quiz.
Now, we want to have different click sounds for correct and incorrect answers and show the correct answer in different colour or backgrounds and other question formatting as discussed earlier.
The next step will be that it will automatically move to the next question instead of clicking Next or any other button.
Once the given time is over, it will show the summary of the total correct and incorrect answers, the final score and the total time taken.

These are just my thoughts. It can have more functionality to add gamification in the quiz.

V odpovědi na Sudhir Singhal

Re: How to create a Quiz with game like effects

autor Joseph Rézeau -
Obrázek: Core developers Obrázek: Plugin developers Obrázek: Testers Obrázek: Translators

In your original post you write "A similar activity is given in H5p interactive content with the name Arithmetic quiz, but there we do not have the option to select the questions or specify any question."

Could you explain in more detail what it is that you find is missing in the H5P Arithmetic Quiz activity? It might be easier to hack the H5P activity than create a Quiz question...

V odpovědi na Joseph Rézeau

Re: How to create a Quiz with game like effects

autor Matthias Giger -
Obrázek: Particularly helpful Moodlers
Just to let you know: Stefan (@trmsc@bildung.social) from Germany is working on improving the H5P Arithmetic Quiz activity with some help by Oliver Tacke. So far he's implemented the following features:

  • Adding restraints to the different operations (min, max, ...)
  • Allowing a number of questions from each type and then combining them into one quiz.
  • Add additional calculations by hand (into a textfield).

V odpovědi na Matthias Giger

Re: How to create a Quiz with game like effects

autor Joseph Rézeau -
Obrázek: Core developers Obrázek: Plugin developers Obrázek: Testers Obrázek: Translators
@Matthias
Is there a github URL for this?
V odpovědi na Joseph Rézeau

Re: How to create a Quiz with game like effects

autor Sudhir Singhal -
Dear Joseph,

In the Arithmetic Quiz activity, we want to customize the questions by defining the digits to be used in the question, like two-digits by one-digit multiplication and the range of the numbers to be used or say, two-digits by two-digits multiplication.
In the given activity, in multiplication, it showed the question of one-digit by one-digit multiplications only and most of the time I found multiplication by 1 is coming very frequently, which is very basic.

@Matthias
I can not see any update in the activity, it is showing the same version. And no update information is given on the example page.
Although I do not think they will give this option of selecting two-digits by one digit and two-digits by two -digits multiplication in the activity. But how do you know about this update information?
V odpovědi na Sudhir Singhal

Re: How to create a Quiz with game like effects

autor Matthias Giger -
Obrázek: Particularly helpful Moodlers
The version I was talking about is an unofficial variation still under development. At the moment nobody can say whether one day it will be part of an official relase.
V odpovědi na Matthias Giger

Re: How to create a Quiz with game like effects

autor Sudhir Singhal -
It would be good to have the newly updated activities, but what Dominique is making is totally different from the above.
This solution will allow you to convert any quiz made from the question bank or using random questions with formula question type, into a game mode.
I think it would be very useful in many more cases which we are not able to think right now.
Let us wait for his solution.
V odpovědi na Sudhir Singhal

Re: How to create a Quiz with game like effects

autor Sudhir Singhal -
I believe you are still working on the above script and adding some more creativity to it.
V odpovědi na Sudhir Singhal

Re: How to create a Quiz with game like effects

autor Sudhir Singhal -
I am following the link: https://dynamiccourseware.org/course/view.php?id=122&section=2.
Kindly confirm if this is the correct link to see the updates.
V odpovědi na Sudhir Singhal

Re: How to create a Quiz with game like effects

autor Sudhir Singhal -
Dear Dominique,
Kindly confirm if you are still working on it or do you have some different ideas or suggestions for the above.
V odpovědi na Sudhir Singhal

Re: How to create a Quiz with game like effects

autor Dominique Bauer -
Obrázek: Documentation writers Obrázek: Particularly helpful Moodlers Obrázek: Plugin developers

Hello Sudhir,

I've been distracted by other projects, but I haven't forgotten about you.

I'm sorry that I can't respond faster to all projects, and the order in which I work on them doesn't always make sense. My team is very small, there is me and my two cats, one of whom is very lazy and the other still a little too young.

Seriously, your project is very interesting and I will try to finish it as soon as possible. However, due to holidays and other impediments, it may not happen until September.

V odpovědi na Dominique Bauer

Re: How to create a Quiz with game like effects

autor Sudhir Singhal -
Thanks Dominique, for confirming that you like the idea and working on it.
I understand your busy schedule and commitments.
I really appreciate the efforts you always put in to help all the people with your creative solutions.
I will wait for the updates for this masterpiece.
V odpovědi na Sudhir Singhal

Re: How to create a Quiz with game like effects

autor Sudhir Singhal -
Hello Dominique,

Hope you are well.
Kindly update the progress regarding the above and share the link to view it.
V odpovědi na Dominique Bauer

Re: How to create a Quiz with game like effects

autor Sudhir Singhal -
Dear Dominique,

I hope you still like the idea.
If possible, can you please share the script, which you showed as an example on 28th July, in the above messages?
I think some of the students can benefit even with that work also.

Waiting for your response.
V odpovědi na Dominique Bauer

Re: How to create a Quiz with game like effects

autor Sudhir Singhal -
Dear Dominique,

Are you still working on the above idea? Kindly confirm.
V odpovědi na Sudhir Singhal

Re: How to create a Quiz with game like effects

autor Sudhir Singhal -
Dear Dominique,
Any update about this project?
Will you be able to get some time for it in the coming days?
V odpovědi na Sudhir Singhal

Re: How to create a Quiz with game like effects

autor Dominique Bauer -
Obrázek: Documentation writers Obrázek: Particularly helpful Moodlers Obrázek: Plugin developers

Hello Sudhir,

I worked on your question recently. úsměv

You'll find a functional version at dynamiccourseware.org / formulas qtype - documentation / kids / multiplication➚.

There's still much work to be done to input the points into the gradebook, which shouldn't be a problem, and enhance the graphics and dynamic effects to make the question more fun for children (any suggestion is welcome).

I will resume work on your question in January.

MoodleForum_20231201_1602.png

V odpovědi na Dominique Bauer

Re: How to create a Quiz with game like effects

autor Sudhir Singhal -
Thank you Dominique for your time and efforts.
I will surely wait for the final version to add the scores into the gradebook.
Everything is looking good.

I have few queries:
1) In your quiz, how many questions are set?
I think it should display the number of question somewhere at the top, like 2/20 (second question, out of total twenty questions).
Do we need to add the same question multiple times in the quiz or where can we define the number of questions to be displayed?

2) The correct answer is already displayed in front of question mark, kindly disable it.

3) The score is coming at the bottom, I think it should include the word score, as student might get confused, whether it is question number or a total score.

4) As I am not a programmer so I am struggling to understand how to customize the values in in the global variables section. I understand some part of it but not all, like I don't understand how the choices are calculated. . Is there any weblink to understand all those commands? or if possible, can you describe it a bit more with some example, in the comments part, to understand it better.
Although I think defining the values of a and b is the main part, for the level of questions we want to give.
I know it easy to understand but I am not that technical. I am also trying to search for it on the internet to understand it. I hope you do not mind be asking such things.

Thank you once again for making it possible.
V odpovědi na Sudhir Singhal

Re: How to create a Quiz with game like effects

autor Sudhir Singhal -
Dear Dominique,

Kindly update regarding the above.
V odpovědi na Sudhir Singhal

Re: How to create a Quiz with game like effects

autor Sudhir Singhal -
Dear Dominique,

If possible, kindly disable the correct answer display along with question mark.
V odpovědi na Sudhir Singhal

Re: How to create a Quiz with game like effects

autor Dominique Bauer -
Obrázek: Documentation writers Obrázek: Particularly helpful Moodlers Obrázek: Plugin developers

Hello Sudhir,

I think it's more interesting to let the student write the answer rather than selecting it. To keep it fun, I wrote a little drag-and-drop routine into a Formulas question. The student must give the result of the multiplication of two numbers between 10 and 31, and 10 and 32. The result always contains three digits, ranging from 10 times 10 = 100 to 31 times 32 = 992. There are 22 x 23 = 506 possible combinations, or a little over half if you count a x b and b x a as one combination.

You can try it at dynamiccourseware.org/formulas qtype - question bank/kids/drag and drop➚.

MoodleForum_20240211_0245.png

V odpovědi na Sudhir Singhal

Re: How to create a Quiz with game like effects

autor Dominique Bauer -
Obrázek: Documentation writers Obrázek: Particularly helpful Moodlers Obrázek: Plugin developers

Sudhir,

I think it looks better with larger drop zones. You can try the example below at dynamiccourseware.org/formulas qtype - question bank/kids/drag and drop 3➚.

MoodleForum_20240211_2247.png

V odpovědi na Dominique Bauer

Re: How to create a Quiz with game like effects

autor Sudhir Singhal -
Dear Dominique,

Thanks for working on this new idea.
This drag n drop is very interesting and different from usual questions.

I have few suggestions:
1) Kindly disable showing the answer along with the question, in all the designs. Let the user input their answer first, then only we will show the correct answer.
I marked the answer displayed, in red colour, in the below image:

answer

Right now, in all the questions, correct answer is also being displayed along with the question, which is not required.

2) change the colour of the drop zones, or refer it in the code so that we can change it as per our theme, if required.

3) Is it possible to program the script, to display the number of drop zone according to the answer digits? so that we can give bigger numbers as well.
Or give reference in the code, where we can increase the number of drop zones, so that we can create some other questions with bigger numbers as well.

4) How many questions will it generate presently? or do we need to duplicate and create multiple questions of this and add it the quiz, so that we can add the score in the grades and also we can add the timer. Or is there any other way of doing it.

5) Kindly provide the link to download these drag and drop questions.

The earlier design of multiplication for kids is also great one and very interesting as that gives a game feeling with sound and student practice more questions in less time.
So, if possible, kindly delete the default answer showing in that also and add some reference in the code so that we can change the range and other values as per our requirement, as I requested in the earlier messages.

Thanks again for your time and efforts in creating this interesting question type.

Best Regards,
Sudhir Singhal
V odpovědi na Sudhir Singhal

Re: How to create a Quiz with game like effects

autor Dominique Bauer -
Obrázek: Documentation writers Obrázek: Particularly helpful Moodlers Obrázek: Plugin developers

Hello Sudhir,

I hope to be able to continue developing the question to meet your expectations. In the meantime, you will find the latest version at dynamiccourseware.org/formulas qtype - question bank/kids/drag and drop 3➚.

MoodleForum_20240212_1655.png

1) Kindly disable showing the answer along with the question...

I provided the correct answer for demonstration purposes, eliminating the need to calculate it each time. Before presenting the question to students, you should, of course, remove the section of code that displays it, i.e. the following single line:

<p>Answer: {r}</p>

Alternatively, you can comment out this line as follows:

<!--
<p>Answer: {r}</p>
-->

2) change the colour of the drop zones, or refer it in the code so that we can change it as per our theme, if required.

You can easily locate the various instances of the 'background-color' property in the code and modify the values as desired. Please note that I've utilized shorthand HEX values, such as '#66F' for light blue, etc.

3) Is it possible to program the script, to display the number of drop zone according to the answer digits?...

It's possible, but it requires more work.

4) How many questions will it generate presently?...

If you count a × b and b × a as different questions, there are 506 different possible questions, and a bit more than half this value if you count a × b and b × a as the same question.


Question:

Do you wish for the answer to be marked for each digit or for the entire number? For example, suppose the correct answer is 456 and the student answers 556, would you prefer the score to be 2/3 or 0/1?

V odpovědi na Dominique Bauer

Re: How to create a Quiz with game like effects

autor Sudhir Singhal -
Dear Dominique,

Thanks for replying to my queries.

I wish to give marks for the entire answer instead of individual digits, as this how they are evaluated in schools as well.
But displaying the correct digits in green and wrong digit in red colour is a good idea.

I wish you would get some more time to incorporate more features into it.
Most importantly is adding more drop zones, according to the numbers, so that we can use numbers beyond the limit of 32.

Thanks!