Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DEGREE LEVEL : SOFTWARE TESTING (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
Which of the following structural graph coverage criteria subsumes All DU-Paths Coverage on a data flow graph?
Solution
Consider four partitions with blocks
,
,
, and
.What is the
minimum number of tests required to satisfy Each Choice Coverage (ECC) criterion?
minimum number of tests required to satisfy Each Choice Coverage (ECC) criterion?
Solution
Consider the predicate
. Which of the following options represents
, i.e. the conditions under which clause
determines
?
Solution
An organization is developing a mobile application for a food delivery service. One of the features specified is that the user should be able to track their order in real-time on the app. What kind of requirement does this represent?
Solution
Consider a system that categorizes job applicants based on their cumulative work experience according to the following categories:
- If work experience is between 0 to 1 year, the applicant is categorized as Entry-Level.
- If work experience is between 2 to 3 years, the applicant is categorized as Junior.
- If work experience is between 4 to 5 years, the applicant is categorized as Mid-Level.
- If work experience is 6 years or more, the applicant is categorized as Senior.
Assume that work experience is expressed in whole years. How many equivalence class partitions can be identified in this scenario?
- If work experience is between 0 to 1 year, the applicant is categorized as Entry-Level.
- If work experience is between 2 to 3 years, the applicant is categorized as Junior.
- If work experience is between 4 to 5 years, the applicant is categorized as Mid-Level.
- If work experience is 6 years or more, the applicant is categorized as Senior.
Assume that work experience is expressed in whole years. How many equivalence class partitions can be identified in this scenario?
Solution
Active Clause Coverage (ACC) is equivalent to which of the following classical coverage criteria for source code?
Solution
Consider the following range for a product's warranty period.
.
Which of the following test inputs would satisfy Boundary Value Analysis (BVA) for the given partition?
Which of the following test inputs would satisfy Boundary Value Analysis (BVA) for the given partition?
Solution
Consider the following code segment for symbolic testing.
// Compute the sum of positive integers, return on any negative input.
int series(int a) { int sum = a; int i = 0; while(true) { r = sym_input(); if(r < 0) { break;
} sum = sum + r; i++;
} return sum;
}
Choose the appropriate path constraint (PC) for the while loop with a sequence of
true outcomes followed by a false. Consider each
as a fresh symbolic value.
// Compute the sum of positive integers, return on any negative input.
int series(int a) { int sum = a; int i = 0; while(true) { r = sym_input(); if(r < 0) { break;
} sum = sum + r; i++;
} return sum;
}
Choose the appropriate path constraint (PC) for the while loop with a sequence of
Solution
Consider the predicate
. Which of the following options are true?
Solution
Comprehension Passage
Consider the predicate
and its truth table given below.
Note that the blank cells represent the value
in the truth table.

Based on the above data ,answer the given subquestions.
Note that the blank cells represent the value
Based on the above data ,answer the given subquestions.
Considering the row numbers (#) given in the truth table, which of the following is a CACC pair for the clause
?
Solution
Comprehension Passage
Consider the predicate
and its truth table given below.
Note that the blank cells represent the value
in the truth table.

Based on the above data ,answer the given subquestions.
Note that the blank cells represent the value
Based on the above data ,answer the given subquestions.
Considering the row numbers (#) given in the truth table, which of the following is a RICC pair for the clause
?
Solution
Comprehension Passage
Consider the control flow graph (CFG),
, where
- Set of vertices
- Set of edges
- Initial vertex
- Final vertex
Based on the above data, answer the given subquestions.
- Set of vertices
- Set of edges
- Initial vertex
- Final vertex
Based on the above data, answer the given subquestions.
What is the cyclomatic complexity of
?
Solution
Comprehension Passage
Consider the control flow graph (CFG),
, where
- Set of vertices
- Set of edges
- Initial vertex
- Final vertex
Based on the above data, answer the given subquestions.
- Set of vertices
- Set of edges
- Initial vertex
- Final vertex
Based on the above data, answer the given subquestions.
How many test requirements are there for edge-pair coverage on
?
Solution
Comprehension Passage
Consider the control flow graph (CFG),
, where
- Set of vertices
- Set of edges
- Initial vertex
- Final vertex
Based on the above data, answer the given subquestions.
- Set of vertices
- Set of edges
- Initial vertex
- Final vertex
Based on the above data, answer the given subquestions.
What is the minimum number of test paths needed to achieve edge coverage on
.
Solution
Comprehension Passage
Consider the following data flow graph and answer the subsequent questions.

How many test requirements are there to satisfy All-Defs Coverage for variable x?
Solution
Comprehension Passage
Consider the following data flow graph and answer the subsequent questions.

How many test requirements are there to satisfy All-Uses Coverage for variable x?
Solution
Comprehension Passage
Consider the following data flow graph and answer the subsequent questions.

Which of the following is not a def-clear path for variable x?
Solution
Comprehension Passage
Consider that concolic testing technique (DART) is used to test the following code segment.
int mean(int a, int b){ return (a + b)/2;
} int square(int n) {
return n * n;
} int process(int a, int b) { int t1 = mean(a, b); int t2 = square(t1) - (a * b) if(t2 <= 0) { // LINE-1 abort(); // LINE-2
} return t2;
}
Assume that
and
respresent the symbolic values for the variables a and b respectively, in the method process. Answer the subsequent questions.
int mean(int a, int b){ return (a + b)/2;
} int square(int n) {
return n * n;
} int process(int a, int b) { int t1 = mean(a, b); int t2 = square(t1) - (a * b) if(t2 <= 0) { // LINE-1 abort(); // LINE-2
} return t2;
}
Assume that
Identify the path constraint that represents an equivalence class of input vectors containing all inputs that lead to the abort() call at LINE-2.
Solution
Comprehension Passage
Consider that concolic testing technique (DART) is used to test the following code segment.
int mean(int a, int b){ return (a + b)/2;
} int square(int n) {
return n * n;
} int process(int a, int b) { int t1 = mean(a, b); int t2 = square(t1) - (a * b) if(t2 <= 0) { // LINE-1 abort(); // LINE-2
} return t2;
}
Assume that
and
respresent the symbolic values for the variables a and b respectively, in the method process. Answer the subsequent questions.
int mean(int a, int b){ return (a + b)/2;
} int square(int n) {
return n * n;
} int process(int a, int b) { int t1 = mean(a, b); int t2 = square(t1) - (a * b) if(t2 <= 0) { // LINE-1 abort(); // LINE-2
} return t2;
}
Assume that
Consider that DART generates a random input:
.
Which path constraint (PC) is generated for the next execution at LINE-1?
Hint: DART negates the path constraint in the current execution to get the path constraint for the next execution.
Which path constraint (PC) is generated for the next execution at LINE-1?
Hint: DART negates the path constraint in the current execution to get the path constraint for the next execution.
Solution
Shape
Thickness [ / ]
3
All colors