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

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

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.