Skip to content
CodeKruPro

Stub or driver: which do you need?

QuizMedium

The interest calculation module is finished. The loan screen that will call it is not built yet. You want to test the calculation module now. What do you need?

  • A driver that calls the calculation module with test inputs
  • A stub that replaces the calculation module
  • A stub that replaces the loan screen
  • Nothing: wait for the loan screen

This question is part of Pro+

Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.

See Pro+

Already have Pro+? Sign in