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 46–50 of 56
The Function Point (FP) calculated for a software project are often used to obtain an estimate of Lines of Code (LOC) required for that project. Which of the following statements is FALSE in this context.
Answer: (D)
Function points measure functionality, and lines of code needed per function point depend on the language. Typical figures are about 300 LOC per FP for assembly, about 100 to 110 for COBOL and FORTRAN, and about 60 to 65 for C++.
(A) is true: LOC per FP changes with the language.
(B) is true: assembly needs about 300 LOC per FP, much more than COBOL.
(C) is true: FORTRAN needs about 1.6 times as many lines as C++ for the same functionality (roughly ).
(D) is false: FP is used to estimate LOC, so the two are related, through a language-dependent factor.
Answer: (D)
(A) is true: LOC per FP changes with the language.
(B) is true: assembly needs about 300 LOC per FP, much more than COBOL.
(C) is true: FORTRAN needs about 1.6 times as many lines as C++ for the same functionality (roughly ).
(D) is false: FP is used to estimate LOC, so the two are related, through a language-dependent factor.
Answer: (D)
What is the availability of a software with the following reliability figures?
Mean Time Between Failure (MTBF) = 25 days
Mean Time To Repair (MTTR) = 6 hours
Mean Time Between Failure (MTBF) = 25 days
Mean Time To Repair (MTTR) = 6 hours
Answer: (D)
Availability formula: MTBF/(MTBF+MTTR) * 100
Put in the values, with MTBF changed to hours: 25*24/(25*24 + 6) * 100
Result: 99.009 %
Put in the values, with MTBF changed to hours: 25*24/(25*24 + 6) * 100
Result: 99.009 %
A software was tested using the error seeding strategy in which 20 errors were seeded in the code. When the code was tested using the complete test suite, 16 of the seeded errors were detected. The same test suite also detected 200 non-seeded errors. What is the estimated number of undetected errors in the code after this testing?
Answer: (B)
In error seeding, the fraction of seeded errors found is taken to be the fraction of real errors found.
Let seeded errors, seeded errors found, and non-seeded errors found.
Estimated total non-seeded errors: .
Undetected errors: . This is the same as .
Answer: (B)
Let seeded errors, seeded errors found, and non-seeded errors found.
Estimated total non-seeded errors: .
Undetected errors: . This is the same as .
Answer: (B)
Assume that the delivered lines of code of a software is related to the effort in person months and duration in calendar months by the relation , where and are two constants for the software process and skills factor. For a software project, the effort was estimated to be 20 person months and the duration was estimated to be 8 months. However, the customer asked the project team to complete the software project in 4 months. What would be the required effort in person months?
Answer: (D)
. The program is the same, so , and stay constant.
So is constant. Raising to the power 3 gives .
person-months.
Answer: (D)
So is constant. Raising to the power 3 gives .
person-months.
Answer: (D)
Consider the following program module:
int module1 (int x, int y) {
while (x! = y) {
if (x > y)
x = x - y,
else y = y - x;
}
return x;
} What is Cyclomatic complexity of the above module?
Answer: (C)
The module has 2 decision points: the condition and the condition.
Cyclomatic complexity = decision points + 1 = .
Check with the flow graph: 5 nodes (while test, if test, , , return) and 6 edges give .
Answer: (C)
Cyclomatic complexity = decision points + 1 = .
Check with the flow graph: 5 nodes (while test, if test, , , return) and 6 edges give .
Answer: (C)
Keep practising
Topics in Software Engineering and Web Technology
Software EngineeringYou are here
Web Technology