HITEC University Taxila
Department of Computer Science (BS Computer Science Program)
Assignment # 2B
Software Quality Assurance
th
BS (CS)-6 Semester Total Marks: 10
Target C-O (C-2) Due Date: 21th April 2025.
Note: Hand-Written Hard Copy has to be submitted on the said date at my office and Soft-Copy must be
uploaded at Google-Classroom platform.
Q-1: Defect Removal Efficiency (DRE) is a measure of the efficiency of the software testing
process in finding defects before and after the software is released, which is calculated as:
Marks [1.5 x 4 = 6 ]
DRE = E / (E + D) * 100
Where:
E = The number of defects found before release of the software
D = The number of defects found after release of the software
For example: if before the deployment to the client we find overall 80 defects and after the
deployment the client finds 12 defects, we would have:
E = 80 and D = 12
Assume a Product-Base company produce 4 software products:
Product-1 has : E = 120 and D = 40
Product-2 has : E = 20 and D= 0
Product-3 has : E = 12 and D = 15
Product-4 has : E = 10 and D = 50
Calculate the DRE% for each product.
Hint: Read slides (30, 31, 32 and 33) of Lecture-8-9 uploaded on google_classroom
Q-2: List down the following using the given code: Marks: [2+2=4]
a. Lines of Code-LOC
b. Length of Identifiers
Hint: Read slides (7 and 8 ) of Lecture-8-9 uploaded on google_classroom