HomeSubjectsUniversityBlogAbout

Software Testing

Topic in Software Engineering

210 total MCQsShowing 30 with explanations10 Easy10 Medium10 Hard

About This Topic

Software testing is the process of executing a program with chosen inputs to find defects and gain confidence that it meets its specified requirements. Questions separate black-box techniques such as equivalence partitioning, boundary value analysis and decision table testing from white-box methods based on statement, branch and path coverage. Test levels (unit, integration, system, acceptance) and integration strategies using stubs and drivers are staples. Performance, load and stress testing, regression testing and the pesticide paradox are common. Advanced items mention mutation testing, property-based testing, model-based test generation and metamorphic testing, which helps when no reliable test oracle exists.

Below are 30 practice questions from a pool of 210 Software Testing MCQs, one of 16 topics in Software Engineering. Each shows the correct answer with an explanation; when you are ready, take a timed quiz to test recall under exam conditions.

Practice Questions

Each question below shows the correct answer with a full explanation. Use these to build conceptual understanding before attempting a timed quiz.

Software TestingEasy

Q1. What is software testing?

  1. A.Designing software system architecture diagrams as defined by standards
  2. B.The process of evaluating software to find defects and verify it meets requirements✓ Correct
  3. C.Writing application source code for new features and its related activities
  4. D.Deploying software to production server systems over the entire lifecycle

Explanation

Software testing identifies bugs and verifies that software meets requirements.

Report an error in this question

Software TestingEasy

Q2. What is black-box testing?

  1. A.Testing with a completely black display screen view
  2. B.Testing physical hardware system components only
  3. C.Testing software without knowledge of its internal code structure✓ Correct
  4. D.Testing in a completely dark room with no light

Explanation

Black-box testing evaluates functionality without examining internal code.

Report an error in this question

Software TestingEasy

Q3. What is acceptance testing?

  1. A.Testing to determine if the software meets user requirements and is ready for delivery✓ Correct
  2. B.Accepting all reported software bugs as features in the development process
  3. C.Testing performed by internal developers only ever within the project scope
  4. D.Testing document formatting and acceptance rules during the software lifecycle

Explanation

Acceptance testing verifies software meets user requirements.

Report an error in this question

Software TestingEasy

Q4. What is white-box testing?

  1. A.Testing with a completely white display screen view
  2. B.Testing software with knowledge of its internal code structure✓ Correct
  3. C.Testing comprehensive project documentation items
  4. D.Testing written on white paper documents and sheets

Explanation

White-box testing examines internal structure and logic.

Report an error in this question

Software TestingEasy

Q5. What is a bug in software?

  1. A.A recognized software design pattern and approach
  2. B.A new feature request from project stakeholders
  3. C.A defect or error in software that causes incorrect behavior✓ Correct
  4. D.An insect found inside a computer case housing

Explanation

A bug is a flaw that causes incorrect or unexpected results.

Report an error in this question

Software TestingEasy

Q6. What is a test case?

  1. A.A set of conditions and expected results for testing a specific aspect of software✓ Correct
  2. B.A specific type of source code module and library in all development efforts
  3. C.A suitcase for carrying test documents and files within the given constraints
  4. D.A legal court case and proceedings in a courtroom for all project stakeholders

Explanation

A test case specifies inputs, conditions, and expected results.

Report an error in this question

Software TestingEasy

Q7. What is integration testing?

  1. A.Testing documentation to achieve project objectives
  2. B.Testing in isolation and related components
  3. C.Testing the interaction between integrated components✓ Correct
  4. D.Unit testing by the project team members

Explanation

Integration testing verifies that components work correctly together.

Report an error in this question

Software TestingEasy

Q8. What is the purpose of a test plan?

  1. A.To outline the testing strategy, objectives, and schedule✓ Correct
  2. B.To design the user interface screen layout pages
  3. C.To deploy software to production server systems
  4. D.To write application source code for new modules

Explanation

A test plan documents testing strategy, objectives, and schedule.

Report an error in this question

Software TestingEasy

Q9. What is unit testing?

  1. A.Testing graphical user interface screens and flows
  2. B.Testing physical hardware units and device parts
  3. C.Testing the entire integrated system all at once
  4. D.Testing individual components or functions in isolation✓ Correct

Explanation

Unit testing tests individual components or functions in isolation.

Report an error in this question

Software TestingEasy

