Software Engineering-I MCQs with Answers
Practice important Software Engineering-I MCQs with answers and explanations.
Chapter: 40
Q701:
Which benefit of unit testing is enhanced by defining diagnostics for program units?
A. Cost reduction
B. Internal diagnostics
C. User satisfaction
D. Regression testing
Correct Answer:
B
Chapter: 40
Q702:
Fill in the blank: Unit testing verifies ______ inputs against expected results.
A. Complex
B. Normal and boundary
C. Only boundary
D. Arbitrary
Correct Answer:
B
Chapter: 40
Q703:
The term "bounded" in unit testing refers to:
A. Infinite focus
B. Simplified defect location
C. Broad scope
D. Complex troubleshooting
Correct Answer:
B
Chapter: 40
Q704:
What aspect of unit testing makes it "cheaper"?
A. Find errors early
B. Limited number of cases
C. Reduced testing frequency
D. Exclusive to small projects
Correct Answer:
A
Chapter: 40
Q705:
When a defect is detected late in the maintenance phase, it is usually:
A. Easy to fix
B. Very expensive to fix
C. Ignored
D. Documented as a feature
Correct Answer:
B
Chapter: 40
Q706:
What percentage of defect removal efficiency is achieved by combining design inspection, QA, and testing?
A. 0.75
B. 0.85
C. 0.95
D. 0.999
Correct Answer:
C
Chapter: 40
Q707:
When writing a unit test, what is a boundary input test?
A. Maximum input only
B. Expected output
C. Extreme input values
D. Default input
Correct Answer:
C
Chapter: 40
Q708:
Which concept involves checking units independently within the code itself?
A. Contract enforcement
B. Internal diagnostics
C. Built-in self-testing
D. Design inspection
Correct Answer:
C
Chapter: 41
Q709:
What do inspections primarily check in software verification?
A. Program execution
B. Specification conformance
C. Non-functional characteristics
D. Performance
Correct Answer:
B
Chapter: 41
Q710:
Inspections can check for conformance with a ______.
A. user interface
B. code structure
C. customer’s real requirements
D. specification
Correct Answer:
D
Chapter: 41
Q711:
Which characteristic is NOT typically checked by inspections?
A. Performance
B. Usability
C. Security
D. Logical errors
Correct Answer:
A
Chapter: 41
Q712:
Inspections can be done before which phase?
A. Code implementation
B. Testing
C. Maintenance
D. Deployment
Correct Answer:
A
Chapter: 41
Q713:
For a program to undergo inspection, what is required?
A. High performance
B. Precise specification
C. Complex code structure
D. Customer feedback
Correct Answer:
B
Chapter: 41
Q714:
What is an example of a programming language-dependent defect?
A. Algorithm complexity
B. Data type choice
C. Variable initialization
D. Code readability
Correct Answer:
C
Chapter: 41
Q715:
Which tool processes source code to identify potential errors?
A. Test harness
B. Dynamic analyzer
C. Code inspector
D. Static analyzer
Correct Answer:
D
Chapter: 41
Q716:
Static analyzers primarily work with ______.
A. source text
B. compiled code
C. user interfaces
D. runtime data
Correct Answer:
A
Chapter: 41
Q717:
______ faults are checked to ensure that variables are initialized before usage.
A. Control
B. Storage management
C. Data
D. Interface
Correct Answer:
C
Chapter: 41
Q718:
Which of these faults relates to linked structures in a program?
A. Storage management faults
B. Input/Output faults
C. Interface faults
D. Control faults
Correct Answer:
A
Chapter: 41
Q719:
All input variables must be used in ______ faults.
A. Interface
B. Control
C. Storage management
D. Input/Output
Correct Answer:
D
Chapter: 41
Q720:
What should be done with dynamic storage when it’s no longer needed?
A. Retain it
B. Ignore it
C. De-allocate it
D. Re-assign it
Correct Answer:
C