Package SolvishR

Class NonTimedExam

java.lang.Object
SolvishR.Exam
SolvishR.NonTimedExam

public class NonTimedExam extends Exam
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 Details

    • NonTimedExam

      public NonTimedExam(List<Question> questions)
      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

    • runExam

      public void runExam()
      Runs the non-timed exam by displaying questions, receiving answers, and showing results. Allows skipping questions by entering specific keywords.
      Specified by:
      runExam in class Exam