0% found this document useful (0 votes)
39 views4 pages

STweek 3

The document outlines the details of Week 3's assignment for the Software Testing course on NPTEL, including submission deadlines and assignment questions. It includes true/false questions and multiple-choice questions related to control flow graphs, data flow graphs, and coverage criteria. The document also provides feedback on the correctness of answers submitted by students.

Uploaded by

minayom690
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views4 pages

STweek 3

The document outlines the details of Week 3's assignment for the Software Testing course on NPTEL, including submission deadlines and assignment questions. It includes true/false questions and multiple-choice questions related to control flow graphs, data flow graphs, and coverage criteria. The document also provides feedback on the correctness of answers submitted by students.

Uploaded by

minayom690
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

25/10/2024, 10:00 Software Testing - - Unit 6 - Week 3

(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)

[email protected]

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Software Testing (course)

Course Week 3 : Assignment 3


outline The due date for submitting this assignment has passed.
Due on 2024-08-14, 23:59 IST.
About
NPTEL ()
Assignment submitted on 2024-08-14, 21:55 IST
How does an 1) State true or false: The control flow graph fragments for loops like while, for etc., 1 point
NPTEL can vary slightly and this is acceptable as long as the control flow is captured correctly.
online
course True.
work? () False.

Yes, the answer is correct.


Week 0 () Score: 1
Accepted Answers:
Week 1 () True.

Week 2 () 2) A node or a set of nodes that in a particular control flow graph that cannot be 1 point
reached through DFS or BFS represents which kind of statements in the corresponding
Week 3 () program source code?

Lecture 10 - These node(s) represent statements that are incorrect.


Assignment 2:
Structural
These node(s) represent statements that are not reachable by any input.
Coverage These node(s) represent statements that are reachable only by inputs that are wrong or
Criteria (unit? out of range.
unit=30&lesso
These node(s) represent statements that will not contribute to generating outputs when
n=31)
the program is executed.
Lecture 11 -
Yes, the answer is correct.
Data Flow Score: 1
Graphs (unit?
Accepted Answers:
unit=30&lesso
These node(s) represent statements that are not reachable by any input.
n=32)

https://onlinecourses.nptel.ac.in/noc24_cs91/unit?unit=30&assessment=215 1/4
25/10/2024, 10:00 Software Testing - - Unit 6 - Week 3

Lecture 12 - 3) Given a piece of source code, what is the information about the data that is 1 point
Algorithms: captured in a data flow graph corresponding the code?
Data Flow
Graph A data flow graph tracks information about how a value of a variable changes.
Coverage A data flow graph captures information about how a variable gets defined, in the sense,
Criteria (unit? the kind of statement that defines a variable.
unit=30&lesso
n=33)
A data flow graph captures information about the statements that define a value for a
variable and statements that use the defined value of a variable.
Lecture 13 -
A data flow graph tracks the change of data from the statements where the variables are
Graph
defined to the statements where the variables are used.
Coverage
Criteria: Yes, the answer is correct.
Applied to Test Score: 1
Code (unit? Accepted Answers:
unit=30&lesso A data flow graph captures information about the statements that define a value for a variable
n=34) and statements that use the defined value of a variable.

Lecture 14 -
Testing Source 4) Which of the following represents a correct order of subsumption exclusively 1 point
Code: amongst data flow coverage criteria? In the options below, read → as ‘subsumes’.
Classical
Coverage
All-defs coverage → All-du-paths coverage → All-uses coverage.
Criteria (unit?
unit=30&lesso
n=35)
All-defs coverage → All-uses-coverage → All-du-paths coverage.

Practice: All-du-paths coverage → All-defs coverage → All-uses-coverage.


Week 3 :
Assignment 3 All-du-paths coverage → All-uses coverage → All-defs-coverage.
(Non graded)
(assessment? No, the answer is incorrect.
name=202)
Score: 0
Accepted Answers:
Quiz: Week 3 All-du-paths coverage → All-uses coverage → All-defs-coverage.
: Assignment
3 5) Considering the coverage criteria on both control flow graphs and data flow 1 point
(assessment?
graphs, which of the following represents a correct order of subsumption amongst the
name=215)
mentioned criteria? Again, read → as ‘subsumes’.
Week 3
Feedback
Prime paths coverage → All-du-paths coverage.
Form:
Software
Testing (IIITB) All-du-paths coverage → Prime paths coverage.
(unit? Since one kind of criteria are on control flow only and the other on data flow only, the
unit=30&lesso two cannot be compared.
n=175)
None of the control flow coverage criteria subsumes any of the data flow coverage
Week 4 () criteria.

No, the answer is incorrect.


Week 5 () Score: 0
Accepted Answers:
Prime paths coverage → All-du-paths coverage.
Week 6 ()

Week 7 ()

https://onlinecourses.nptel.ac.in/noc24_cs91/unit?unit=30&assessment=215 2/4
25/10/2024, 10:00 Software Testing - - Unit 6 - Week 3

6) List all the nodes where the variable z is defined 1 point


Week 8 ()

Week 9 ()

Week 10 ()

Week 11 ()

Week 12 ()

DOWNLOAD
VIDEOS ()

Text
Transcripts ()

Live
sessions ()

Books ()

Node 6 only.
Nodes 3, 4 and 6 only.
Nodes 3, 4, 5 and 6 only.
Nodes 2, 3, 4, 5 and 6 only

No, the answer is incorrect.


Score: 0
Accepted Answers:
Nodes 3, 4 and 6 only.

7) Which of the statements below are correct regarding the definitions and uses of the 1 point
variables x and y?

The nodes that define the variables x and y are the same.
The nodes that define and use the variables x and y are the same.
The nodes and edges that define the variables x and y are the same.
The nodes and edges that define and use the variables x and y are the same.

No, the answer is incorrect.


Score: 0
Accepted Answers:
The nodes that define the variables x and y are the same.

8) State yes or no: The use of the variables at the edges (2, 3) and (2, 4) are the same 1 point
as the use of the variables at the nodes 3 and 4.

Yes.
No.

https://onlinecourses.nptel.ac.in/noc24_cs91/unit?unit=30&assessment=215 3/4
25/10/2024, 10:00 Software Testing - - Unit 6 - Week 3

Yes, the answer is correct.


Score: 1
Accepted Answers:
No.

9) How many du-pairs are there for the variable z? 1 point

Eight du-pairs.
Nine du-pairs.
Ten du-pairs.
Eleven du-pairs.

Yes, the answer is correct.


Score: 1
Accepted Answers:
Nine du-pairs.

10) How many unique du-paths are there for the variable z? 1 point

Four paths.
Five paths.
Six paths.
Seven paths.

No, the answer is incorrect.


Score: 0
Accepted Answers:
Five paths.

https://onlinecourses.nptel.ac.in/noc24_cs91/unit?unit=30&assessment=215 4/4

You might also like