Indian Institute of Technology Madras
BS Degree Programme · Examination & Study Paper
Software Testing
Graph coverage & FSMs
Examination Instructions & Guidelines
- Solve on notebook/paper first before checking solutions.
- MCQ: Exactly 1 option is correct. Negative marking applies.
- Scientific calculator allowed for all calculations.
- Official answer key is sealed at the end of this sheet.
Quiz 1 · 26 Oct 2025 (AN)Quiz 1
- Q1MCQ5 Marks·Choose one option
Consider the following statements and choose the correct option. i) Prime path coverage subsumes node and edge coverage. ii) Prime path coverage does not subsume edge-pair coverage.
- AStatement i) is correct and Statement ii) is incorrect.
- BStatement ii) is correct and Statement i) is incorrect.
- CBoth statements are incorrect.
- DBoth statements are correct.
- Q2MCQ5 Marks·Choose one option
Consider the following statements regarding structural graph coverage criteria, and choose the correct option. i) A test path always begins with the initial vertex and ends in the final vertex. ii) A prime path may contain cycles within it as a subpath. iii) Complete path coverage may be feasible for some CFGs.
- AStatement i) and iii) are correct. Statement ii) is incorrect.
- BStatement i) is correct. Statement ii) and iii) are incorrect.
- CStatement ii) and iii) are correct. Statement i) is incorrect.
- DStatement i) and ii) are correct. Statement iii) is incorrect.
- Q3MCQ5 Marks·Choose one option
Consider the following statement and fill in the blank(s) with the appropriate option. In a maximal chain, the interior vertices have an indegree of i)___ and outdegree of ii)___.
- Ai - 1, ii - 2
- Bi - 0, ii - 2
- Ci - 1, ii - 1
- Di - 1, ii - 0
- Q4MCQ5 Marks·Choose one option
Which of the following graph coverage criteria is equivalent to state coverage on a finite state machine (FSM)?
- ANode coverage
- BEdge coverage
- CEdge-pair coverage
- DPrime path coverage
Read the passage below, then answer Q5–Q7
Consider the following control flow graph (CFG), and answer the subsequent questions.
Q5MCQ5 Marks·Choose one optionHow many test requirements are there for edge-pair coverage?
- A9
- B10
- C11
- D8
- Q6MCQ5 Marks·Choose one option
How many test requirements are there for prime path coverage?
- A9
- B12
- C10
- D11
- Q7MCQ5 Marks·Choose one option
What is the cyclomatic complexity of the given CFG?
- A3
- B4
- C5
- D6
End Term · 31 Aug 2025 (FN)End Term
- Q8MCQ5 Marks·Choose one option

- A1 - A, 2 - C, 3 - B
- B1 - A, 2 - B, 3 - C
- C1 - B, 2 - C, 3 - A
- D1 - B, 2 - A, 3 - C
- Q9MCQ4 Marks·Choose one option

- AA string of only zeros
- BA string starting with one, followed by zeros, and ending with a one
- CA string starting with a one and ending with zeros
- DA string starting with a one, followed by zeros, and ending with a zero
Read the passage below, then answer Q10–Q11

Based on the above data, answer the given subquestions.
Q10MCQ4 Marks·Choose one optionWhat is the cyclomatic complexity of G?
- A6
- B5
- C4
- D3
- Q11MCQ4 Marks·Choose one option
How many test requirements are there for edge-pair coverage on G?
- A6
- B7
- C8
- D9
End Term · 31 Aug 2025 (AN)End Term
- Q12MCQ4 Marks·Choose one option

- AA string of only ones
- BA string starting with one, followed by zeros, and ending with a one
- CA string starting with zero, followed by ones, and ending with a zero
- DA string starting with a zero and ending with ones
Read the passage below, then answer Q13–Q14

Based on the above data, answer the given subquestions.
Q13MCQ4 Marks·Choose one optionWhat is the cyclomatic complexity of G?
- A3
- B4
- C5
- D6
- Q14MCQ4 Marks·Choose one option
How many test requirements are there for edge-pair coverage on G?
- A7
- B9
- C8
- D6
Quiz 2 · 3 Aug 2025 (AN)Quiz 2
- Q15MCQ5 Marks·Choose one option
Which of the following graph coverage criteria is equivalent to state coverage on a finite state machine (FSM)?
- ANode coverage
- BPrime path coverage
- CEdge coverage
- DEdge-pair coverage
Read the passage below, then answer Q16–Q18

Based on the above data, answer the given subquestions.
Q16MCQ6 Marks·Choose one optionHow many linearly independent paths are there in G?
- A6
- B3
- C4
- D5
- Q17MCQ5 Marks·Choose one option
How many test requirements are there for edge-pair coverage on G?
- A11
- B9
- C8
- D6
- Q18MCQ5 Marks·Choose one option
What is the minimum number of test paths to acheive edge coverage on G?
- A1
- B2
- C3
- D4