This set of JUnit Questions and Answers for Entrance Exams focuses on “Limitations of Standard Unit Testing”.
1. ___________ is favoured over conditionals to better write testable code.
a) Polymorphism
b) Composition
c) Inheritance
d) Overloading
View Answer
Explanation: More conditionals lead to more complex code.
2. _____________ is a programming practice that expects new code to be written only if an automated test has failed and also to eliminate duplication.
a) Object Oriented Testing
b) Test Driven Development
c) Acceptance Testing
d) Lossless Development
View Answer
Explanation: The goal of TDD is “clean code that works.”
3. API stands for _______________
a) Application programming interface
b) Application programming instruction
c) Android programming interface
d) Application performance interface
View Answer
Explanation: APIs are a set of functions and procedures that allow the creation of applications.
4. When the _________ is used as the method’s first client, it becomes easier to focus purely on the API.
a) Object
b) Class
c) Test
d) Stub
View Answer
Explanation: This is an advantage of test driven development.
5. Eliminating duplication ensures that code is written that’s not only testable but also
_____________
a) Erasable
b) Maintainable
c) Upgradeable
d) Changeable
View Answer
Explanation: Code maintenance is enhanced by the elimination of duplication.
6. ________ platform builds the application from its various components.
a) Development platform
b) Integration platform
c) Acceptance platform
d) Stress test platform
View Answer
Explanation: Integration platform ensures that all the components work together.
7. The ___________ platform is the last staging area before production.
a) Development platform
b) Integration platform
c) Acceptance platform
d) Pre-production platform
View Answer
Explanation: The pre-production platform is an optional platform before the production platform.
8. On the development platform, _________ unit tests are executed.
a) Acceptance
b) Lossless
c) Logic
d) Functional
View Answer
Explanation: These are tests that can be executed in isolation from the environment.
9. The _____________ exercises the application under load and verifies that it scales correctly.
a) Development platform
b) Integration platform
c) Acceptance platform
d) Stress test platform
View Answer
Explanation: The scaling is done with respect to size and response time.
10. User feedback is got from the ______________
a) Development platform
b) Integration platform
c) Acceptance platform
d) Stress test platform
View Answer
Explanation: The acceptance platform is where the project’s customers accept (sign off on) the system.
Sanfoundry Global Education & Learning Series – JUnit.
To practice all areas of JUnit for Entrance exams, here is complete set of 1000+ Multiple Choice Questions and Answers.
- Buy JUnit Books
- Apply for JUnit Internship
- Practice Programming MCQs
- Buy Programming Books
- Apply for Information Technology Internship