Moodle Import quiz limit

Moodle Import quiz limit

by Gurunath Auti -
Number of replies: 6


I have the requirement for import a quiz sheet weekly which having 50 questions out of which

only 25 will be listed to students . The question will be uploaded weekly basis using file (.csv or xls )

Listing question will be coming from uploaded quiz only . 

I have gone through random quiz functionality  but it is not solve our issue.

For shuffle quiz it will shuffle all 50 question But i want only  25 questions.

I have checked all the configuration but didn't get any solution. 

Is it possible to customize the code to achieve this ?.

Average of ratings: -
In reply to Gurunath Auti

Re: Moodle Import quiz limit

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
In reply to Tim Hunt

Re: Moodle Import quiz limit

by Gurunath Auti -
Thanks Tim.
I am not looking what's you have send an link.
I have to import 50 questions for a quiz, but only need the delegates to answer 25
of those questions. We want the 25 to change all the time from the group of 50 it picks from.
Using random question it's not solve my issue. because we have to create 25 categories for adding 25 random question and each category have to assign 2 question manually. I have to do this thing once while importing a excel sheet , i want to know that How we can achive it ? We don't want after creating quiz the admin user to edit and arrange it. All this should be do while importing a quiz only ... Hope you understood my question ?
In reply to Gurunath Auti

Re: Moodle Import quiz limit

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I understand what you are asking for. Moodle can do it. The link I gave is the place where the documentation tells you how to do it.

You don't have to create 25 categories. You only need one category, containing the 50 questions.

Then add 25 random questions to the quiz, all using that one category.

To prove this, you can:

  1. Go to https://qa.moodledemo.net/course/view.php?id=2
  2. Log in using the teacher account.
  3. Turn editing on.
  4. Create a new quiz.
  5. Go to the Edit quiz page.
  6. Click Add -> A random question.
  7. Select "Default for QE" as the category.
  8. Select 5 as the number of questions.
  9. Click "Add random question"
  10. Log out.
  11. Log in as the students.
  12. Attempt the quiz.
  13. Note which 5 questions you see.
  14. Log in as one of the other students.
  15. Attempt the quiz.
  16. Note which 5 questions you see.

That should be enought to convince you it is working the way you want.

There is the issue that 25 is not an option in the Add dialogue. However, you can first add 20, then add 5. That works.

Average of ratings: Useful (2)
In reply to Tim Hunt

Re: Moodle Import quiz limit

by Gurunath Auti -
Thanks.. I got it .. But can you tell me How we can import quiz to new category