You are on page 1of 1

Actual

Test case ID Test_name Steps I/P Data Excepted Result Status


Result
Write program having
loop for( i=0; i<=10; for loop iterations must be
i++)
It printed
To check for { correct and it should print
TC_01 -- value of i Pass
loop iterations printf("%d",i); value of i from 0 to 10 from 0 to 10
}
Execute it.
Write program having
code switch(ch)
{
case 1: printf("This is
To check switch Case 1 is
TC_02 case 1"); break; case 2 : Enter ch=1 Case 1 must be printed pass
case printed
printf("This is case 2");
break; default: printf("
Please enter correct
choice");
}
Write program having
code switch(ch)
{
case 1: printf("This is
To check switch Case 2 is
TC-03 case 1"); break; case 2 : Enter ch=2 Case 2 must be printed Pass
case second printed
printf("This is case 2");
break; default: printf("
Please enter correct
choice");}
Execute it.
Write program having
It printed
To check do code i=0; do { It must print value of i from 0
TC_04 - value of i Pass
while loop printf("%d",i); i++ } to 10
from 0 to 10
while(i<=10);
Start program with It should
proper commands and display
TC_05 Ladder else-if 0 It shoul goes in else-if block Pass
write code in ladder else- number
if . Ex. Enter 0 no. Zero
Start program with
It displays
proper commands and It should execute the else
TC_06 else 5 even Fail
write code in else block . block
numbers
Ex. Enter odd no.
Start program with
It displays
proper commands and
TC_07 if 4 It should execute if block odd Fail
write code in if block .
numbers
Ex. Enter even no .
Write program having
code Take input for a
and b if( a>b)

{
a=10, else part is
TC_08 To check if else printf( " a is greater than else part must be execute Pass
b=20 executed
b"); else printf(" a is less
than b");
}
Execute it

You might also like