You are on page 1of 2

Reg. No.

:
Name :

Mid-Term Examinations – October 2021


Programme : BTech Semester : Fall 2021-22
Course : Software Testing Code : CSE4017
Faculty : Dr. Vikas Panthi Slot/ Class No. : A21+A22/0449
Time : 1 ½ hours Max. Marks : 50

Answer all the Questions

Q.No. Question Description Marks

1 Take any real time project and show all activities performed by a tester at the time of
10
development of a project and perform verification and validation activities.
2 Consider the following program for finding the prime numbers, their sum, and count:
main()
{
int num, fl ag, sum, count;
int CheckPrime(int n);
sum = count = 0;
printf(“Prime number between 1 and 100 are”);
for(num=1; num<=50; num++)
{
flag = CheckPrime(num);
if(flag)
{
printf(“%d”, num);
sum+ = num;
count++;
}
}
10
printf(“Sum of primes %d”, count);
}
int CheckPrime(int n)
{
int srt, d;
srt = sqrt(n);
d = 2;
while(d <= srt)
{
If(n%d == 0)
break;
d++;
}
if(d > srt)
return(1);
else
return(0);
Page 1 of 2
}

(a) Draw the DD graph for the program.


(b) This program consists of main() and one module. Calculate the individual cyclomatic
complexity number for both and collectively for the whole program.
(c) List all independent paths.
(d) Design all test cases from independent paths.

3 Passengers who travel more than 50,000 km. per calendar year and in addition, pay cash
for tickets or have been traveling regularly for more than eight years are to receive a free
round trip ticket around India. Passengers who travel less than 50,000 km. per calendar
10
year and have been availing railway services regularly for more than eight years also get a
free round ticket around India. Design test cases for this system using decision table
testing.
4 Derive all du-paths and dc-paths using data flow testing of Q. N. 2 10
5 Explain with suitable case study the concepts of mutation testing, mutant, mutation score,
killable mutant and stubborn mutant. What do you mean by equivalent mutant? 10

⇔⇔⇔

Page 2 of 2

You might also like