NPTEL Software Testing Week 2 Assignment Answers 2024

Join Our WhatsApp Group Join Now
Join Us On Telegram Join Now

NPTEL Software Testing Week 2 Assignment Answers 2024

1. Which of the following are not black box testing techniques?

a. Boundary value testing
b. Cause-effect graph testing
c. Path testing
d. Combinatorial testing
e. Basic Condition testing

Answer :-  For Answer Click Here

2. Assume you have developed a simple web-based calculator. The user interface has 3 input fields:
Operand1, Operator, and Operand2. The user can give 9 valid inputs: {1, 2, …, 9} for Operand1 and also for
Operand2. The user can enter four valid inputs for Operator: {+, -, *, /}. How many test cases would
exhaustive functional testing require?

а. 3
b. 12
c. 22
d. 256
e. 324

Answer :-  For Answer Click Here

3. Which of the following are false about white-box testing?

a. Test cases are designed using only functional specification of the software:
b. Test cases are designed without any knowledge of the internal structure of the
software.
c. White-box testing is also known as structural testing.
d. Test case design requires a knowledge of the internal structure of the unit under
test
e. White-box tests can detect trojans in the code
f. White-box testing can be used to detect if a software meets all its functional
requirements

Answer :-  For Answer Click Here

4. Assume that a function test takes three parameters x, y, and z as arguments. Each of these three
parameters can assume values in the range -100 to +100. How many boundary value test cases with valid
values should be designed?

a. 7
b. 9
c. 11
d. 13
e. 17

Answer :- 

5. Consider the function find- intersection(float m1, float c1, float m2, float c2) that computes the
point of intersection of two straight lines of the form y=mx+c. For equivalence class testing, at the first
level of the equivalent class hierarchy the valid and invalid equivalence classes can be formed. The valid set
of input values can be further divided into how many equivalence classes?

a. 1
b. 2
C. 3
d. 4
e. 6

Answer :- 

6. Which of the following are not combinatorial testing techniques?

a. Decision table-based testing
b. Condition-coverage testing
c. Cause-effect graphing
d. Pair-wise testing
e. Path testing

Answer :-  For Answer Click Here

7. Which one of the following is an implicit assumption made in equivalence class testing?

a. A program behaves in similar ways to every input value belonging to an equivalence class.
b. Different equivalence classes of a program contain similar bugs
c. Different equivalence classes of a program behave similarly to an input
d. Equivalence classes define the behaviorally similar components of a program
e. Equivalence classes help identify program functions that can be considered to be behaviorally similar

Answer :- 

8.

NPTEL Software Testing Week 2 Assignment Answers 2024
Answer :- 

9. Which one of the following techniques is not used to identify the equivalence classes of a unit?

a. Identity scenarios
b. Examine the input data.
c. Analyze program structure
d. Examine output
e. Develop cause-effect model of the program

Answer :- 

10. Suppose a function named try takes two Boolean variables as input. At least how many valid equivalence
classes needs to be designed for the black-box testing of the function try?
a. 2
b. 4
c. 6
d. 8
e. 10

Answer :- For Answer Click Here