Sail E0 Webinar

MCQs

Total Questions : 10
Question 1. The source code directories are used to calculate the ____________ of each class.
  1.    Data size
  2.    Lines of code
  3.    Cyclomatic code complexity
  4.    Mutant score
 Discuss Question
Answer: Option C. -> Cyclomatic code complexity


The cyclomatic code complexity is a metric to indicate the complexity of the code.


Question 2. White box testing is also known as ______________
  1.    Black box testing
  2.    Sand box testing
  3.    Closed testing
  4.    Glass box testing
 Discuss Question
Answer: Option D. -> Glass box testing


White box requires the internals to be known just as a glass box shows what is inside.


Question 3. A solution to reducing dependencies is to separate code between methods that instantiate new ____________ and methods that provide application logic.
  1.    Classes
  2.    Objects
  3.    Modules
  4.    Functions
 Discuss Question
Answer: Option B. -> Objects


Separation of objects and logic leads to reduced dependencies.


Question 4. The obvious drawback of a singleton is that it introduces _____________ into the application.
  1.    Redundancies
  2.    Errors
  3.    Global State
  4.    Modules
 Discuss Question
Answer: Option C. -> Global State


The global state object can be accessed by anyone.


Question 5. In a narrower sense, LCSAJ is also called ____________
  1.    JJ-Path
  2.    Code Coverage
  3.    System Code Analysis
  4.    Code Breakdown
 Discuss Question
Answer: Option A. -> JJ-Path


LCSAJ is now always referred to as a JJ-path.


Question 6. A ________________is a test that focuses on the interaction between components in their real environment.
  1.    Logic unit test
  2.    Integration unit test
  3.    Functional unit test
  4.    Acceptance unit test
 Discuss Question
Answer: Option B. -> Integration unit test


Integration unit testing is a type of unit testing which tests components in their real environment.


Question 7. The default value for the “datafile parameter is ____________
  1.    cobertura.ser
  2.    cobertura.dat
  3.    datafile.ser
  4.    cobertura.log
 Discuss Question
Answer: Option A. -> cobertura.ser


The file is created in the current directory.


Question 8. Cobertura is based on ____________
  1.    JUnit
  2.    XUnit
  3.    Maven
  4.    Jcoverage
 Discuss Question
Answer: Option D. -> Jcoverage


Jcoverage is an open source tool that allows to test the effectiveness of java tests.


Question 9. ______________ tests examine the code at the boundary of its public API.
  1.    Unit
  2.    Integration
  3.    Functional
  4.    Loss
 Discuss Question
Answer: Option C. -> Functional


This corresponds to testing application use cases.


Question 10. The test runs while a ___________ or EJB container hosts the application.
  1.    Objects
  2.    Classes
  3.    Servlet
  4.    Subsystems
 Discuss Question
Answer: Option C. -> Servlet


The servlet attaches to any other external resource or device


Latest Videos

Latest Test Papers