Re: How to create a Quiz with game like effects
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§ion=5
Re: How to create a Quiz with game like effects
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).
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:

Re: How to create a Quiz with game like effects
It seems a bit tricky and fun, and should be possible.
Re: How to create a Quiz with game like effects
Re: How to create a Quiz with game like effects
https://dynamiccourseware.org/course/view.php?id=122§ion=2➚
Re: How to create a Quiz with game like effects
Re: How to create a Quiz with game like effects

Re: How to create a Quiz with game like effects
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.
- 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.?
- Do you want students to have multiple tries to answer a question?
- Do you want there to be a delay (how long) between a incorrect choice selected and the display of the correct answer.
- 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.
- Will the question be used in a quiz or embedded on a page like on dynamiccourseware.org.
- Do you want a score to be put in the gradebook (could be limiting)?
Re: How to create a Quiz with game like effects
Re: How to create a Quiz with game like effects
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.
Re: How to create a Quiz with game like effects
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.
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.
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...
- 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).
Is there a github URL for this?
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?
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.
Kindly confirm if this is the correct link to see the updates.
Kindly confirm if you are still working on it or do you have some different ideas or suggestions for the above.
Re: How to create a Quiz with game like effects
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.
Re: How to create a Quiz with game like effects
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.
Hope you are well.
Kindly update the progress regarding the above and share the link to view it.
Re: How to create a Quiz with game like effects
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.
Re: How to create a Quiz with game like effects
Are you still working on the above idea? Kindly confirm.
Any update about this project?
Will you be able to get some time for it in the coming days?
Re: How to create a Quiz with game like effects
Hello Sudhir,
I worked on your question recently.
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.
Re: How to create a Quiz with game like effects
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.
Kindly update regarding the above.
If possible, kindly disable the correct answer display along with question mark.
Re: How to create a Quiz with game like effects
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➚.
Re: How to create a Quiz with game like effects
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➚.
Re: How to create a Quiz with game like effects
Thanks for working on this new idea.
This drag n drop is very interesting and different from usual questions.

Re: How to create a Quiz with game like effects
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➚.
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?
Re: How to create a Quiz with game like effects
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!