Download as pdf or txt
Download as pdf or txt
You are on page 1of 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