Software Engineering · Software Engineering and Web Technology
56 questions · asked in 11 of 27 years (2000–2026)
MCQ 53 · NAT 31-mark 42 · 2-mark 14
2000Questions per year2026
Questions 21–25 of 56
The cyclomatic complexity of each of the modules A and B shown below is 10. What is the cyclomatic complexity of the sequential integration shown on the right hand side?
Answer: (A)
Use the formula V = E N + 2. Module A and module B are joined by one edge from the exit of A to the entry of B. This gives edges = and nodes = .
So V = 10 + 10 1 = 19
Answer: 19
So V = 10 + 10 1 = 19
Answer: 19
Consider the following statements about the cyclomatic complexity of the control flow graph of a program module. Which of these are TRUE?
I. The cyclomatic complexity of a module is equal to the maximum number of linearly independent circuits in the graph.
II. The cyclomatic complexity of a module is the number of decisions in the module plus one, where a decision is effectively any conditional statement in the module.
III. The cyclomatic complexity can also be used as a number of linearly independent paths that should be tested during path coverage testing.
I. The cyclomatic complexity of a module is equal to the maximum number of linearly independent circuits in the graph.
II. The cyclomatic complexity of a module is the number of decisions in the module plus one, where a decision is effectively any conditional statement in the module.
III. The cyclomatic complexity can also be used as a number of linearly independent paths that should be tested during path coverage testing.
Answer: (B)
For a control flow graph with E edges, N nodes and one connected component, McCabe's cyclomatic complexity is .
I is false. For the flow graph as it is, the number of linearly independent circuits is , not . equals the number of independent circuits only after an extra edge from the exit node back to the entry node is added to the graph, and that edge is not part of the flow graph itself.
II is true. For structured code, equals the number of decisions (conditional statements) plus one.
III is true. is the number of linearly independent paths through the module, so it is the number of test paths needed in basis path testing.
So II and III are true.
Answer: (B)
I is false. For the flow graph as it is, the number of linearly independent circuits is , not . equals the number of independent circuits only after an extra edge from the exit node back to the entry node is added to the graph, and that edge is not part of the flow graph itself.
II is true. For structured code, equals the number of decisions (conditional statements) plus one.
III is true. is the number of linearly independent paths through the module, so it is the number of test paths needed in basis path testing.
So II and III are true.
Answer: (B)
Which of the following statements are TRUE?
I. The context diagram should depict the system as a single bubble.
II. External entities should be identified clearly at all levels of DFDs.
III. Control information should not be represented in a DFD.
IV. A data store can be connected either to another data store or to an external entity.
I. The context diagram should depict the system as a single bubble.
II. External entities should be identified clearly at all levels of DFDs.
III. Control information should not be represented in a DFD.
IV. A data store can be connected either to another data store or to an external entity.
Answer: (C)
Check each statement:
I is true. The context diagram (level 0) shows the whole system as one bubble.
II is false. External entities are shown only in the context diagram; the lower-level DFDs do not repeat them.
III is true. A DFD shows only data flow. It does not show control information such as the order of steps or decisions.
IV is false. A data store is connected only to processes. Data does not move straight between two data stores or between a data store and an external entity.
Only I and III are true.
Answer: (C)
I is true. The context diagram (level 0) shows the whole system as one bubble.
II is false. External entities are shown only in the context diagram; the lower-level DFDs do not repeat them.
III is true. A DFD shows only data flow. It does not show control information such as the order of steps or decisions.
IV is false. A data store is connected only to processes. Data does not move straight between two data stores or between a data store and an external entity.
Only I and III are true.
Answer: (C)
The coupling between different modules of a software is categorized as follows:
I. Content coupling
II. Common coupling
III. Control coupling
IV Stamp coupling
V. Data coupling
Coupling between modules can be ranked in the order of strongest (least desirable) to weakest (most desirable) as follows:
I. Content coupling
II. Common coupling
III. Control coupling
IV Stamp coupling
V. Data coupling
Coupling between modules can be ranked in the order of strongest (least desirable) to weakest (most desirable) as follows:
Answer: (A)
Coupling is stronger when one module depends more on the inside of another. From strongest to weakest:
I. Content coupling: one module uses or changes the internal data or code of another.
II. Common coupling: modules share the same global data.
III. Control coupling: one module passes a flag that decides the logic of another.
IV. Stamp coupling: modules pass a whole data structure, though the receiver may use only part of it.
V. Data coupling: modules pass only the simple data items that are needed.
(External coupling, where modules share an external device or format, sits between common and control; it is not one of the five listed here.) So the order is I-II-III-IV-V. Option (B) is the reverse order, and (C) and (D) put the types in the wrong places.
Answer: (A)
I. Content coupling: one module uses or changes the internal data or code of another.
II. Common coupling: modules share the same global data.
III. Control coupling: one module passes a flag that decides the logic of another.
IV. Stamp coupling: modules pass a whole data structure, though the receiver may use only part of it.
V. Data coupling: modules pass only the simple data items that are needed.
(External coupling, where modules share an external device or format, sits between common and control; it is not one of the five listed here.) So the order is I-II-III-IV-V. Option (B) is the reverse order, and (C) and (D) put the types in the wrong places.
Answer: (A)
Which of the following requirement specifications can be validated?
S1: If the system fails during any operation, there should not be any loss of data
S2: The system must provide reasonable performance even under maximum load conditions
S3: The software executable must be deployable under MS Windows 95, 2000 and XP
S4: User interface windows must fit on a standard monitor's screen
S1: If the system fails during any operation, there should not be any loss of data
S2: The system must provide reasonable performance even under maximum load conditions
S3: The software executable must be deployable under MS Windows 95, 2000 and XP
S4: User interface windows must fit on a standard monitor's screen
Answer: (C)
A requirement can be validated only if it can be tested with a clear pass or fail.
S1: no loss of data on failure can be tested by making the system fail during operations and checking that the data is intact.
S3: deployment can be tested by installing and running the executable on Windows 95, 2000 and XP.
S2: "reasonable performance" has no number (response time or throughput) to check against.
S4: "a standard monitor" has no stated screen size or resolution to check against.
So S3 and S1 can be validated.
Answer: (C)
S1: no loss of data on failure can be tested by making the system fail during operations and checking that the data is intact.
S3: deployment can be tested by installing and running the executable on Windows 95, 2000 and XP.
S2: "reasonable performance" has no number (response time or throughput) to check against.
S4: "a standard monitor" has no stated screen size or resolution to check against.
So S3 and S1 can be validated.
Answer: (C)
Keep practising
Topics in Software Engineering and Web Technology
Software EngineeringYou are here
Web Technology