All mock tests are FREE till 31 December — register to save your progress
Paper 2 CS · UNIT 06 · MOCK TEST

Mock 8 – Software Testing (Part 2)

Unit 6: Software Engineering · 28 questions · about 33 minutes. Press End Mock any time to see your score and the correct answers.

All 15 topic-wise mocks in this unit
0 / 28 answered 00:00
Q1. Which of the following are white-box testing techniques?
A. Path testing
B. Loop testing
C. Regression testing
D. Non-functional testing
Choose the correct answer from the options given below:
Q2. Which of the following is NOT one of the principles of good coding?
Q3. Which of the following is a technique used for component wrapping?
Q4. The cyclomatic complexity metric provides the designer with information regarding the number of ______
Q5. Which of the following need not be assessed during unit testing?
A. Algorithmic performance
B. Number of lines of code
C. Error handling
D. Execution paths
Choose the correct answer from the options given below:
Q6. Match List I with List II
List IList II
A. Condition coverageI. Black box testing
B. Equivalence class partitioningII. System testing
C. Volume testingIII. White box testing
D. Alpha testingIV. Performance testing
Q7. For a function of n variables, boundary value analysis yields
Q8. A fault-based testing technique is
Q9. Alpha and beta testing are forms of
Q10. Which of the following is not a key strategy followed by the clean room approach to software development?
Q11.

Which of the followings is NOT a software characteristic?

Q12.

Match List I with List II

Figure
Q13.

Collaborative document inspection technique used for?

Q14.

Match List - I with List - II.

Figure
Q15.

The cyclomatic complexity of the following flow graph is :

Figure
Q16.

Match List-I with List-II :

Figure

Chowe the correct answer from the options given below :

Q17.

Match List I with List II. List I: A. Scenario testing, B. Regression testing, C. Component testing, D. Beta testing. List II: I. To verify the I/O behaviour of a text object, II. User acceptance methodology, III. No new bugs after changes in the program, IV. The documentation of a use case.

Figure
Q18.

Which of the following is not one of the principles of good coding?

Q19.

The cyclomatic complexity metric provides the designer with information regarding the number of -____

Q20.

Match List I with List II

Figure
Q21.

For a function of two variables, boundary value analysis yields,

Q22.

In software testing, beta testing is the testing performed by _______________.

Q23.

Given below are two statements

Statement I: Cleanroom software process model incorporates the statistical quality certification of code increments as they accumulate into a system.

Statement II: Cleanroom software engineering follows the classic analysis, design, code, test, and debug cycle to software development and focussing on defect removal rather than defect prevention. In light of the above statements, choose the correct answer from the options given below

Q24.

Given below are two statements, one is labelled as Assertion A and the other is labelled as

Reason R

Assertion A : Software developers donot do exhaustive software testing in practice.

Reason R : Even for small inputs, exhaustive testing is too computationally intensive (e.g., takes too long) to run all the tests. In light of the above statements, choose the correct answer from the options given below

Q25.

Which of the following is/are behavioral testing technique(s)?

(A) Equivalence Partitioning

(B) Graph-Based Teating Method

(C) Boundery Value Analysis

(D) Data flow Testing

(E) Loop Testing

Directions (Q91–95): A flow graph F with entry node 1 and exit node 11 is shown (figure with Q91). Its nodes are 1, (2,3), (4,5), 6, 7, 8, 9, 10 and 11, with edges 1→(2,3), (2,3)→6, (2,3)→(4,5), 6→7, 6→8, 7→9, 8→9, 9→10, (4,5)→10, 10→1 and 1→11.

Q26.

What is the cyclomatic complexity of flowgraph F?

Directions (Q91–95): A flow graph F with entry node 1 and exit node 11 is shown (figure with Q91). Its nodes are 1, (2,3), (4,5), 6, 7, 8, 9, 10 and 11, with edges 1→(2,3), (2,3)→6, (2,3)→(4,5), 6→7, 6→8, 7→9, 8→9, 9→10, (4,5)→10, 10→1 and 1→11.

Q27.

How many regions are there in flowgraph F ?

Q28.

Consider the following method:

int f(int m, int n, boolean x, boolean y)
{
    int res = 0;
    if (m < 0) { res = n − m; }
    else if (x || y) {
        res = −1;
        if (n == m) { res = 1; }
    }
    else { res = n; }
    return res;
} /* end of f */

If P is the minimum number of tests for full statement coverage of f() and Q is the minimum number for full branch coverage, then (P, Q) =