Software Engineering · Question 12 · Hard
Software Engineering question 12
A function accepts an integer age that is valid from 18 to 60. Using equivalence class partitioning with one valid class and one invalid class on each side, what is the minimum number of test cases?
- 2
- 4
- 3
- 6
Answer and explanation
Answer: C. 3
Explanation: There are three partitions: below 18 (invalid), 18 to 60 (valid) and above 60 (invalid). One representative value from each gives 3 test cases.
Previous: Good software design aims for which combination of cohesion and coupling? · Next: What happens after running git reset --soft HEAD~1?
Practise software engineering
Try a fresh set of software engineering questions with an explanation after every answer, free and without signing up: Software Engineering practice. Or sit a full placement mock test.
More software engineering questions
- What distinguishes the Spiral model from other SDLC models?
- What is the difference between git fetch and git pull?
- Good software design aims for which combination of cohesion and coupling?
- What happens after running git reset --soft HEAD~1?
- When does git perform a fast-forward merge of branch feature into main?
- Which of the following is NOT one of the four value statements of the Agile…
- Testing carried out by the developer organisation's own staff at the…
- In software engineering, what does SRS stand for?
- In Scrum, what is the fixed-length, time-boxed iteration in which the team…
- Which git command adds changes from the working directory to the staging area…
More technical & programming practice
Cloud & DevOps · GenAI Basics · Pseudo-code · C Programming · Java · Python · Data Structures · Algorithms
LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge