LEARNING OUTCOME
Candidates will learn about the Test cases in programming questions.
Test cases
Test Cases are pre-defined inputs that check the accuracy of your program.
Status of Test Cases:
Accepted: If your program gives correct output for any given input (provided it satisfies the question's constraints).
Wrong Answer: If your program gives incorrect output for any given input (provided it satisfies the question's constraints).
Runtime Error: If your program compiled successfully but encountered an error during runtime.
β
β
In any programming-related question, you are required to pass as many Test cases (i.e., Sample and the Hidden Test cases) as you can to gain maximum marks.
Sample Test Cases: The input and output values of these test cases will be visible to you. These Test cases will help you better understand the input and output format.
Hidden Test Cases: Only the status of these Test cases will be visible to you once you click on the Save and Submit button. However, the input and output values of these Test cases will not be visible to you.
β
βIdeally, 80% of the Test cases are hidden from you to check the accuracy of your program and prevent you from hard-coding the different inputs.
Note: Sample Test cases are provided for your reference. Hidden Test cases are the main evaluating tools, and they are used to generate your score.