Q10. What is regression testing?

  1. A.Going backwards in the development lifecycle flow in the engineering discipline
  2. B.Testing the software for the very first time ever for effective project outcomes
  3. C.Testing the user registration feature flow only as part of the methodology
  4. D.Re-testing software after changes to ensure existing functionality still works✓ Correct

Explanation

Regression testing ensures existing functionality hasn't been broken by changes.

Report an error in this question

Software TestingMedium

Q11. What is boundary value analysis?

  1. A.A testing technique focusing on values at the edges of input ranges✓ Correct
  2. B.A software architecture design technique approach throughout the project
  3. C.Analyzing overall project scope boundary limits for the development team
  4. D.A source code implementation technique approach in the system context

Explanation

Boundary value analysis tests values at the boundaries where errors are most likely.

Report an error in this question

Software TestingMedium

Q12. What is equivalence partitioning?

  1. A.A creational object-oriented design pattern type for quality purposes
  2. B.Dividing input data into groups that should be treated the same by the software✓ Correct
  3. C.A source code implementation technique approach in practice typically
  4. D.Equal distribution of work across team members during implementation

Explanation

Equivalence partitioning divides input data into classes with the same expected behavior.

Report an error in this question

Software TestingMedium

Q13. What is system testing?

  1. A.Testing just the operating system installation only within the system boundary
  2. B.Testing only individual isolated code units first according to best practices
  3. C.Testing the complete integrated system to verify it meets requirements✓ Correct
  4. D.Testing physical hardware system components only by the development process

Explanation

System testing evaluates the complete integrated system.

Report an error in this question

Software TestingHard

Q14. What is fuzz testing?

  1. A.Testing using fuzzy logic-based algorithm systems for the project goals
  2. B.Providing random, invalid, or unexpected data as input to find vulnerabilities✓ Correct
  3. C.Testing audio and sound reproduction quality level within the system boundary
  4. D.Testing with fuzzy and blurred test image inputs according to best practices

Explanation

Fuzz testing provides random, malformed input to find vulnerabilities.

Report an error in this question

Software TestingMedium

Q15. What is alpha testing vs beta testing?

  1. A.Alpha is internal testing by developers; beta is external testing by end users✓ Correct
  2. B.Alpha testing is always done by external end users within the project scope
  3. C.The two types of testing are the same thing exactly in the development process
  4. D.Beta testing always comes before alpha testing does during the software lifecycle

Explanation

Alpha is internal; beta is external by end users.

Report an error in this question

Software TestingHard

Q16. What is the difference between structural and functional testing?

  1. A.Structural testing completely ignores the code base during implementation for quality purposes
  2. B.Functional testing examines internal code structure throughout the project in the system context
  3. C.Structural testing is based on internal code structure; functional testing is based on specifications✓ Correct
  4. D.The two approaches are fundamentally the same thing for the development team

Explanation

Structural is based on code structure; functional is based on specifications.

Report an error in this question

Software TestingHard

Q17. What is cyclomatic complexity and how does it relate to testing?

  1. A.A metric related to bicycle complexity and speed in practice typically as a standard approach
  2. B.A relational database complexity metric and score by the organization at every stage
  3. C.A code complexity metric that indicates the minimum number of test cases needed for full branch coverage✓ Correct
  4. D.A network topology complexity metric and rating across all phases in a systematic way

Explanation

Cyclomatic complexity indicates the minimum test cases needed for branch coverage.

Report an error in this question

Software TestingMedium

Q18. What is a test stub?

  1. A.A test case that has previously failed and broke and related components
  2. B.A very short and brief test case scenario only by the project team members
  3. C.A comprehensive test report and document summary to achieve project objectives
  4. D.A simplified implementation that provides predetermined responses during testing✓ Correct

Explanation

A test stub provides predetermined responses to isolate the unit under test.

Report an error in this question

Software TestingHard

Q19. What is mutation testing?

  1. A.Performing genetic and biological testing samples
  2. B.Testing software for computer virus threats only
  3. C.Introducing small changes to code to check if tests can detect them✓ Correct
  4. D.Testing for mutations in stored database data only

Explanation

Mutation testing introduces small changes to check if tests can detect them.

Report an error in this question

Software TestingMedium

Q20. What is test-driven development (TDD)?

  1. A.Writing tests before writing the code to make them pass✓ Correct
  2. B.Performing testing without any source code at all
  3. C.Performing all testing after coding is fully done
  4. D.Developing test plans and nothing else at all

Explanation

