Skip to main content

Software Engineering-I MCQs with Answers

Practice important Software Engineering-I MCQs with answers and explanations.

Chapter: 39
Q681:
The cyclomatic complexity formula is represented as ______.
A. V(G) = E - N + 2
B. V(G) = E + N - 2
C. V(G) = 2E - N
D. V(G) = E / N + 2
Correct Answer: A
Chapter: 39
Q682:
In the white box testing example, which path is infeasible?
A. 1-2-3-4-5
B. 1-3-4-1-5
C. 45297
D. 1-2-4-5-6
Correct Answer: A
Chapter: 39
Q683:
In the modified code segment, what is minimized?
A. Cyclomatic complexity
B. Test cases
C. Infeasible paths
D. Code length
Correct Answer: C
Chapter: 39
Q684:
In path coverage, how many paths are possible when N=2 in the looped example?
A. 2
B. 3
C. 4
D. 5
Correct Answer: C
Chapter: 39
Q685:
Which of the following test cases corresponds to branch coverage in the code example?
A. if a=1, b=1; execute stmt 2
B. if a=2, b=3; execute stmt 5
C. a==b then stmt 2
D. Loop iteration N=0
Correct Answer: A
Chapter: 39
Q686:
How does cyclomatic complexity help in white box testing?
A. Measures code efficiency
B. Identifies all paths
C. Reduces code complexity
D. Measures test case count
Correct Answer: D
Chapter: 39
Q687:
What is the maximum number of independent paths in a program if the cyclomatic complexity is 4?
A. 2
B. 3
C. 4
D. 5
Correct Answer: C
Chapter: 39
Q688:
Which type of testing checks both statements and branches in the code?
A. Black box
B. White box
C. Gray box
D. Unit testing
Correct Answer: B
Chapter: 40
Q689:
What does unit testing focus on in software development?
A. Integration of modules
B. Testing entire system
C. Testing individual units
D. Final product testing
Correct Answer: C
Chapter: 40
Q690:
In unit testing, what kind of environment is typically created?
A. Natural environment
B. Regression testing
C. Real-life environment
D. Artificial environment
Correct Answer: D
Chapter: 40
Q691:
Which of the following describes "repeatable" as a benefit of unit testing?
A. Testing once
B. Testing API
C. Verifying modifications
D. Changing environment
Correct Answer: C
Chapter: 40
Q692:
What concept ensures that a unit meets its specified behavior?
A. Inspection
B. Contract
C. Regression testing
D. Design inspection
Correct Answer: B
Chapter: 40
Q693:
In unit testing, a negative argument for a square root function would be tested to check for:
A. Acceptance
B. Rejection
C. Pass/fail boundary
D. Correctness
Correct Answer: B
Chapter: 40
Q694:
Unit tests are best kept in which location for small projects?
A. Module itself
B. External server
C. Package directory
D. Documentation
Correct Answer: A
Chapter: 40
Q695:
Which quality assurance method achieves the highest defect removal efficiency when combined with others?
A. Code inspection
B. Quality assurance only
C. Design inspection and testing
D. Testing alone
Correct Answer: C
Chapter: 40
Q696:
The chaotic zone in defect management is formed when:
A. Requirements are changed
B. Defects pile up
C. Code is perfect
D. Testing is skipped
Correct Answer: B
Chapter: 40
Q697:
According to the concept of defect origination, defects are ideally fixed:
A. After product launch
B. During testing
C. Near their origin
D. During maintenance
Correct Answer: C
Chapter: 40
Q698:
The efficiency of defect removal through only testing is approximately:
A. 0.45
B. 0.53
C. 0.6
D. 0.95
Correct Answer: B
Chapter: 40
Q699:
What does the “contract for square root routine” example help test?
A. Result is zero
B. Negative argument rejection
C. Max argument verification
D. Minimum value assertion
Correct Answer: B
Chapter: 40
Q700:
Why is defect detection important in early development stages?
A. Prevents errors in design only
B. It is more efficient
C. Reduces quality
D. Limits documentation issues
Correct Answer: B

Test Your Knowledge

Take a timed quiz on Software Engineering-I

🚀 Start Quiz Now