Home / CSE MCQs / JUnit MCQs :: JUnit In-container Testing

CSE MCQs :: JUnit MCQs

  1. The most important point to consider when writing a mock is that it shouldn't have any __________.
  2. A.
    Redundancy
    B.
    Abstraction
    C.
    Matchers
    D.
    Business Logic

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. The ___________ is a software design pattern that allows the interface of an existing class to be used as another interface.
  4. A.
    Adapter Pattern
    B.
    Bridge Pattern
    C.
    Decorator Pattern
    D.
    Composite Pattern

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. _______________ is a Java HTTP (Web) server and Java Servlet container.
  6. A.
    Maven
    B.
    Ant
    C.
    Jetty
    D.
    Zimbra

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. In Jetty, ____________ object processes the HTTP requests.
  8. A.
    Server
    B.
    Context
    C.
    Root
    D.
    Handler

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. On the development platform, _________ unit tests are executed.
  10. A.
    Acceptance
    B.
    Lossless
    C.
    Logic
    D.
    Functional

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. The ___________ platform is the last staging area before production.
  12. A.
    Development platform
    B.
    Integration platform
    C.
    Acceptance platform
    D.
    Pre-production platform

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Eliminating duplication ensures that code is written that's not only testable but also _____________
  14. A.
    Erasable
    B.
    Maintainable
    C.
    Upgradeable
    D.
    Changeable

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. A build or developer usually executes tests involving stubs in their _________ environment.
  16. A.
    Dead
    B.
    Running
    C.
    Production
    D.
    Fake

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. _____________ is a software testing technique that is useful to help in the generation of test data.
  18. A.
    Symbolic Execution
    B.
    Stubs
    C.
    Active testing
    D.
    All-pairs testing

    View Answer

    Workspace

    Discuss Discuss in Forum