Indian Institute of Information Technology Vadodara: Instructions
Indian Institute of Information Technology Vadodara: Instructions
Full Marks: 60
Date: 05.01.2022
Instructions
1. Attempt ALL questions.
4. Answers should be readable, else they may not be considered for grading.
6. The final PDF uploaded should contain all pages sequentially arranged.
An incomplete use case diagram for the system is given above. Develop the following
Documents
(a) Complete the use case diagram for the above problem text. [15 marks]
(b) Specify use case documentation for “Register" use case. [15 marks]
Q.2. Programming:
(a) Define a Question class, which stores a multiple-choice question having one correct answer.
Each question has a complexity (difficulty) level.
Use the Question class to define a Quiz class. A quiz can be composed of up to 10 questions.
Define the add method of the Quiz class to add a question to a quiz.
Define the giveQuiz method of the Quiz class to present each question in turn to the user, accept
an answer for each one, and keep track of the results.
Define a class called QuizTime with a main() method that follows a menu based approach to
populates a quiz, presents it by asking questions randomly, and prints the final results.
[20 Marks]
(b) Modify your program so that the complexity level of the questions given in the quiz is taken
into account.
Overload the giveQuiz method so that it accepts two integer parameters that specify the
minimum and maximum complexity levels for the quiz questions and only presents questions in
that complexity range.
[10 Marks]