Skip to content

Feature/randomized quiz modulewise#101

Open
NehaP1706 wants to merge 9 commits into
pushkarscripts:mainfrom
NehaP1706:feature/randomized-quiz-modulewise
Open

Feature/randomized quiz modulewise#101
NehaP1706 wants to merge 9 commits into
pushkarscripts:mainfrom
NehaP1706:feature/randomized-quiz-modulewise

Conversation

@NehaP1706
Copy link
Copy Markdown
Contributor

Related Issue

Fixes #73 .

Description

lib/quizData.ts: expand to 22 questions per subject, add module metadata
lib/QuizClient.tsx: add module-level fetching + random selection logic
app/quiz/page.tsx: show both course-end and module-wise quiz options
app/quiz/[slug]/page.tsx: handle module quiz card


Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • UI/UX improvement
  • Refactor

Screenshots / Demo

image image image

How Has This Been Tested?

The testing for this was conducted by human eye-checks.

npm run dev was the command used to set up the test environment.

All conditions:

  • A correct option, resulting in score updation
  • A wrong option, resulting in display of correct answer + reason
  • Poor, intermediate and excellent performance for all modules of several subjects were checked

Checklist

  • My code follows the project structure and conventions
  • I have tested the changes locally
  • I have linked the related issue properly
  • I have added screenshots where applicable
  • No existing functionality was broken

AI Usage

  • I have not used AI tools for this contribution

  • I have used AI tools (ChatGPT, Copilot, Claude, etc.) and I have reviewed, verified, and understood all generated code/content before submitting this PR

If AI tools were used, briefly explain how:

Since creating module-wise quizzes for all the courses is not humanely possible, I fed some agents with the content and requested for questions in the json format. I would recommend setting up some issues to update the test quality and questions.


Additional Notes

  • Subjects that were added after the issue was assigned (i.e. DBMS, DOPS, some sections in ML) may not be present, kindly provide me with more time or alternatively allow another issue to fill this up.
  • README.md may require updations on how to complete integrating further courses.
  • Another observation that was profound - the ML course component had a distinct UI compared to other courses and is not very homogeneous with the rest of the website. Integrating the quiz system into it was hard.
  • Would a custom quiz or semester-level quiz be of interest?

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 19, 2026

@NehaP1706 is attempting to deploy a commit to the PushkarScripts Team on Vercel.

A member of the Team first needs to authorize it.

@NehaP1706
Copy link
Copy Markdown
Contributor Author

The reason it shows up as +7313, -148 for the commits is because the size of quizData.ts has become significantly large to accomodate for the module-quizzes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Per-Module Quiz + Refinements

1 participant