This set of MCQ(multiple choice questions) focuses on the Software Testing NPTEL Week 3 Solutions.
Over the years program several testing techniques have developed and tools have become available. Also, testing has been acknowledged as the primary technique for ensuring software reliability. The course would provide a brief introduction to test process and techniques available for black box and white box test case design. Integration, system and regression testing would also be discussed. A few of the test tools would be discussed and the participants would be encouraged to use.
Course layout
Answers COMING SOON! Kindly Wait!
Week 1: Assignment answers
Week 2: Assignment answers
Week 3: Assignment answers
Week 4: Assignment answers
Week 5: Assignment answers
Week 6: Assignment answers
Week 7: Assignment answers
Week 8: Assignment answers
Week 9: Assignment answers
Week 10: Assignment answers
Week 11: Assignment answers
Week 12: Assignment answers
NOTE:Â You can check your answer immediately by clicking show answer button. Software Testing NPTEL 2023 Week 3 Assignment Solution” contains 10 questions.
Now, start attempting the quiz.
Software Testing NPTEL Week 3 Solutions
Q1. Which of the following types of program models is/are normally used to design the integration test plan in a software project deploying procedural development?
a) Control Flow graph (CFG)
b) Data Flow Diagram (DFD)
c) Structure chart
d) Entity Relationship Diagram (ERD)
e) Program dependency graph (PDG)
Answer: c)
Q2. For a given function, the computed McCabe’s Cyclometric complexity metric does not correlate with which of the following?
a) Number of errors existing in the function after unit testing is complete
b) Time required to find the location of an error after a failure
c) Number of lines of code (LOC)
d) Difficulty of understanding the function
e) Number of test cases required to achieve MC/DC
Answer: c)
Q3. Which of the following characterize the equivalent mutants?
a) Mutants which arise from the similar code changes
b) Mutants which fail with the same set of test cases
c) Mutants for which no test cases fail
d) Mutants for which all test cases fail
e) Mutatns for which number of test cases fail
Answer: b)
Q4. What would be the Cyclomatic complexity of the following function?
a) 2
b) 3
c) 4
d) 5
e) 6
Answer: a)
Q5. Which one of the following is the recommended integration testing strategy for a program having only three modules?
a) Top-down
b) Bottom-up
c) Mixed
d) Big-bang
e) Use-based
Answer: d)
Q6. If MC/DC coverge has been achieved on a unit under test, which of the following test coverage is/are implicitly implied?
a) Path coverage
b) Multiple condition coverage
c) Statement coverage
d) Condition/decision coverage
e) Data flow coverage
Answer: d)
Q7. For the following program statement, which of the following test suites would achieve basic condition/decision coverage?
a) (a=100, b=0), (a=0, b=100)
b) (a=20 b=10), (a=0, b=15)
c) (a=20, b=10), (a=0, b=15), (a=5, b=45)
d) (a=60, b=70), (a=0, b=35)
e) (a=60, b=20), (a=1, b=85)
Answer: e)
Q8. At least how many test cases are required to achieve modified condition/decision coverage (MC/DC) of the following code segment:
a) 2
b) 3
c) 4
d) 5
e) 6
Answer: c)
Q9. Why is the all path testing strategy rarely used in practice?
a) Too many test cases are required to be executed
b) Too weak a testing technique
c) it is subsumed by basis path testing
d) It is subsumed by statement coverage
e) It susumes statement coverage
Answer: a)
Q10. Which fo the following are true of the “competent programmer hypthesis”, as used in the mutation testing literature?
a) Mutants corresposnding to only simple programming bugs need to be generated as competent programmers make only simple mistakes
b) Mutants corresposnding to only unsual programming bugs need to be generated as competent programmers rarely make simple mistakes
c) Mutants corresposnding to complex algorithmic bugs need to be generated during mutation testing, when the developing team consists of competent programmers
d) Mutation testing can be meaningfully carried out only for programs developed by competent programmers
e) Mutation testing can be meaningfully carried out only for programs developed by rather novice and incompetent programmers
Answer: a)
<< Prev- Compiler Design NPTEL Week 2 Solutions
>> Next- Compiler Design NPTEL Week 4 Solutions
DISCLAIMER: Use these answers only for the reference purpose. Quizermania doesn't claim these answers to be 100% correct. So, make sure you submit your assignments on the basis of your knowledge.
For discussion about any question, join the below comment section. And get the solution of your query. Also, try to share your thoughts about the topics covered in this particular quiz.
Checkout for more NPTEL Courses: Click Here!