Skip to content

Implement Question retrieval, submission handling and storage #7

@techshetty

Description

@techshetty

Manages the candidate’s experience during the test, including question navigation and code execution.


API for Question Retrieval

  • Endpoint: GET /api/test/:id/questions
  • Trigger: Invoked when the user clicks Start Test
  • Data:
    Returns the complete list of questions associated with the selected test.
    (Screenshots for MCQ and Code questions can be referenced here.)
Image Image

Handle both coding and MCQ type submissions

Store relevant fields: (refer schema)Add additional fields if required

Evaluate answers server-side:

For MCQ: match against correct option (use the testAns method(), implemented separately)

For coding: run using compiler API and compare output (use the testCode method(),implemented separately)

Store result (pass/fail/partial), marks scored, and time

Once this is done:

Users should be able to submit answers during contests

Submissions will be automatically evaluated and saved

Submission data will be used later to calculate leaderboards

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions