CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
🌙☀️
Log inStart free
Home/Templates/Student Projects (College Reports)

🎓 Student Projects (College Reports) · Class UML

Online Examination System Class Diagram

Classes for an online exam system, with question types by inheritance and grading logic.

More Student Projects (College Reports) templates

Opening a template is free and never counts toward your daily diagrams. Asking the AI to change it counts as one.

Drawing diagram…

What this diagram shows

  • MCQ and descriptive questions as subclasses
  • Exam composes questions; Attempt aggregates answers
  • Grader as a separate service class

Prompt used

Class diagram for an online examination system: User base class with Student and Examiner; Exam has many Questions; Question is abstract with MultipleChoiceQuestion and DescriptiveQuestion; Attempt holds a student's Answers for an exam; Grader grades an attempt and creates a Result.

Mermaid code
classDiagram
  class User {
    <<abstract>>
    +int id
    +String name
    +String email
    +login(String password) bool
  }
  class Student {
    +String rollNumber
    +startAttempt(Exam) Attempt
  }
  class Examiner {
    +createExam(String title) Exam
  }
  class Exam {
    +String title
    +DateTime startTime
    +int durationMin
    +totalMarks() int
  }
  class Question {
    <<abstract>>
    +String text
    +int marks
    +grade(Answer) decimal
  }
  class MultipleChoiceQuestion {
    +List~String~ options
    +int correctIndex
    +grade(Answer) decimal
  }
  class DescriptiveQuestion {
    +int wordLimit
    +grade(Answer) decimal
  }
  class Attempt {
    +DateTime submittedAt
    +submit() void
  }
  class Answer {
    +String response
  }
  class Grader {
    +grade(Attempt) Result
  }
  class Result {
    +decimal score
    +String grade
  }
  User <|-- Student
  User <|-- Examiner
  Exam "1" *-- "many" Question
  Question <|-- MultipleChoiceQuestion
  Question <|-- DescriptiveQuestion
  Student "1" --> "many" Attempt
  Attempt --> Exam
  Attempt "1" o-- "many" Answer
  Answer --> Question
  Grader ..> Result : creates

Inside this diagram

A class diagram with 11 classes and 10 relationships.

Classes

  • User: abstract; fields id, name, email; methods login(String password)
  • Student: fields rollNumber; methods startAttempt(Exam)
  • Examiner: methods createExam(String title)
  • Exam: fields title, startTime, durationMin; methods totalMarks()
  • Question: abstract; fields text, marks; methods grade(Answer)
  • MultipleChoiceQuestion: fields options, correctIndex; methods grade(Answer)
  • DescriptiveQuestion: fields wordLimit; methods grade(Answer)
  • Attempt: fields submittedAt; methods submit()
  • Answer: fields response
  • Grader: methods grade(Attempt)
  • Result: fields score, grade

Relationships

  • Student inherits from User
  • Examiner inherits from User
  • Exam is made up of Question
  • MultipleChoiceQuestion inherits from Question
  • DescriptiveQuestion inherits from Question
  • Student uses Attempt
  • Attempt uses Exam
  • Attempt has Answer
  • Answer uses Question
  • Grader depends on Result (creates)

Make your own diagram like this

Describe your own system in plain English and CloudSketch AI draws it in seconds. See all AI diagram generators.

Related templates

Use CaseStudent Projects (College Reports)

Library Management System Use Case Diagram

Who uses a college library system and what each of them can do: members, the librarian and the system administrator.

Database ERDStudent Projects (College Reports)

Library Management System ER Diagram

The database of a library system: books and their copies, authors, members, loans, reservations and fines, with keys and cardinality.

Data FlowStudent Projects (College Reports)

Library Management System Data Flow Diagram (Level 1)

How data moves through a library system: members and the librarian, the main processes, and the data stores they read and write.

Class UMLStudent Projects (College Reports)

Library Management System Class Diagram

The main classes of a library system with attributes, methods and UML relationships.

SequenceStudent Projects (College Reports)

Library Management System Sequence Diagram (Issue a Book)

The steps when a member borrows a book: checks, loan record and the copy status update.

Use CaseStudent Projects (College Reports)

Online Examination System Use Case Diagram

What students, examiners and the administrator do in an online examination system.