How to control quiz question selection?

How to control quiz question selection?

by Dawid Bartkowiak -
Number of replies: 5

Hello,

I am new to Moodle and this community. First of all thank you to all Moodle developers for this software. 

I would like to change quiz behavior and I am not sure if it is possible. What I need is the ability to choose only some questions from the question bank based on defaultgrade and tags. I have thousands of questions in the bank and I need to select just 32 for each quiz attempt. I am a javascript and c# developer with some knowledge of php. From the docs I understand that I should write an activity or local plugin. What would be the best approach to achieve what I want?  

I am using MOODLE_37_STABLE

Thank you for any help. 

Average of ratings: -
In reply to Dawid Bartkowiak

Re: How to control quiz question selection?

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers
Moodle can randomly pick 32 questions, if that is what you desire. Moodle's quiz engine also supports tags, but I haven't used that feature much, yet.
In reply to Rick Jerz

Re: How to control quiz question selection?

by Dawid Bartkowiak -
Thank you for your answer. To be more specific I need to select and combine:
- questions with tag 'basic': 10 with grade 3, 6 with grade 2, 4 with grade 1
- questions with tag 'advanced': 6 with grade 3, 4 with grade 2, 2 with grade 1
32 question in total with max score of 74 and minimum score to pass the quiz of 68.

Is there an easy way of achieving this without writing complex modules?
In reply to Dawid Bartkowiak

Re: How to control quiz question selection?

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers
If it was me, I would arrange these questions into logical groups. Then you could do what you wish.

Here is the beginning of the categories, as an example.
  1. Basic 3 point questions
  2. Basic 2 point questions
  3. Basic 1 point questions
  4. Advanced 3 point questions
  5. Advanced 2 point questions
  6. Advanced 1 point questions

With this grouping, you could then randomly pick 10 from group 1, 6 from group 2, etc.  No special coding required.

You need to decide if you want the final 32 questions jumbled, or kept together.  Moodle can handle either scenario.

In reply to Rick Jerz

Odp: Re: How to control quiz question selection?

by Dawid Bartkowiak -
Thank you again. This will work for me uśmiech I have another problem but I will add a new post about it. 
In reply to Dawid Bartkowiak

Re: Odp: Re: How to control quiz question selection?

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers
Cool, Dawid.  cool

Once you get your quiz questions organized, I think you will really like Moodle's quiz features.  I have used other LMS quiz engines, and Moodle's is far ahead.