QUESTIONS WITH CORRECT ANSWERS LATEST UPDATE 2026
What is testability in software engineering? - Answers Testability refers to how easy or difficult it
is to verify the behavior of a system.
What are the two main aspects of testability? - Answers Observability and controllability.
What does observability mean in the context of testability? - Answers Observability is how easy
or difficult it is to observe the behavior of a system.
What does controllability mean in the context of testability? - Answers Controllability is how
easy or difficult it is to control the behavior of a system.
What is the purpose of using test doubles? - Answers Test doubles are used to avoid coupling
tests to unnecessary components and to simplify the testing process.
What is a dummy test double? - Answers A dummy is a test double used when an object is
needed but should not be used.
What is a stub test double? - Answers A stub is a test double used when an object is needed and
should be used, but we don't need it to do anything.
What is a spy test double? - Answers A spy is a test double used when an object is needed,
should be used, and we care how it was used.
What is a true mock test double? - Answers A true mock is similar to a spy but knows what is
expected and directly verifies expected behavior.
What is a fake test double? - Answers A fake is a test double that is needed, should be called,
and needs to provide some behavior.
What are the goals of testing in software engineering? - Answers To ensure reliable and robust
software.
What are the two main testing strategies? - Answers White box testing and black box testing.
What is unit testing? - Answers Unit testing is a software testing method by which individual
units of source code are tested.
What is Test-Driven Development (TDD)? - Answers TDD is a software development process
where requirements are turned into specific test cases before the software is fully developed.
What is code coverage? - Answers Code coverage is a measure used to describe the degree to
which the source code of a program is tested.