.
[HamExam.git] / framework.py
blob078cdbca28512ad0b996d8f04506158da96cc9a7
1 import questions, statistic
3 class Framework:
4 def AskQuestion(self):
5 qid = str("TB305")
6 self.q.AskQuestion (qid)
7 self.id = qid
8 self.question = self.q.question
9 self.answera = self.q.answera
10 self.answerb = self.q.answerb
11 self.answerc = self.q.answerc
12 self.answerd = self.q.answerd
13 self.hint = self.q.hint
15 def EvalQuestion(self, answer):
16 if self.q.correct == answer:
17 c = True
18 else:
19 c = False
21 self.s.IncreaseCounter (self.id, c)
23 return c
25 def FindNewQuestion(self):
26 return
28 def FindBadQuestion(self):
29 return
31 def FindGoodQuestion(self):
32 return
34 def __init__(self):
35 self.q = questions.Questions()
36 self.s = statistic.Statistic()