Chose x out of y questions for quiz/lesson

pandocent
Forums
Hi, is there any way to create quiz with 20 questions, but on quiz take lesson there will be only 10 questions chosen randomly from 20 available?
Profile picture for user luc
luc

Yes it in in taking options in the configuration of your lesseon

Pancocent, If you go to the **lesson configuration** (with an existing lesson choose edit) down below you find "taking options"" In that tab you will find: Randomize questions - No randomization - Random order - Random questions - Categorized random questions The difference between "random order" and "random questions" is that with "random questions" questions are drawn randomly from a pool of questions. With "random order" the lesson will always consist of the same questions. With "Categorized random questions" you can choose several terms questions should be drawn from, and you can also choose how many questions that should be drawn from each, and max score for each term. This is what you are looking for
pandocent

Thank You for message! I

Thank You for message! I chose this option, but right now on lesson Manage question page I have to chose category. How can I attach questions to categories? Do I have to add term reference field to question node? I'm using multiple answer question type.
Profile picture for user luc
luc

try random questions

I have never used categorized random questions and can't give you advice on that as I am not a developer why don't you choose random questions instead of categorized random questions ? It avoids complexity and should do the job as well
pandocent

luc, thank You for Your

luc, thank You for Your information. Now I know how to use random questions, and how to user random questions from category. For people, who will read it later: - for random, just use Random questions under Randomize questions option. Them go to Manage questions tab, and select how many questions do You want. You can also set Compulsory questions. But if You select 20 of them, and 19 random question it wont work, because You need to select at least 20 question (like number of Compulsory questions). - for random questions from category (for example if You want to display first few slides, then few random questions etc.) use Categorized random questions. Then You need to add a Taxonomy Reference field to Your question type under Admin > Structure > Content Type > Your question type > Manage Fields. When You do it, and set a category in each question, than You can select this category under Manage questions in Your lesson.