Hi,

I am working on a learning platform using Course module and all the related objects.

One of the requirements is to be able to create exams (quizzes) with a number of questions , but be able to have differents subgroups of random questions.

I.e., if a quiz has a battery of 100 questions, have a parameter to limit the quiz to 10 random questions of this 100.

Does this option exist? I haven't found it.

Thanks

CommentFileSizeAuthor
#6 Clipboard0122.jpg48.59 KBmikestar5
#3 Clipboard01.jpg69.98 KBmikestar5
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

djdevin’s picture

Category: Feature request » Support request
Status: Active » Closed (works as designed)

Yep, it's in the Quiz module. (5.x version)

Course comes with integration for Quiz as well.

In Quiz you would set up a categorized random Quiz, then set up a taxonomy that contains your 100 quiz questions. Then, every attempt will pull 10 questions from those 100.

mikestar5’s picture

Thanks for the quick response!

I have seen the options.

The "random questions" one seems to be more what I need. But I can't see, neither with "random questions" nor "categorized random questions", where the number of questions of the subgroup is (nor the chosen category, in the second case).

quiz

Am I missing something in the form?

Thank you

mikestar5’s picture

FileSize
69.98 KB
djdevin’s picture

Project: Course » Quiz
Version: 7.x-1.2 » 7.x-5.x-dev
Component: Course objects » Code - Quiz core
Priority: Major » Normal

It should be under the Quiz -> "manage questions" tab (not on the edit screen). Instead of a list of questions, the form changes so that you pick which taxonomy term and how many questions to show.

mikestar5’s picture

Gotcha!

Thanks very much

mikestar5’s picture

FileSize
48.59 KB

Ok, new question. Now I'm trying to add categorized questions, but I find this screen, after selecting a category.

But I can't find where to add questions to the category.

Can you help?

t

Thanks

djdevin’s picture

1) Add a taxonomy vocabulary
2) Add the taxonomy term field to your question type(s)
3) Create questions with taxonomy terms

Additionally you could also select "random question" instead of "categorized random questions" and not use taxonomy. It will pull X questions from all Y questions in your quiz.

ajaykumar.kataram@gmail.com’s picture

Thanks djdevin for the Steps

I Followed the steps by him,able to get the Categorized Random per particular category,added the Questions through category drop down in Multiple Choice Questions and added the number of Questions to particular category ,when we add the category and no of questions in the Quiz it will pull from the questions with related to the Category

Thanks
Ajay

ojchris’s picture

Thank you for this, especially to djdevin, your lead to this on this page and here: https://www.drupal.org/project/quiz/issues/1054824 is great!

but how do I add taxonomy to my questions (there is no such field on the questions) and I don't see where to create a new queation field on question. Lead me please.

djdevin’s picture

@ojchris37 You have to add it yourself, you can name it whatever you want.

Then follow https://www.drupal.org/project/quiz/issues/2344317#comment-9238167

If you are new to Drupal/Taxonomy see https://www.drupal.org/docs/7/organizing-content-with-taxonomies (adding taxonomy to quiz questions is the same as adding taxonomy to content)

Also please create new issues instead of commenting on old ones!

ojchris’s picture

Thanks djdevin
I should have commented back. I later found the link you referred. Sorted!