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

Mock 7 – Software Testing (Part 1)

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.
Overfitting is expected when we observe that?
Q2.
Which of the following statements about ERP system is true?
Q3.
Which of the following is not a key strategy followed by the clean room approach to software development?
Q4.
Test suite is consist of:
Q5.
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
Q6.
For a function of two variable, boundary value analysis yields.
Q7.
Alpha and Beta testing are forms of
Q8.
Fault-based testing technique is
Q9.
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:
Q10.
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:
Q11.
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?
Q12.
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:
Q13.
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
Q14.
Which of the following testing techniques ensures that the software product runs correctly after the changes during maintenance?
Q15.
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.
Q16.
For a program of k variables, boundary value analysis yields ______ test cases.
Q17.
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)]
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
Q19.
In which testing strategy are the requirements established during requirements analysis validated against the developed software?
Q20. Match List I with List II
List IList II
A. Equivalence PartitioningI. Measures independent paths in code
B. Boundary Value AnalysisII. Divides input into valid/invalid sets
C. Cyclomatic ComplexityIII. Focuses on limits of input ranges
D. Decision Table TestingIV. In which a number of combinations of actions are tested under varying sets of conditions.
Q21. Arrange the following types of testing in the order they are usually performed in the software development life cycle.
A. Integration testing
B. Unit testing
C. System Testing
D. Acceptance Testing
Choose the correct answer from the options given below:
Q22. Software testability is simply how easily a software program can be tested. Which one of the following characteristics does NOT lead to testable software?
Q23. The collaborative document inspection technique is used for?
Q24. Match List I (Testing Type) with List II (Description)
List IList II
(A) Unit testing(I) Testing individual components of the software.
(B) Integration testing(II) Testing the interaction between integrated components.
(C) System testing(III) Testing to verify the system meets business needs.
(D) Acceptance testing(IV) Testing the complete system to ensure it meets requirements.
Q25. A test suite consists of:
Q26. Match List I with List II
List IList II
A. Scenario testingI. To verify the I/O behaviour of a test object
B. Regression testingII. User acceptance methodology
C. Component testingIII. No new bugs after changes in program
D. Beta testingIV. The documentation of a use case
Q27. The cyclomatic complexity of the following flow graph is: nodes 1, 2, 3, 4, 5, 6, 7, 9, 10 with edges 1→2, 1→10, 2→3, 2→4, 3→9, 4→5, 4→6, 5→7, 6→7, 7→9, 9→1.
Q28. Match List I with List II
List IList II
A. VerificationI. White box Testing
B. ValidationII. Black box Testing
C. Internal logic exerciseIII. Quality Control
D. Software requirement exerciseIV. Quality Assurance