UGC NET · PAPER 2
UGC NET Paper 2 Computer Science – Software Engineering PYQ: Software Testing
Q1.
Test suite is consist of:
- (A) Set of defect cases
- (B) Set of boundary cases
- (C) Set of test cases
- (D) Set of nest cases
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
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
- (A) (A)-(IV), (B)-(III), (C)-(II), (D)-(I)
- (B) (A)-(II), (B)-(I), (C)-(III), (D)-(IV)
- (C) (A)-(IV), (B)-(III), (C)-(I), (D)-(II)
- (D) (A)-(III), (B)-(I), (C)-(IV), (D)-(II)
Q3.
________ is intended to show that a system both conforms to its specifications and meets the expectations of the system customer.
- (A) Software specification
- (B) Software design
- (C) Software evaluation
- (D) Software validation
Q4.
For a function of two variable, boundary value analysis yields.
- (A) 4n + 3 test cases
- (B) 4n + 1 test cases
- (C) n + 4 test cases
- (D) 2n + 4 test cases
Q5.
Alpha and Beta testing are forms of
- (A) White-Box Testing
- (B) Black-Box Testing
- (C) Acceptance Testing
- (D) System Testing
Q6.
Fault-based testing technique is
- (A) Unit testing
- (B) Beta testing
- (C) Stress testing
- (D) Mutation testing
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:
(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:
- (A) (B) and (D) only
- (B) (A), (B) and (C) only
- (C) (D) and (E) only
- (D) (A), (C) and (E) only
Q8.
Software validation mainly checks for inconsistencies between:
- (A) Use cases and user requirements
- (B) Implementation and system design blueprints
- (C) Detailed specifications and user requirements
- (D) Function specifications and use cases
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:
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:
- (A) R only
- (B) Q only
- (C) P and Q only
- (D) Q and R only
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?
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?
- (A) Only S1 and S2 are FALSE.
- (B) Only S1 and S3 are FALSE.
- (C) Only S2 and S3 are FALSE.
- (D) S1, S2 and S3 all are FALSE.
Q11.
Consider the method mcq():
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:
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:
- (A) (16, 3, 5)
- (B) (8, 3, 5)
- (C) (16, 4, 5)
- (D) (8, 4, 5)
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. Integration Testing
2. System Testing
3. Unit Testing
4. Validation Testing
- (A) 3, 1, 2, 4
- (B) 3, 1, 4, 2
- (C) 4, 3, 2, 1
- (D) 2, 4, 1, 3
Q13.
Which of the following testing techniques ensures that the software product runs correctly after the changes during maintenance?
- (A) Path Testing
- (B) Integration Testing
- (C) Unit Testing
- (D) Regression Testing
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.
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.
- (A) only I
- (B) only II
- (C) both I and II
- (D) neither I nor II
Q15.
For a program of k variables, boundary value analysis yields ______ test cases.
- (A) 4k – 1
- (B) 4k
- (C) 4k + 1
- (D) 2k – 1
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)]
- (A) P + 1
- (B) P – 1
- (C) P – 2
- (D) P + 2
Q17.
In software testing, how are error, fault and failure related to each other?
- (A) Error leads to failure but fault is not related to error and failure
- (B) Fault leads to failure but error is not related to fault and failure
- (C) Error leads to fault and fault leads to failure
- (D) Fault leads to error and error leads to failure
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
(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
- (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
- (D) Both (A) and (B)
Q19.
In which testing strategy are the requirements established during requirements analysis validated against the developed software?
- (A) Validation testing
- (B) Integration testing
- (C) Regression testing
- (D) System testing