-
-
Notifications
You must be signed in to change notification settings - Fork 42.5k
Open
Labels
Description
What is the URL where the issue is happening
https://roadmap.sh/ai/quiz/software-testing-principles-and-techniques-quiz
What browsers are you seeing the problem on?
Chrome
Describe the Bug
In the quiz interface at roadmap.sh, there's a mismatch between the selected answer and the one indicated as correct. Even though I selected option 3, the UI shows the correct answer as "Option 2" and marks it as correct — which is actually the one I selected. This suggests a likely off-by-one indexing error (starting from 0 instead of 1 internally).
Possible Cause:
- The system likely uses zero-based indexing (0,1,2,3) internally for answers.
- However, the UI presents them as 1-based (1,2,3,4).
- This causes a discrepancy when showing the “correct answer” number in the success message.
Suggested Fix:
- Adjust the display index in the result message to add +1 when referencing the correct answer, to match the UI numbering.
Output from browser console (if any)
No response
Participation
- I am willing to submit a pull request for this issue.