.
[HamExam.git] / framework.py
blob5368ee3ade0f4002e5e5380ca0fc4f68e513af3a
1 import questions, statistic
3 class Framework:
4 def AskQuestion(self):
5 qid = "TB305"
6 q.AskQuestion (qid)
7 f.id = qid
8 f.question = q.question
9 f.answera = q.answera
10 f.answerb = q.answerb
11 f.answerc = q.answerc
12 f.answerd = q.answerd
14 def EvalQuestion(self, answer):
15 if 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