static void Main(string[] args) { QuestionList Qlist = new QuestionList(); AnswerList tof = new AnswerList(); tof.AddRange(new Answer[] { new Answer("true"), new Answer("false") }); AnswerList ans = new AnswerList(); ans.Add(new Answer("true")); Question tf = new TrueOrFalse("is that you", tof, ans, 10); Qlist.Add(tf); Qlist.Add(new TrueOrFalse("is that ", tof, ans, 30)); Qlist.Add(new ChooseOne("who are you ", tof, ans, 50)); Qlist.Add(new ChooseOne("how are you ", tof, ans, 5)); Qlist.Add(new ChooseAll("who am i ", tof, ans, 1)); Qlist.Add(new ChooseAll("who ", tof, ans, 6)); Exam <Question> .ExamEvent += Exam <Question> .printState; PracticeExam <Question> x = new PracticeExam <Question>(30, 6, mode.starting); x.generateExam(); }
public FinalExam(int time, int questions_Number) : base(time, questions_Number) { QuestionList MCQs = new QuestionList("mcq1", "Multiple Choise Questions"); Answer a1 = new Answer("egypt", true); Answer a2 = new Answer("china", true); Answer a3 = new Answer("japan", true); Answer a4 = new Answer("india", true); AnswerList answers = new AnswerList("1"); answers.Add(a1); answers.Add(a2); answers.Add(a3); answers.Add(a4); mcq1 = new MCQ(10, "where are you from?", answers); }