
Test Driven Development
Authored by Mohit Kanwar
Instructional Technology
Professional Development
Used 41+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the most basic type of developer level test?
Integration Test
Universal Test
Unit Test
Basic Test
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following does not help you write a unit test?
JUnit
Mockito
Lombok
PowerMock
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a desirable quality of "a unit test"?
Tests one property at one time
Fast
I/O or File Operations
Covering a small portion of code
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does @InjectMocks do?
Create an instance of test class
Create an instance of test class and inject any dependencies as Mocks
Inject Mocks in already created objects
None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following will help you identify unused dependencies in the code?
Unit Testing
Integration Testing
Static Code analysis
All of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is first stage of TDD?
Write Code
Write Test
Refactor
Execute Test
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the significance of writing a failing test?
We should not. We should focus on writing a test that passes
A failing test shows that some code change is required in our program. If it is not failing, no change required.
A failing test shows that the previous developer didn't do a good job.
A failing test gives you an opportunity to enhance code coverage
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?