Package SolvishR
Class NonTimedExam
java.lang.Object
SolvishR.Exam
SolvishR.NonTimedExam
The SolvishR.NonTimedExam class represents a non-timed exam, extending the abstract SolvishR.Exam class.
It allows the user to run the exam by displaying questions, receiving answers, and showing results.
This class can be instantiated with a pre-defined list of questions or an empty list.
- Version:
- 1.0
- Author:
- Adib Sakhawat
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a SolvishR.NonTimedExam with an empty list of questions.NonTimedExam(List<Question> questions) Constructs a SolvishR.NonTimedExam with a pre-defined list of questions. -
Method Summary
Modifier and TypeMethodDescriptionvoidrunExam()Runs the non-timed exam by displaying questions, receiving answers, and showing results.Methods inherited from class SolvishR.Exam
addQuestion, getCorrect, getIncorrect, getScore, getUnanswered, setQuestions, showResults
-
Constructor Details
-
NonTimedExam
Constructs a SolvishR.NonTimedExam with a pre-defined list of questions.- Parameters:
questions- The list of questions for the exam.
-
NonTimedExam
public NonTimedExam()Constructs a SolvishR.NonTimedExam with an empty list of questions.
-
-
Method Details