Enrol to start learning
Reading is open to everyone. Enrolling is free, and it is what unlocks the audio lessons, practice tests and progress tracking.
25.1. What is Unit Testing?
This section
Practice test
11 questions on this section. Wrong answers show you what to read again.
Sign up to take itWhole chapter
Revision test
Mixed questions from across the chapter. Your answers get marked.
Sign up to take itQuick
Flashcard drill
2 cards from this lesson. Good the night before a test.
Try these first
- 1.
What is Unit Testing?
Hint
Think about what exactly is being tested.
- 2.
Who generally performs Unit Testing?
Hint
Consider when in the development process testing happens.
- 3.
What is the main purpose of Unit Testing?
- To ensure the entire system is ready
- To verify individual parts work correctly
- To speed up development
Hint
Consider what aspect of the application is under scrutiny.
- 4.
Unit Testing is primarily performed by which role?
- True (Developers)
- False (QA Testers)
Hint
Think about who is involved during the initial coding.
- 5.
Create a Unit Test for a method that calculates the factorial of a number. Detail what cases you would test.
Hint
Consider both valid and invalid input cases.
- 6.
Discuss the consequences of not performing Unit Testing and how it could impact software quality.
Hint
Reflect on how early detection versus late detection of bugs affects resources.
Exercises
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
4 more questions available
Enrol freeQuiz
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
1 more question available
Enrol freeChallenge Problems
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting