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.
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|