0% found this document useful (0 votes)
26 views

Practical 7 Ste

The document describes 5 test cases to test control and decision making statements in a program. The test cases cover If/Else statements, For loops, Do-While loops, and Switch-Case statements. Each test case lists the name, steps, input data, expected result, actual result, and status. The test cases validate number inputs, loop iterations, and conditional logic.

Uploaded by

RP Graphics
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Practical 7 Ste

The document describes 5 test cases to test control and decision making statements in a program. The test cases cover If/Else statements, For loops, Do-While loops, and Switch-Case statements. Each test case lists the name, steps, input data, expected result, actual result, and status. The test cases validate number inputs, loop iterations, and conditional logic.

Uploaded by

RP Graphics
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Practical 7: Write program and design test cases for the following control and decision

making statement

TC_Name Steps Input Expected Actual Result Status


Data Result

TC_1 If Enter 5 Number Accepting Pass


number<= Should be
10 accepted

TC_2 Else Enter 20 Go in else Shifting in else pass


number>= part part
10

TC_3 For Enter 5 Print 1to 5 Printing 1 to 5 pass


number<=
10

TC_4 Do_while Enter 5 Print 1to 5 Printing 1 to 5 pass


number<=
10

TC_5 Switch_case Enter 2 Two Two pass


number
1-3

You might also like