Exemple #1
0
def getQuizLength(session):
    """
    Returns the number of questions in the quiz assigned to
    session
    """
    quizstr = gradebook.getSessionQuestions(session)
    quizli = quizstr.split(',')
    return len(quizli)
Exemple #2
0
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)