Verification vs Validation MCQs: 12 Solved Questions on Faults and Testing Basics

Solve 12 software testing MCQs, then use concrete boundary examples to separate verification, validation, faults, failures, mutation and error seeding.

KnowledgeGate Team

Exam prep & CS education

Updated 29 Nov 20267 min read
Verification vs Validation MCQs: 12 Solved Questions on Faults and Testing Basics

Verification checks whether specified work was built correctly; validation checks whether the built product meets the intended need. A human error can create a fault, and an activated fault can produce a failure. Static review, mutation testing and error seeding test different parts of that chain.

How to use this 12-question software testing set

Attempt all 12 without notes, check the reasoning, then retry missed concepts from memory.

Individual question links for this set are unavailable, so continue from the Testing Fundamentals practice hub. The Software Quality in Software Engineering guide owns QA/QC, quality factors and metrics; this set isolates verification, validation, fault and failure answer traps. The UGC NET CS Exam Preparation page connects the topic to the wider Paper 2 syllabus.

Questions 1-2: testing intent and the meaning of a test suite

Question 1, UGC NET 2014

Code
Software testing is

A. the process of establishing that errors are not present.
B. the process of establishing confidence that a program does what it is supposed to do.
C. the process of executing a program to show that it is working as per specifications.
D. the process of executing a program with the intent of finding errors.

Answer: D.

Passing selected tests cannot prove that no error exists. If a borrowing rule allows currentLoans <= 3 but code uses < 3, tests at 0, 2 and 4 pass; only 3 exposes the fault. The defining intent here is finding errors.

Question 2

Code
A test suite consists of:

A. Set of defect cases
B. Set of boundary cases
C. Set of test cases
D. Set of nest cases

Answer: C. A test suite is a set of test cases.

A four-case suite might use inputs {0, 2, 3, 4} and expected results {allow, allow, allow, reject}. Boundary cases can belong to a suite but do not define every suite.

Questions 3-4: error, fault, failure, and mutation testing

Question 3

Code
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.

Answer: C.

The requirement permits newCount <= 3. Misreading it as strictly below 3 is the human error; coding newCount < 3 creates the fault. For existingCount = 2 and add = 1, the expected ALLOW becomes REJECT: the failure. A fault remains dormant until activated; only the boundary value 3 reveals this one. See the wider software-quality model.

Question 4

Code
A fault-based testing technique is

A. Unit testing
B. Beta testing
C. Stress testing
D. Mutation testing

Answer: D.

Mutation testing makes small code changes to see whether tests detect them. For original age >= 18 and mutant age > 18, ages 17 and 19 behave identically; age 18 kills the mutant. Unit, beta and stress testing concern a level, audience or load, not deliberate fault injection.

Questions 5-8: verification versus validation without the slogan trap

Question 5, UGC NET 2015

Code
Verification:

A. refers to the set of activities that ensure that software correctly implements a specific function
B. answers the question - Are we building the product right
C. requires execution of software
D. Both A and B

Answer: D. Verification asks whether software correctly implements a specified function and whether the product is being built right. A describes conformance to a specified function, B gives the standard mnemonic, and C conflicts with verification's static-review emphasis.

Question 6

Code
For which of the following activities does one need to execute the product?

A. verification
B. validation
C. both
D. none

Answer: B. Use the practice hub linked earlier. In this classification, verification reviews whether artefacts conform; validation executes the product to test whether it meets the intended need. Real project activities need not fit one rigid lifecycle box.

Question 7

Code
What is the main difference between verification and validation in software testing?

A. Verification ensures that the software is bug-free, while validation ensures that it meets the requirements.
B. Verification is done before coding, while validation is done after coding.
C. Verification checks if the software is built right, while validation checks if the right software is built.
D. More than one of the above
E. None of the above

Answer: C. A promises the impossible: bug-free software. B is too narrow because requirements, designs and code can be verified. Thus only C holds.

Question 8

Code
According to Boehm, what are the definitions of verification and validation?

