.
[HamExam.git] / framework.py
blob0f99b196c1521fcbed9044bc21c202a5b27d63c2
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
14 def EvalQuestion(self, answer):
15 if self.q.correct == answer:
16 c = True
17 else:
18 c = False
19 return c
21 def FindNewQuestion(self):
22 return
24 def FindBadQuestion(self):
25 return
27 def FindGoodQuestion(self):
28 return
30 def __init__(self):
31 self.q = questions.Questions()
32 self.s = statistic.Statistic()