CST458 Software Testing, June 2023

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

D 0400csT458052301

!*
RegNo.: Name:
s m
APJ ABDUL KALAM TECHNOLOGICAL UNIVE
Eighth Semester B.Tech Degree Regular Examinatio n June 2023 t'/

Course Code: CST458

Course Name: SOFTWARE TESTING


Max. Marks: 100 Duration:3 Hours

PART A
Answer all questions, each carries 3 morks. Marks
I state the four objectives of testing and define Test case (3)
2 Explain Regression testing at different software testing levels with neat diagram. (3)
3 Suppose that the C programming language is chosen in project. Recommend a (3)
detailed code review checklist to the review team.
4 Describe the special role of a recordkeeper (3)
5 Explain structural graph coverage for Design Elements. (3)
6 Define Tour, Tour with side trips and Tour with Detours. (3)
7 What is functional testing and highlight the important steps. (3)
8 Preconditions are excellent sources for functionality -based characteristics. Justifu (3)
9 write the difference between Regression Testing and orthogonal Array Testing. (3)
rl0 What is Parameterized Unit testing. (3)

PART B
Answer ony onefull questionfrom each module, each carries 14 morks.

Module I

li a) Discuss various types of testing methods witfi;examples '


U

a. BlackBoxTesting b. WhiteBox Testing c. Graybox Testing


b) Explain coverage criteria for testing and identi$r the characteristics of a good g
coverage criteria.

.oR
12 a) Explain the following code fragment based on the following coverage criteria 8
a) Functional coverage b) statement coverage c)Branch coverage
d)Conditional Coverage

Page lof4
ta

0400csT4s8052301

int foo(int x,int y){


int n0;
if (x>0) && (y>0)) {
z:xi|
return z;

)
b) Write the positive and negative testcases for an ATM machine.

Module !l
l3 a) Explain Junit framework for unit testing.
b) What is Dynamic unit testing and Control flow testing.

OR
l4 a) Discuss the concept of mutation testing with testing process.
b) Explain seven types of mutation operators with examples.
Module lll
15 a)

l.Give the sets *0 ,* f, N and E for the above graph.


2.Give a path that is not a test path.
3.List all test paths in the above graph.
4.From the above graph, find test case inputs such that the corresponding test
path visits edge (nl, n3).

Page2of4
0400csT45t052301

b) Draw Control Flow Graph forthe following function .

int binsearch(int X,lnt V[ ], int n)

{
int low, high, mid;

low:0;high=n-l;
while (low <= high) { mid = (low + highyz;

if (x<Vlmidl)

high = mid - l; else if (X > V[mid])


low=mid+ l;
else

return mid;

return -l;

OR

16 a) Draw CFG fragment for a) Simple if b) Simple while loop c) Simple for loop 8

d) switch

b) Explain path selection criteria with reference to


i. All path.coverage criteria
ii. Statement Coverage Criteria

' iii. Branch Coverage Criteria ._;


iv. Predicate Coverage Criteria
Module lV
17 a) Explain orthogonal Anay Testing
b) List the guidelines for performing Boundary value Analysis.
OR
18 a) Define call graphs and classes.
b) Illustrate Random Testing with four steps.

Page 3of4

-++:+>t.-.
!r-

0400csT4580580r

Module V
19 a) Explain symbolic tetting and Symbolic Execution Tree.

,
ol why Grey Box testing is chosen and write the methodology behind it.

OR
20 a) Discuss any two techniques of Grey Box Testing.
8
b) Draw the symbolic execution tree for the following program code and explain 6
execution of testme(cl,a 2).

int twice (int v) {


return2*v;
)
void testrne ( int x,int y) {
z =twice ( y) ;
if (z:: x) {
if(x>y+ l0)
ERROR;

)
)
int mainO {
x = sym input ( );
t y=sym input ( );
testme ( x,y );
return (0);

)
da
il***

Page 4of4

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy