STweek 3
STweek 3
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
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?
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.
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
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
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.
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
Eight du-pairs.
Nine du-pairs.
Ten du-pairs.
Eleven du-pairs.
10) How many unique du-paths are there for the variable z? 1 point
Four paths.
Five paths.
Six paths.
Seven paths.
https://onlinecourses.nptel.ac.in/noc24_cs91/unit?unit=30&assessment=215 4/4