Principles of Software Testing - MCQs
1. E-Commerce software testing follows different approach than gaming software testing. Which testing principle implies this?a) Pareto principle
b) Testing is Context dependent
c) Testing shows presence of defects
d) Absence of errors-fallacy
View Answer / Hide AnswerANSWER: b) Testing is Context dependent
Comment: Different domain requires different testing approach. E-commerce website can emphasize more on security aspect while gaming testing requires more focus on graphics related testing.
2. When a cost to remove defect is not high?a) During requirement analysis
b) During designing
c) During coding
d) During testing
View Answer / Hide AnswerANSWER: a) During requirement analysis
Comment: If defects are fixed during requirement analysis , they will not be propagated to the next levels of development life-cycle. So cost will be low as lees rework is required to be done.
3. In software development life cycle , who is the best person to catch a defect? a) Software Tester
b) Customers
c) Designer
d) Business Analyst
e) Developer
View Answer / Hide AnswerANSWER: d) Business Analyst
Comment: The cost of defect increases across the life cycle. If business analyst catches a defect during requirement phase the cost to fix that defect will be less and rework cost is also negligible
4. Cost of the defect does not increase over the period of time. True or false.a) True
b) False
View Answer / Hide AnswerANSWER: b) False
Comment: Cost of the defect increases over the period of time as software development moves forward. The defects generated in previous phase will get propagated in next phase. During defect fixing activity one has to follow all the stages again , so cost of rework increases over the period of time.
5. Which of the following statement is true?a) Exhaustive testing is impossible but practicable
b) Exhaustive testing is possible but impracticable
c) Exhaustive testing is impossible and impracticable
d) Exhaustive testing is possible and practicable
View Answer / Hide AnswerANSWER: b) Exhaustive testing is possible but impracticable
Comment: Exhaustive testing is possible but impracticable because if we take example of 6 digit calculator with four basic functions , complete testing can be done in a year or two with lot of manpower but it's impracticable in terms of money spend and time required for testing.
6. Software tester focuses more on complex part of the software. Which of the following testing principle implies this?a) Testing shows presence of defects
b) Pesticide paradox
c) Testing is context dependent
d) Defect Clustering
View Answer / Hide AnswerANSWER: d) Defect Clustering
Comment: Defect clustering principle tells that a small number of module might contain large number of defects due to complexity of that part.
7. What is pesticide paradox?a) If the same tests are repeated over and over again , eventually the same set of test cases will no longer find any new bugs
b) A small number of modules contain most of the defects
c) Testing can show that defects are present , but can not prove that there are no defects
d) Finding and fixing defects does not help if the system built is unusable and does not fulfill the users need and expectations.
View Answer / Hide AnswerANSWER: a) If the same tests are repeated over and over again , eventually the same set of test cases will no longer find any new bugs
Comment:The phenomenon that the more you test software, the more immune it becomes to your tests. Same as one pesticide can not be used for longer period as insects develop resistance and become immune to it.
8.The defect cluster change over time. Which of the following testing principle implies this?a) Testing shows presence of defects
b) Pesticide paradox
c) Testing is context dependent
d) Defect Clustering
View Answer / Hide AnswerANSWER: b) Pesticide paradox
Comment: Tester can focus the same area in order to find more number of defects.
But after certain number of iterations of testing same set of test cases are unable to find more defects. So the test cases need to be regularly reviewed and revised.
9. If rigorous testing is done on software and no defects are detected , can we say the the software is 100% bug free?a) Yes
b) No
c) Depends on tester's skills
d) Insufficient data
View Answer / Hide AnswerANSWER: b) No
Comment: Testing reduces the probability of undiscovered defects remaining in software but, even if no defects are found , it is not a proof of correctness.
10. Finding and fixing error does not guarantee that user will accept the system. True or False.a) True
b) False
View Answer / Hide AnswerANSWER: a) True
Comment: If users needs and expectations are not fulfilled they might not accept the system even if it is rigorously tested and defects are removed.
11. Early defects area) Costly to find and difficult to fix
b) Cheap to find and difficult to fix
c) Costly to find and easy to fix
d) Cheap to find and easy to fix
View Answer / Hide AnswerANSWER: d) Cheap to find and easy to fix
Comment: Early defects are cheap to find and easy to fix as it requires less efforts in term of cost and time.
12. The customer is very cautious about quality of a product. He needs all combination of inputs and preconditions to be tested. Among using which of the testing principle tester should tell the customer that such kind of testing is not feasible?a) Absence of error fallacy
b) Defect clustering
c) Pesticide paradox
d) Exhaustive testing
View Answer / Hide AnswerANSWER: d) Exhaustive testing
Comment: Exhaustive testing is not feasible due to constraint of time and budget. It may cause risk of over testing a software
13. When testing principles are useful?a) During testing
b) During execution
c) During review
d) Throughout life-cycle
View Answer / Hide AnswerANSWER: d) Throughout life-cycle