Professional Documents
Culture Documents
Case Study - Online Assessment System (OAS)
Case Study - Online Assessment System (OAS)
OAS is an online platform for conducting online assessments. The platform is capable of hosting
online assessments. An assessment is essentially an exam for fixed duration in a specific subject
conducted on a specific date and time. The assessments question paper is comprised of several
questions (multiple-choice and fill-in-the-blank). For a multiple choice question, the system
captures the question text along with 4 choices with one of them being the right answer. For fillin-the-blank questions, only one blank is present. The system stores the right answer for the
blank. The questions can be drawn from question banks that are organized based on a specific
subject. The questions are frequently reused across different assessments. For writing specific
exams, candidates must register for the exam and must have a valid admit card available with
them. Once the exam is over, portal displays the result that includes the marks obtained by the
candidates in each of the exams they wrote.
(Note: All the following classes must appear in your UML class diagram. Attributes for these
classes must be drawn from the description given above and sample data.)
S. No.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
Class Name
Candidate
Assessment
Class Description
A registered user in the system who is permitted take online
assessments
An specific online exam (e.g., GATE 2014)
Subject
AdmitCard
Result
QuestionBank
Question
MCQuestion
Multiple-choice question
FillBlankQuestion
Fill-in-the-blanks question
QuestionPaper
Page 1 of 10
Sample Data
(Note: All underlined data must appear somewhere in your database in some column)
Jawab-Do is an online quizzing portal that uses OAS for conducting periodic quiz
competitions in the form of online exams. An assessment was conducted on Monday Sept
15, 2014 at 10 AM on the subject of IIITB. About 137 candidates signed up for the quiz
and participated in it. One candidate with an interesting name and an interesting admit card
number was Such-IT with a binary admit card number 11010. He ends up topping the exam
by scoring 23 out of 25 marks. He just missed answering two questions from the question
paper: Who was the first director of IIITB (a) Mr. N R Narayana Murthy (b) Prof.
Sadagopan (c) Prof. S S Prabhu (d) Prof. Debabrata Das. Of course, the right answer is Prof.
Sadagopan. Another simple one he missed was The first PhD degree was awarded by
IIITB in the year ______. He was surprised it was as recent as 2008.
B) (20 marks) Map the UML schema to a relational schema. The relational schema should
strictly follow the mapping guidelines discussed in the class. After doing OR mapping,
every table in the relational schema should be shown in the following example format:
Data type
EMP_ID
Emp_Name
Dept_ID
Number
String
Number
Constraints
(PK, FK, Surrogate, UNIQUE, NOT NULL, etc.)
PK, Surrogate
NOT NULL
FK references Department.Dept_ID, NOT NULL
C) (20 marks) Convert the sample narrative data given in Sample Data into actual
table data as per the relational schema designed in (B) above. For every table, show the
sample data in simple tabular form as shown in the following example:
Employee
Employee_Id
394873
353636
Name
John Doe
Jane Doe
Age
34
35
Dept_Id
D01
D01
Page 2 of 10
Page 3 of 10
Grading Guidelines
1. UML class diagram grading will be done on a negative marking scheme starting from 20
marks. The given class diagram solution will be considered as the correct solution for the
grading. A penalty of 1 mark will be imposed for each of the following:
Missing classes
Missing associations
Showing non-natural attributes not allowed (e.g., surrogate key should not be shown)
2. Relational schema grading will be done on a negative marking scheme starting from 20 marks.
The given relational schema solution will NOT be used as the correct solution. Instead, your
own UML schema will considered as the correct input. Based on this input, all OR rules must
applied correctly. A penalty of 1 mark will be imposted for each of the following:
Page 4 of 10
Data type
Constraints
(PK, FK, Surrogate, UNIQUE,
NOT NULL, etc.)
AssessmentID
AssessmentDateTime
Duration
SubjectID
QuestionPaperID
Number
DateTime
Number
Number
Number
PK, Surrogate
NOT NULL
NOT NULL
FK refers Subject
FK refers QuestionPaper
Data type
QuestionPaperID
CreationDateTime
AssessmentID
MaxMarks
Number
DateTime
Number
Number
PK, Surrogate
NOT NULL
FK refers Assessment
Data type
QuestionID
QuestionType
QuestionText
QuestionBankID
Number
Enum
DateTime
Number
PK, Surrogate
{MCQ, FILL-IN}
NOT NULL
FK refers QuestionBank
Data type
QPQuestionID
QuestionPaperID
QuestionID
Number
Number
Number
PK, Surrogate
FK refers QuestionPaper
FK refers Question
Page 5 of 10
Data type
QuestionBankID
SubjectID
Number
Number
PK, Surrogate
FK refers Subject
Name of column
Data type
Constraints
(PK, FK, Surrogate, UNIQUE, NOT
NULL, etc.)
SubjectID
SubjectName
Number
String
PK, Surrogate
Data type
MCQuestionID
Number
Choice1
Choice2
Choice3
Choice4
RightChoice
String
String
String
String
Char
{A,B,C,D}
Data type
FillBlankQuestionID
Number
RightAnswer
String
Page 6 of 10
Data type
CandidateID
Number
CandidateName
String
Data type
AdmitCardID
AssessmentID
CandidateID
AdmitCardNumber
Number
Number
Number
String
PK, Surrogate
FK refers QuestionPaper
FK refers Question
Data type
ResultID
AdmitCardID
TotalMarks
Number
Number
Number
PK, Surrogate
FK refers AdmitCard
NOT NULL
Page 7 of 10
AssessmentID
AssessmentDateTime
Duration
SubjectID
QuestionPaperID
2014-09-15 10:00
120
QuestionPaperID
CreationDateTime
AssessmentID
MaxMarks
2014-09-15 9:00
25
QuestionID
QuestionType
QuestionText
QuestionBankID
MCQ
FILL-IN
1
1
QPQuestionID
QuestionPaperID
QuestionID
1
2
1
1
1
2
Page 8 of 10
QuestionBank
SubjectID
SubjectID
SubjectName
IIITB
MCQuestionID Choice1
Mr. NR
Narayana
Murthy
Choice2
Prof.
Sadagopan
FillBlankQuestionID
RightAnswer
2008
Page 9 of 10
Choice3
Choice4
RightChoice
Prof. Prabhu
Prof.
Debabrata
Das
Candidate ID
CandidateName
Such-IT
AdmitCardID
AssessmentID
CandidateID
AdmitCardNumber
11010
ResultID
AdmitCardID
TotalMarks
23
Page 10 of 10