Skip to main content
All CollectionsCandidatesDuring the Test
What are Test cases? Why are some of them hidden from me?
What are Test cases? Why are some of them hidden from me?
Priyanka Khandagale avatar
Written by Priyanka Khandagale
Updated over a week ago

LEARNING OUTCOME

Candidates will learn about the Test cases in programming questions.

Test cases

  1. Test Cases are pre-defined inputs that check the accuracy of your program.

  2. Status of Test Cases:

    1. Accepted: If your program gives correct output for any given input (provided it satisfies the question's constraints).

    2. Wrong Answer: If your program gives incorrect output for any given input (provided it satisfies the question's constraints).

    3. Runtime Error: If your program compiled successfully but encountered an error during runtime.
      ​
      ​

      Screenshot_2021-08-05_at_7.48.27_PM.png
      Screenshot_2021-08-05_at_7.52.04_PM.png
  3. 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.

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

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

    Screenshot_2021-08-05_at_7.45.32_PM.png
  6. 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.

Did this answer your question?