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, 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.
Example:
There are 11 test cases for a coding question with 2 sample test cases and 9 hidden test cases. The table below illustrates the points scored by a candidate.
Test cases type | Number of test cases | Points assigned to each test case | Total score | Total number of test cases that pass for a 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 |
Comments
0 comments
Please sign in to leave a comment.