TDD writes tests first, then code to pass them, then refactors.

Report an error in this question

Software TestingMedium

Q21. What is a mock object?

  1. A.A specific type of database storage system type as part of the methodology
  2. B.A decorative object for the office workspace area for effective project outcomes
  3. C.A simulated object that mimics the behavior of real objects in a controlled way for testing✓ Correct
  4. D.A counterfeit fake commercial product item only in the engineering discipline

Explanation

A mock object simulates real object behavior for controlled testing.

Report an error in this question

Software TestingMedium

Q22. What is performance testing?

  1. A.Testing how the system performs under various conditions of load and stress✓ Correct
  2. B.Testing the overall user experience quality level over the entire lifecycle
  3. C.Testing overall source code quality metrics only and its related activities
  4. D.Testing application security vulnerabilities only as defined by standards

Explanation

Performance testing evaluates responsiveness and stability under various workloads.

Report an error in this question

Software TestingMedium

Q23. What is stress testing?

  1. A.Testing comprehensive project documentation files in all development efforts
  2. B.Testing the stress levels of developer team members for all project stakeholders
  3. C.Testing the system beyond normal operational capacity to find its breaking point✓ Correct
  4. D.Testing with easy and simple valid input data only within the given constraints

Explanation

Stress testing pushes the system beyond normal conditions to find its breaking point.

Report an error in this question

Software TestingHard

Q24. What is path testing?

  1. A.Testing all possible execution paths through the code✓ Correct
  2. B.Testing GPS navigation system paths and routes
  3. C.Testing operating system file paths and path names
  4. D.Testing network routing paths and protocol flows

Explanation

Path testing aims to exercise every possible execution path.

Report an error in this question

Software TestingMedium

Q25. What is the difference between verification and validation in testing?

  1. A.Verification is entirely optional in all practice in a systematic way for the project goals
  2. B.The two concepts are fundamentally the same thing as a standard approach by the organization
  3. C.Verification checks if the product is built right; validation checks if the right product is built✓ Correct
  4. D.Validation always occurs before verification process at every stage across all phases

Explanation

Verification: building it right; validation: building the right product.

Report an error in this question

Software TestingHard

Q26. What is model-based testing?

  1. A.Testing fashion model runway performance quality in the engineering discipline
  2. B.Generating test cases automatically from a model of the system's behavior✓ Correct
  3. C.Testing relational database data model structures for effective project outcomes
  4. D.Testing three-dimensional rendering model objects as part of the methodology

Explanation

Model-based testing generates test cases from a behavioral model.

Report an error in this question

Software TestingHard

Q27. What is property-based testing?

  1. A.Testing real estate management software systems by the development process
  2. B.Testing that specified properties or invariants hold for all valid inputs✓ Correct
  3. C.Testing CSS stylesheet property values and styles and its related activities
  4. D.Testing object property and getter method values over the entire lifecycle

Explanation

Property-based testing verifies that invariants hold across many generated inputs.

Report an error in this question

Software TestingHard

Q28. What is the pesticide paradox in software testing?

  1. A.Testing agricultural management software systems within the given constraints
  2. B.Running the same tests repeatedly will eventually stop finding new defects✓ Correct
  3. C.Using pesticides on actual computer bugs and pests as defined by standards
  4. D.A chemical testing methodology approach and method for all project stakeholders

Explanation

The pesticide paradox: repeated tests eventually stop finding new defects.

Report an error in this question

Software TestingHard

Q29. What is the difference between fault, error, and failure?

  1. A.The three concepts are fundamentally the same thing in all development efforts
  2. B.An error is always immediately visible to all users to achieve project objectives
  3. C.A fault is a defect in code; an error is an incorrect state; a failure is observable incorrect behavior✓ Correct
  4. D.A failure is what always causes a fault to happen by the project team members and related components

Explanation

Fault is a code defect; error is incorrect state; failure is observable incorrect behavior.

Report an error in this question

Software TestingHard

Q30. What is the concept of 'test coverage criteria'?

  1. A.The total file size of all test script source files
  2. B.Rules that define what aspects of the software must be tested✓ Correct
  3. C.The total number of testers on the project team
  4. D.Simply how many test scripts currently exist total

Explanation

Test coverage criteria define what aspects must be exercised by tests.

Report an error in this question

Ready to test yourself on Software Testing?

Take a timed quiz drawn from 210+ questions on this topic. No signup required — your progress saves in your browser.

Start Software Testing Quiz