THEORY EXAMINATION (SEM–VI) 2016-17 SOFTWARE TESTING
SOFTWARE TESTING (EIT062)
Section-wise Solved Answers & Notes
SECTION – A (10 × 2 = 20 Marks)
Short, precise answers
(a) Validation vs Verification
| Verification | Validation |
|---|---|
| Are we building the product right? | Are we building the right product? |
| Reviews, inspections | Testing & execution |
| Process-oriented | Product-oriented |
(b) Role of Review in Software Testing
Reviews help detect defects early, improve quality, reduce rework cost, and ensure compliance with requirements before testing begins.
(c) Factors responsible for requirement changes
• Changing customer needs • Market competition
• Technological changes • Poor initial requirement analysis
• Regulatory changes
(d) Levels of Testing
• Unit Testing • Integration Testing
• System Testing • Acceptance Testing
(e) Testing vs Debugging
| Testing | Debugging |
|---|---|
| Finds failures | Fixes defects |
| Performed by testers | Performed by developers |
| Error detection | Error correction |
(f) Mutation Testing
Mutation testing checks test suite effectiveness by making small changes (mutants) in code and seeing if tests detect them.
(g) Impracticality of testing all paths
Due to large number of possible execution paths, testing all paths is impossible for real-world programs.
(h) Significance of Navigation Testing
Ensures correct navigation between pages/screens, especially in web and GUI applications, improving usability.
(i) Use Case Diagram – Library Management System
Actors: • Librarian • Student
Use cases:
• Issue book • Return book
• Search book • Maintain records
(Neat diagram to be drawn in exam)
(j) Software Evolution
Software evolution refers to continuous modification of software after delivery to fix defects, adapt to changes, and add features.
SECTION – B (Attempt Any Five) (5 × 10 = 50 Marks)
(a) Regression Testing & Code Coverage Prioritization
Regression Testing:
Re-testing software after changes to ensure existing functionality is not broken.
Code coverage prioritization:
Test cases are prioritized based on maximum code coverage first.
Example:
Test cases covering more branches/functions are executed earlier.
(b) Object Oriented Testing & Issues
Testing process: • Testing classes
• Testing class interactions • Testing inheritance & polymorphism
Issues:
• Encapsulation hides data • Dynamic binding
• Inheritance complexity
(c) Risk Matrix
A risk matrix evaluates probability vs impact of risks.
Steps: Identify risks
Assign probability Assign impact
Categorize as high/medium/low priority
(d) State Chart Diagram A state chart diagram shows state changes of a system.
Stack example:
States: Empty → Not Empty Operations: push(), pop()
(Diagram to be drawn in exam)
(e) Static & Dynamic Testing Tools
Static testing tools:
• Code analyzers • Review tools
Dynamic testing tools:
• Unit testing tools (JUnit) • Performance tools (LoadRunner)
(f) SRS & SDD Document Verification
SRS verification checklist: • Completeness
• Consistency • Unambiguity
• Verifiability
SDD verification checklist: • Correct architecture
• Interface clarity • Design standards
(g) Test, Test Case, Test Suite & Test Oracle
• Test: Execution to find defects • Test case: Input + expected output
• Test suite: Collection of test cases • Test oracle: Determines correctness
Scenario: Login system validation.
(h) Cause–Effect Graphing Technique
Technique converts requirements into logical conditions.
Notations: • Cause (input condition)
• Effect (output condition) • Logical operators (AND, OR, NOT)
Example: ATM withdrawal rules.
SECTION – C (Attempt Any Two) (2 × 15 = 30 Marks)
Q3 (i) Activity Diagram Activity diagram shows flow of control.
Basic symbols:
• Initial node • Activity
• Decision node • Final node
Q3 (ii) Student Division Program
Conditions: • Avg < 50 → Fail
• 50 ≤ Avg < 60 → Second division • Avg ≥ 60 → First division
Functions:
• getdata() • validate()
• calculate()
Test cases:
| Avg Marks | Output |
|---|---|
| 45 | Fail |
| 55 | Second |
| 65 | First |
Cyclomatic complexity:
V(G)=Number of decision nodes+1V(G) = \text{Number of decision nodes} + 1V(G)=Number of decision nodes+1
Q4 Previous Date Program
Equivalence Classes
• Valid dates • Invalid dates
Boundary Value Analysis • Day = 1, 31
• Month = 1, 12 • Year = 1850, 2050
Robust Test Cases
Include invalid values (day = 0, 32)
Worst-Case Test Cases
All combinations of boundary values.
Q5 Short Notes
(i) Walkthrough
Informal review where author explains work to team.
(ii) Inspection
Formal review process with defined roles & checklists.
(iii) Configuration Audit
Ensures correct versions, changes, and documentation are maintained.
Related Notes
BASIC ELECTRICAL ENGINEERING
ENGINEERING PHYSICS THEORY EXAMINATION 2024-25
(SEM I) ENGINEERING CHEMISTRY THEORY EXAMINATION...
THEORY EXAMINATION 2024-25 ENGINEERING MATHEMATICS...
(SEM I) THEORY EXAMINATION 2024-25 ENGINEERING CHE...
(SEM I) THEORY EXAMINATION 2024-25 ENVIRONMENT AND...
Need more notes?
Return to the notes store to keep exploring curated study material.
Back to Notes StoreLatest Blog Posts
Best Home Tutors for Class 12 Science in Dwarka, Delhi
Top Universities in Chennai for Postgraduate Courses with Complete Guide
Best Home Tuition for Competitive Exams in Dwarka, Delhi
Best Online Tutors for Maths in Noida 2026
Best Coaching Centers for UPSC in Rajender Place, Delhi 2026
How to Apply for NEET in Gurugram, Haryana for 2026
Admission Process for BTech at NIT Warangal 2026
Best Home Tutors for JEE in Maharashtra 2026
Meet Our Exceptional Teachers
Discover passionate educators who inspire, motivate, and transform learning experiences with their expertise and dedication
Explore Tutors In Your Location
Discover expert tutors in popular areas across India
Discover Elite Educational Institutes
Connect with top-tier educational institutions offering world-class learning experiences, expert faculty, and innovative teaching methodologies