Overview
The coding questions are automatically scored with the help of the test cases. While creating a coding question, the test setter creates test cases and assigns a different score to each test case based on the difficulty level of each question. You can assign 0 points to the sample test cases if you do not want to include them in the evaluation.
For evaluation, the candidate's code is validated for each test case. The output from the candidate’s code is compared with the expected output to validate whether the test case has passed or failed. The total score assigned to the candidate is the sum of scores of all the passed test cases.
Sample Test Cases
There are 11 test cases for a coding question with two-sample test cases and nine hidden test cases.
The table below illustrates the points scored by a candidate:
Type of Test Case |
Number of Test Cases |
Points Assigned to a Test Case |
Total Score |
Total Number of Passed Test Cases per candidate |
Candidate's Total Score |
Sample |
2 |
0 |
2*0=0 |
2 |
2*0= 0 |
Hidden- easy |
3 |
5 |
3*5=15 |
3 |
3*5=15 |
Hidden-medium |
4 |
10 |
4*10=40 |
3 |
3*10=30 |
Hidden Difficult |
2 |
20 |
2*20=40 |
1 |
1*20=20 |
11 |
95 |
65 |