Skip to content

[BUG] Chapter inline quiz advertises 5 questions but runs 10 #353

Description

@vipul674

Bug

app/sem4/os/components/ChapterQuizInline.tsx:31 advertises Math.min(5, quiz.questions.length) questions, but the quiz it launches runs up to 10 questions (app/quiz/[slug]/QuizClient.tsx:63 sets const total = Math.min(10, quiz.questions.length)).

Impact

Every chapter inline quiz (OS, DSC, COA, C, OOPS, EM, etc.) shows "5 questions" on its start card but delivers 10 questions once started. Users who budget for a 5-question module quiz are surprised by a full 10-question quiz, and the advertised length is simply wrong.

Expected

The start-card question count should match the actual quiz length. Either show Math.min(10, quiz.questions.length) on the card, or pass a limit of 5 to the quiz.

Files

  • app/sem4/os/components/ChapterQuizInline.tsx:31
  • app/quiz/[slug]/QuizClient.tsx:63

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions