def getQuizLength(session): """ Returns the number of questions in the quiz assigned to session """ quizstr = gradebook.getSessionQuestions(session) quizli = quizstr.split(',') return len(quizli)
def giveClickerQuestion(session,page): """ Returns the clickerquestion corresponding to a page on a session """ qstr = gradebook.getSessionQuestions(session) print qstr qlist = qstr.split(',') qid=qlist[page] qblock = getQuestion(qid) return cq.clkrQuestion(qblock)