Sail E0 Webinar

MCQs

Total Questions : 9
Question 1. The most important point to consider when writing a mock is that it shouldn't have any __________.
  1.    Redundancy
  2.    Abstraction
  3.    Matchers
  4.    Business Logic
 Discuss Question
Answer: Option D. -> Business Logic


Mocks must be a dumb object that does only what the test tells it to do.


Question 2. _______________ is a Java HTTP (Web) server and Java Servlet container.
  1.    Maven
  2.    Ant
  3.    Jetty
  4.    Zimbra
 Discuss Question
Answer: Option C. -> Jetty


Jetty is often used for machine to machine communications, usually within larger software frameworks.


Question 3. On the development platform, _________ unit tests are executed.
  1.    Acceptance
  2.    Lossless
  3.    Logic
  4.    Functional
 Discuss Question
Answer: Option C. -> Logic


These are tests that can be executed in isolation from the environment.


Question 4. In Jetty, ____________ object processes the HTTP requests.
  1.    Server
  2.    Context
  3.    Root
  4.    Handler
 Discuss Question
Answer: Option B. -> Context


Context object processes the HTTP requests and passes them to various handlers.


Question 5. The ___________ is a software design pattern that allows the interface of an existing class to be used as another interface.
  1.    Adapter Pattern
  2.    Bridge Pattern
  3.    Decorator Pattern
  4.    Composite Pattern
 Discuss Question
Answer: Option A. -> Adapter Pattern


The Adapter design pattern allows otherwise incompatible classes to perform together by the conversion of the interface of one class into an interface expected by the clients.


Question 6. The ___________ platform is the last staging area before production.
  1.    Development platform
  2.    Integration platform
  3.    Acceptance platform
  4.    Pre-production platform
 Discuss Question
Answer: Option D. -> Pre-production platform


The pre-production platform is an optional platform before the production platform.


Question 7. Eliminating duplication ensures that code is written that's not only testable but also _____________
  1.    Erasable
  2.    Maintainable
  3.    Upgradeable
  4.    Changeable
 Discuss Question
Answer: Option B. -> Maintainable


Code maintenance is enhanced by the elimination of duplication.


Question 8. A build or developer usually executes tests involving stubs in their _________ environment.
  1.    Dead
  2.    Running
  3.    Production
  4.    Fake
 Discuss Question
Answer: Option B. -> Running


Executing in the running environment provides additional confidence.


Question 9. _____________ is a software testing technique that is useful to help in the generation of test data.
  1.    Symbolic Execution
  2.    Stubs
  3.    Active testing
  4.    All-pairs testing
 Discuss Question
Answer: Option A. -> Symbolic Execution


Symbolic Execution is used in proving the program quality.


Latest Videos

Latest Test Papers