All mock tests are FREE till 31 December — register to save your progress
UGC NET · PAPER 2

UGC NET Paper 2 Computer Science – Software Engineering PYQ: Software Testing

19 questions · answer key at the end · updated 29 Sep 2026
Q1.
Test suite is consist of:
  1. (A) Set of defect cases
  2. (B) Set of boundary cases
  3. (C) Set of test cases
  4. (D) Set of nest cases
Answer & explanation →
Q2.
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 behavior of test object
(II) User acceptance methodology
(III) No new bugs after changes in program
(IV) The documentation of a use case
  1. (A) (A)-(IV), (B)-(III), (C)-(II), (D)-(I)
  2. (B) (A)-(II), (B)-(I), (C)-(III), (D)-(IV)
  3. (C) (A)-(IV), (B)-(III), (C)-(I), (D)-(II)
  4. (D) (A)-(III), (B)-(I), (C)-(IV), (D)-(II)
Answer & explanation →
Q3.
________ is intended to show that a system both conforms to its specifications and meets the expectations of the system customer.
  1. (A) Software specification
  2. (B) Software design
  3. (C) Software evaluation
  4. (D) Software validation
Answer & explanation →
Q4.
For a function of two variable, boundary value analysis yields.
  1. (A) 4n + 3 test cases
  2. (B) 4n + 1 test cases
  3. (C) n + 4 test cases
  4. (D) 2n + 4 test cases
Answer & explanation →
Q5.
Alpha and Beta testing are forms of
  1. (A) White-Box Testing
  2. (B) Black-Box Testing
  3. (C) Acceptance Testing
  4. (D) System Testing
Answer & explanation →
Q6.
Fault-based testing technique is
  1. (A) Unit testing
  2. (B) Beta testing
  3. (C) Stress testing
  4. (D) Mutation testing
Answer & explanation →
Q7.
Which of the following is/are behavioral testing technique(s)?
(A) Equivalence Partitioning
(B) Graph-Based Testing Method
(C) Boundary Value Analysis
(D) Data flow Testing
(E) Loop Testing
Choose the correct answer from the options given below:
  1. (A) (B) and (D) only
  2. (B) (A), (B) and (C) only
  3. (C) (D) and (E) only
  4. (D) (A), (C) and (E) only
Answer & explanation →
Q8.
Software validation mainly checks for inconsistencies between:
  1. (A) Use cases and user requirements
  2. (B) Implementation and system design blueprints
  3. (C) Detailed specifications and user requirements
  4. (D) Function specifications and use cases
Answer & explanation →
Q9.
In the context of software testing, which of the following statements is/are NOT correct?
P: A minimal test set that achieves 100% path coverage will also achieve 100% statement coverage.
Q: A minimal test set that achieves 100% path coverage will generally detect more faults than one that achieves 100% statement coverage.
R: A minimal test set that achieves 100% statement coverage will generally detect more faults than one that achieves 100% branch coverage.
Choose the correct answer from the options given below:
  1. (A) R only
  2. (B) Q only
  3. (C) P and Q only
  4. (D) Q and R only
Answer & explanation →
Q10.
Consider the following statements:
S1: White-box tests are based on specifications; better at telling whether program meets specification, better at finding errors of omission.
S2: Black-box tests are based on code; better for finding crashes, out of bounds errors, file not closed errors.
S3: Alpha testing is conducted at the developer's site by a team of highly skilled testers for software that is developed as a product to be used by many customers.
Which of the following is correct?
  1. (A) Only S1 and S2 are FALSE.
  2. (B) Only S1 and S3 are FALSE.
  3. (C) Only S2 and S3 are FALSE.
  4. (D) S1, S2 and S3 all are FALSE.
Answer & explanation →
Q11.
Consider the method mcq():
int mcq(boolean a, boolean b, boolean c, boolean d)
{
  int ans = 1;
  if (a) { ans = 2; }
  else if (b) { ans = 3; }
  else if (c) { if (d) { ans = 4; } }
  return ans;
}

Let M1 = number of tests to exhaustively test mcq(), M2 = minimum number of tests to achieve full statement coverage, and M3 = minimum number of tests to achieve full branch coverage. Then the value of (M1, M2, M3) is:
  1. (A) (16, 3, 5)
  2. (B) (8, 3, 5)
  3. (C) (16, 4, 5)
  4. (D) (8, 4, 5)
Answer & explanation →
Q12.
What is the normal order of activities in which traditional software testing is organised?
1. Integration Testing
2. System Testing
3. Unit Testing
4. Validation Testing
  1. (A) 3, 1, 2, 4
  2. (B) 3, 1, 4, 2
  3. (C) 4, 3, 2, 1
  4. (D) 2, 4, 1, 3
Answer & explanation →
Q13.
Which of the following testing techniques ensures that the software product runs correctly after the changes during maintenance?
  1. (A) Path Testing
  2. (B) Integration Testing
  3. (C) Unit Testing
  4. (D) Regression Testing
Answer & explanation →
Q14.
Which of the following statement(s) is/are TRUE with regard to software testing?
I. Regression testing technique ensures that the software product runs correctly after the changes during maintenance.
II. Equivalence partitioning is a white-box testing technique that divides the input domain of a program into classes of data from which test cases can be derived.
  1. (A) only I
  2. (B) only II
  3. (C) both I and II
  4. (D) neither I nor II
Answer & explanation →
Q15.
For a program of k variables, boundary value analysis yields ______ test cases.
  1. (A) 4k – 1
  2. (B) 4k
  3. (C) 4k + 1
  4. (D) 2k – 1
Answer & explanation →
Q16.
The cyclomatic complexity of a flow graph V(G), in terms of predicate nodes, is: [where P is the number of predicate nodes in the flow graph V(G)]
  1. (A) P + 1
  2. (B) P – 1
  3. (C) P – 2
  4. (D) P + 2
Answer & explanation →
Q17.
In software testing, how are error, fault and failure related to each other?
  1. (A) Error leads to failure but fault is not related to error and failure
  2. (B) Fault leads to failure but error is not related to fault and failure
  3. (C) Error leads to fault and fault leads to failure
  4. (D) Fault leads to error and error leads to failure
Answer & explanation →
Q18.
Verification:
(A) refers to the set of activities that ensure that software correctly implements a specific function
(B) gives answer to the question – Are we building the product right?
(C) requires execution of software
  1. (A) refers to the set of activities that ensure that software correctly implements a specific function
  2. (B) gives answer to the question – Are we building the product right?
  3. (C) requires execution of software
  4. (D) Both (A) and (B)
Answer & explanation →
Q19.
In which testing strategy are the requirements established during requirements analysis validated against the developed software?
  1. (A) Validation testing
  2. (B) Integration testing
  3. (C) Regression testing
  4. (D) System testing
Answer & explanation →

Answer key

  1. 1 – C
  2. 2 – C
  3. 3 – D
  4. 4 – B
  5. 5 – C
  6. 6 – D
  7. 7 – B
  8. 8 – C
  9. 9 – A
  10. 10 – A
  11. 11 – A
  12. 12 – B
  13. 13 – D
  14. 14 – A
  15. 15 – C
  16. 16 – A
  17. 17 – D
  18. 18 – D
  19. 19 – A