9th CS Unit-1-Key Points
9th CS Unit-1-Key Points
Unit# 1 – Exercise
Key Points
2. Types of Test Data: Test data are sets of inputs used to check if
a program works correctly. They include:
Boundary data: These are inputs at the edge or limit of what the
program can handle. For example, if a program accepts numbers
from 1 to 10, boundary data would include 1 and 10 to test if the
program handles the minimum and maximum values correctly.
Valid data: This is like giving the program the right kind of
information it expects. For example, if a program asks for your
age, valid data would be entering a number like “7” or “12”.
Wrong data: These are inputs that are technically within the
expected range but are incorrect for the specific context of the
program. For example, entering alphabetic characters when the
program expects numeric input.
2
Act it out: This means physically or mentally acting out the
problem to understand it better or test possible solutions. It's like
role-playing a scenario to see how different actions might play
out.