In Testlify, the scoring for coding questions is based on the correctness of individual test cases. Here's how the scoring system works:
Correct Test Cases: If one or more test cases are correct, the score will reflect the number of correct test cases.
Incorrect Test Cases: If all test cases are incorrect, the score will be zero.
Partial Correctness: Points are awarded for each test case that is correctly solved, even if other test cases are not correct.
This means that even partial solutions can earn some points based on the number of test cases they pass.
Example:
Suppose a coding question has four test cases. The candidate attempts all four test cases, but only two are correct.
Test Case 1: Correct
Test Case 2: Incorrect
Test Case 3: Correct
Test Case 4: Incorrect
Each test case carries two marks. Since the candidate has given two correct test cases, they earn points for those specific test cases.
Score Calculation:
Test Case 1: Correct (+2 marks)
Test Case 2: Incorrect (0 marks)
Test Case 3: Correct (+2 marks)
Test Case 4: Incorrect (0 marks)
Total Score: 4 marks out of 8
This example demonstrates how scoring is based on the correctness of individual test cases, with each correct test case contributing to the candidate's overall score.
For further clarification or assistance, feel free to reach out to our support team at [email protected]