One issue with using Google Forms to make a multiple choice quiz is that if a question has (for example) 3 points and 3 out of 5 correct answers, if a student only selects 2 of the 3 correct answers they will get 0 points, not 2.
The workaround for this is to use a checkboxGrid with only 1 column where each row is an answer choice.
Points can then be awarded for each correctly selected row.
I'm at a point where I want to create revision quizzes on the fly using this method, a snippet of my code that does this is here:
var question = questions[Math.floor(Math.random() * questions.length)];
var item = tasks.addCheckboxGridItem();
item.setTitle(question[1]);
item.setRows([ question[3],question[4],question[5],question[6],question,[7],question[8],question[9] ]);
item.setColumns(['Click if correct']);
I'm at a loss as to assign the correct answer and points to specific rows. I can see how to do this for a simple multiple choice question but not for this checkBoxgrid.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…