Test Doubles interview questions

15 real Test Doubles questions from the Testing bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is Stub?

Junior
  1. A.a stand-in object that returns hardcoded canned responses to calls made during a check
  2. B.a programmable substitute pre-loaded with expectations about which calls it should receive, failing if they are not met
  3. C.a wrapper that records how a real or substitute object was called so the calls can be asserted afterward
  4. D.a working lightweight implementation, such as an in-memory database, used instead of the real one
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.Stub — a placeholder object passed only to fill a parameter list, never actually used by the code under examination
  2. B.Stub — a wrapper that records how a real or substitute object was called so the calls can be asserted afterward
  3. C.Stub — a programmable substitute pre-loaded with expectations about which calls it should receive, failing if they are not met
  4. D.Stub — a stand-in object that returns hardcoded canned responses to calls made during a check
Reveal the answer + AI explanation — free account

4. What is Mock?

Mid
  1. A.a placeholder object passed only to fill a parameter list, never actually used by the code under examination
  2. B.a working lightweight implementation, such as an in-memory database, used instead of the real one
  3. C.a programmable substitute pre-loaded with expectations about which calls it should receive, failing if they are not met
  4. D.a stand-in object that returns hardcoded canned responses to calls made during a check
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Mid
  1. A.Mock — a placeholder object passed only to fill a parameter list, never actually used by the code under examination
  2. B.Mock — a programmable substitute pre-loaded with expectations about which calls it should receive, failing if they are not met
  3. C.Mock — a working lightweight implementation, such as an in-memory database, used instead of the real one
  4. D.Mock — a wrapper that records how a real or substitute object was called so the calls can be asserted afterward
Reveal the answer + AI explanation — free account

7. What is Fake?

Mid
  1. A.a wrapper that records how a real or substitute object was called so the calls can be asserted afterward
  2. B.a programmable substitute pre-loaded with expectations about which calls it should receive, failing if they are not met
  3. C.a stand-in object that returns hardcoded canned responses to calls made during a check
  4. D.a working lightweight implementation, such as an in-memory database, used instead of the real one
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.Fake — a wrapper that records how a real or substitute object was called so the calls can be asserted afterward
  2. B.Fake — a stand-in object that returns hardcoded canned responses to calls made during a check
  3. C.Fake — a programmable substitute pre-loaded with expectations about which calls it should receive, failing if they are not met
  4. D.Fake — a working lightweight implementation, such as an in-memory database, used instead of the real one
Reveal the answer + AI explanation — free account

10. What is Spy?

Junior
  1. A.a placeholder object passed only to fill a parameter list, never actually used by the code under examination
  2. B.a wrapper that records how a real or substitute object was called so the calls can be asserted afterward
  3. C.a programmable substitute pre-loaded with expectations about which calls it should receive, failing if they are not met
  4. D.a stand-in object that returns hardcoded canned responses to calls made during a check
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Junior
  1. A.Spy — a placeholder object passed only to fill a parameter list, never actually used by the code under examination
  2. B.Spy — a wrapper that records how a real or substitute object was called so the calls can be asserted afterward
  3. C.Spy — a stand-in object that returns hardcoded canned responses to calls made during a check
  4. D.Spy — a working lightweight implementation, such as an in-memory database, used instead of the real one
Reveal the answer + AI explanation — free account

13. What is Dummy?

Junior
  1. A.a programmable substitute pre-loaded with expectations about which calls it should receive, failing if they are not met
  2. B.a placeholder object passed only to fill a parameter list, never actually used by the code under examination
  3. C.a working lightweight implementation, such as an in-memory database, used instead of the real one
  4. D.a wrapper that records how a real or substitute object was called so the calls can be asserted afterward
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Junior
  1. A.Dummy — a placeholder object passed only to fill a parameter list, never actually used by the code under examination
  2. B.Dummy — a working lightweight implementation, such as an in-memory database, used instead of the real one
  3. C.Dummy — a stand-in object that returns hardcoded canned responses to calls made during a check
  4. D.Dummy — a wrapper that records how a real or substitute object was called so the calls can be asserted afterward
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Test Doubles free