A. Verification: Is the software free of errors?
 Validation: Is the software commercially viable?
B. Verification: Is the software commercially viable?
 Validation: Is the software free of errors?
C. Verification: Are we building the product right?
 Validation: Are we building the right product?
D. Verification: Are we building the right product?
 Validation: Are we building the product right?

Answer: C. The standard pairing is “Are we building the product right?” for verification and “Are we building the right product?” for validation.

Apply Questions 5-8 to requirement R1: newCount <= 3. Verification compares it with code newCount < 3 and flags the mismatch without execution. Validation runs existingCount = 2, add = 1, obtains 3, and compares expected ALLOW with actual REJECT.

Verification compares the requirement and code; validation compares expected and actual results for the boundary case.

Questions 9-10: code inspection and static testing

Question 9

Code
Which one of the following assertions concerning code inspection and code walkthrough is true?

A. Code inspection is carried out once the code has been unit tested
B. Code inspection and code walkthrough are synonyms
C. Adherence to coding standards is checked during code inspection
D. Code walkthrough is usually carried out by an independent test team

Answer: C.

An inspection checklist can cover naming, control flow, boundaries, error handling and style. Comparing newCount < 3 with R1, newCount <= 3, finds the fault without execution. Inspection need not follow unit testing. A walkthrough is usually less formal and author-led, so it is neither a synonym nor normally owned by an independent test team.

Question 10

Code
Which testing approach checks software for defects without executing the code?

A. Static testing
B. Black Box
C. White Box
D. Performance Analysis testing

Answer: A.

Static testing compares newCount < 3 with the requirement without running code; a dynamic boundary test executes at 3. Black-box and white-box techniques can both involve execution, while performance analysis normally measures running behaviour. The decisive phrase is “without executing”.

Questions 11-12: fault simulation and the error-seeding estimate

Question 11

Code
Which of the following testing methods uses fault simulation technique?

A. unit testing
B. beta testing
C. stress testing
D. mutation testing

Answer: D.

Changing >= to > simulates a boundary fault. Only age = 18 distinguishes original from mutant; 17 and 19 leave it alive. Mutation checks whether tests catch small introduced faults. Error seeding uses introduced errors to estimate remaining native errors under an equal-detectability assumption.

Question 12

Code
A software was tested using the error seeding strategy in which 20 errors were seeded in the code. When the code was tested using the complete test suite, 16 of the seeded errors were detected. The same test suite also detected 200 non-seeded errors. What is the estimated number of undetected errors in the code after this testing?

A. 4
B. 50
C. 200
D. 250

Answer: B. Use the practice hub linked earlier.

Work from the seeded detection rate:

  1. Seeded detection rate = 16 / 20 = 0.80.

  2. Assume native errors are detected at the same rate: 200 / estimated total native errors = 0.80.

  3. Estimated total native errors before testing = 200 / 0.80 = 250.

  4. Estimated undetected native errors after testing = 250 - 200 = 50.

Second check: 20 seeded errors leave 4 undetected, an undetected-to-detected ratio of 4:16 = 1:4. Applied to 200 detected native errors, 200 / 4 = 50. A is the seeded remainder, C the native count detected, and D the estimated native total. The estimate assumes equal detectability.

Error-seeding flow estimates undetected errors from seeded detection rate and detected native errors.

Answer key, diagnostic traps, and the next practice step

Question

1

2

3

4

5

6

7

8

9

10

11

12

Answer

D

C

C

D

D

B

C

C

C

A

D

B

Remember: testing exposes errors; a suite contains test cases; an error can create a fault that causes failure; mutation introduces small faults; verification checks the product right; validation checks the right product; static review avoids execution; this seed estimate gives 50 undetected errors.

Below 9/12, redraw both diagrams and redo Questions 3, 5-8 and 12. Then use the NTA UGC NET Paper - 2 Test Series for timed practice. The Software Engineering for CS Teaching Exams guide expands from testing to SDLC and process models.