Page 65 - SOFTWARE TESTING & QUALITY ASSURANCE
P. 65
Software Testing and Quality Assurance
4.6 Review Questions
1. Are Debugging and Dynamic white box testing one and the same? Discuss their similarities and
differences.
2. “Static white box testing is cost-effective.” Justify
3. “There is a big difference between inspections and the other types of reviews.” Substantiate.
4. Do you think that bugs could be caught through Formal reviews? How could we bring in code
efficiency through the different methods of Formal reviews?
5. “The umbrella approach testing is a combination of both bottom up and top down testing
approaches.” Do you believe Umbrella approach of integration testing is useful?
6. “In the data coverage method, the code is divided into data and states “ Explain
7. Justify the use of stubs and drivers in testing.
8. “Code coverage testing is a dynamic white box testing” Justify the same.
9. “White box testing has its disadvantages.” Do you agree?
10. “Condition coverage is a complicated path of testing.” Justify with an example.
11. Discuss the occurrence of errors in testing and the need for code review checklist.
12. Should coding standards and guidelines coexist during testing software? Justify.
13. Do you believe ‘Testing the pieces’ in software is advantageous?
14. Mention the importance of the four prominent areas of dynamic white box testing.
15. Given below is a java statement code in the correct and incorrect code. Write test cases that bring
out the mistakes of the code:
/Correct Code
class TestProg {
public static void main(String[ ] args)
{
int mark = 76;
char grade;
if (mark >= 90) {
grade = 'A';
} else if (mark >= 80) {
grade = 'B';
} else if (mark >= 70) {
grade = 'C';
} else if (mark >= 60) {
grade = 'D';
} else {
grade = 'F';
}
System.out.println("Your Grade is:" + grade);
}
}
//Incorrect Code
58 LOVELY PROFESSIONAL UNIVERSITY