Software Testing Week 6 NPTEL Assignment Answers 2025

Need help with this week’s assignment? Get detailed and trusted solutions for Software Testing Week 6 NPTEL Assignment Answers. Our expert-curated answers help you solve your assignments faster while deepening your conceptual clarity.

✅ Subject: Software Testing
📅 Week: 6
🎯 Session: NPTEL 2025 July-October
🔗 Course Link: Click Here
🔍 Reliability: Verified and expert-reviewed answers
📌 Trusted By: 5000+ Students

For complete and in-depth solutions to all weekly assignments, check out 👉 NPTEL Software Testing Week 6 NPTEL Assignment Answers

🚀 Stay ahead in your NPTEL journey with fresh, updated solutions every week!

NPTEL Software Testing Week 6 Assignment Answers 2025

1. While applying logic-based testing to test source code, is it true that the predicates can be taken exactly as they occur in code always?

  • Yes, the predicates can be considered exactly as they occur in code.
  • No, some times we have to add extra clauses to the predicate
Answer : See Answers

2. How do logical predicates occur in finite state machines?

  • The logical predicates occur as a part of the states of the finite state machines.
  • The logical predicates occur as guards in the transitions of the finite state machines.
Answer :

3. In a requirements specification document, where do logical predicates occur?

  • They occur directly as a part of the requirements.
  • They occur as pre-conditions, invariants and post-conditions in the requirements.
  • All the conditions in requirements can be translated into predicates.
  • Logical predicates cannot be found in requirements.
Answer :

Answer the following questions for the method twoPred() below.
The method is called with two input parameters x and y.

public String twoPred (int x, int y)
{
boolean z;
if (x < y)
z = true;
else
z = false;
if (z && x+y == 10)
return z;
else
return z-1;
}

4. State true or false: The internal variable z in the second predicate needs to be re-written in terms of the input parameters x and y.

  • True
  • False
Answer :

5. Is it true that predicate coverage for the first predicate will also subsume predicate coverage for the second predicate?

  • True
  • False
Answer :

6. How many test cases will be needed for clause coverage for the second predicate if we explicitly count the true and false values for each clause?

  • Two test cases.
  • Four test cases
Answer : See Answers

7. State true or false: The set of test case inputs {(x=5,y=3),(x=4,y=6),(x=5,y=6)} will satisfy clause coverage for the second predicate.

  • True
  • False
Answer :

8. State yes or no: The set of test case inputs {(x=5,y=3),(x=4,y=6),(x=5,y=6)} will also satisfy predicate coverage for the first and second predicates.

  • Yes
  • No
Answer :

9. How many test cases are needed for satisfying RACC for all the clauses for the second predicate?

  • Only one test case
  • Two test cases
  • Three test cases
  • Five test cases
Answer :

10. State true or false: The set of test case inputs {(x=4,y=6),(x=6,y=4),(x=4,y=5)} satisfy RACC for the second predicate.

  • True
  • False
Answer :  See Answers