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 1–5 of 56
Match the following:
| (P) Condition coverage | (i) Black-box testing |
| (Q) Equivalence class partitioning | (ii) System testing |
| (R) Volume testing | (iii) White-box testing |
| (S) Alpha testing | (iv) Performance testing |
Answer: (C)
(P) Condition coverage measures which conditions in the code have been exercised, so it needs the code: white-box testing (iii).
(Q) Equivalence class partitioning groups the inputs using only the specification, without looking at the code: black-box testing (i).
(R) Volume testing checks how the system behaves with large amounts of data: performance testing (iv).
(S) Alpha testing is done on the complete system by users at the developer's site before release: system testing (ii).
So P-iii, Q-i, R-iv, S-ii.
Answer: (C)
(Q) Equivalence class partitioning groups the inputs using only the specification, without looking at the code: black-box testing (i).
(R) Volume testing checks how the system behaves with large amounts of data: performance testing (iv).
(S) Alpha testing is done on the complete system by users at the developer's site before release: system testing (ii).
So P-iii, Q-i, R-iv, S-ii.
Answer: (C)
Consider the following C program segment.
while(first <= last)
{
if (array[middle] < search)
first = middle + 1;
else if (array[middle] == search)
found = TRUE;
else last = middle - 1;
middle = (first + last)/2;
}
if (first > last) notPresent = TRUE;The cyclomatic complexity of the program segment is ________.Answer: 5
For code whose decisions each test a single condition, cyclomatic complexity = number of decision points + 1.
Decision points: the while condition, the if, the else if, and the last if, 4 in all.
The flow graph gives the same: with nodes for the while test, if test, first = ..., else-if test, found = ..., last = ..., middle = ..., last if test, notPresent = ... and the exit, there are N = 10 nodes and E = 13 edges, so .
Answer: 5
Decision points: the while condition, the if, the else if, and the last if, 4 in all.
The flow graph gives the same: with nodes for the while test, if test, first = ..., else-if test, found = ..., last = ..., middle = ..., last if test, notPresent = ... and the exit, there are N = 10 nodes and E = 13 edges, so .
Answer: 5
A software requirements specification (SRS) document should avoid discussing which one of the following?
Answer: (C)
An SRS says what the system must do, not how it will be built. So it lists the functional and non-functional requirements and the interfaces the system must offer, including the user interface and the links to third party software.
How the software is organised inside (modules, data structures, algorithms) is design. It belongs in the design document, written after the SRS. So the SRS should avoid the design specification.
Answer: (C)
How the software is organised inside (modules, data structures, algorithms) is design. It belongs in the design document, written after the SRS. So the SRS should avoid the design specification.
Answer: (C)
Consider the basic COCOMO model where is the effort applied in person-months, is the development time in chronological months, is the estimated number of delivered lines of code (in thousands) and have their usual meanings. The basic COCOMO equations are of the form
Answer: (A)
Basic COCOMO first finds the effort from the size, then the development time from the effort:
person-months, and months.
Here are constants fixed by the project class (organic, semi-detached or embedded). The options write the powers as exp() and exp(), so (A) is this form.
(B) swaps E and D, and (C) and (D) leave KLOC out of the effort equation, though effort must grow with size.
Answer: (A)
person-months, and months.
Here are constants fixed by the project class (organic, semi-detached or embedded). The options write the powers as exp() and exp(), so (A) is this form.
(B) swaps E and D, and (C) and (D) leave KLOC out of the effort equation, though effort must grow with size.
Answer: (A)
Which one of the following assertions concerning code inspection and code walkthrough is true?
Answer: (C)
Code inspection is a formal review of the code by a team, using a checklist of common errors. Checking that the code follows the coding standards is part of that checklist, so (C) is true.
(A) is false: reviews are done once the code compiles cleanly, before unit testing, so errors are caught early.
(B) is false: a walkthrough is an informal review led by the author, so it is not the same as an inspection.
(D) is false: a walkthrough is done by members of the development team, not by an independent test team.
Answer: (C)
(A) is false: reviews are done once the code compiles cleanly, before unit testing, so errors are caught early.
(B) is false: a walkthrough is an informal review led by the author, so it is not the same as an inspection.
(D) is false: a walkthrough is done by members of the development team, not by an independent test team.
Answer: (C)
Keep practising
Topics in Software Engineering and Web Technology
Software EngineeringYou are here
Web Technology