CS FundamentalsModerateInfosys · Capgemini
A function-point estimate and a COCOMO estimate for the same project differ widely. Which statement best explains why function points are often preferred early in the lifecycle?
- A. Function points measure code quality directly
- B. Function points can be counted from requirements before any code exists and are language-independent, whereas COCOMO needs a KLOC estimate
- C. Function points give effort in person-months without any productivity data
- D. COCOMO cannot be used for business applications
Correct answer: B. Function points can be counted from requirements before any code exists and are language-independent, whereas COCOMO needs a KLOC estimate
FP counts inputs, outputs, inquiries and files from the specification, so it works before design and code; KLOC must itself be guessed. FP still needs a productivity rate or a conversion to effort.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A team measures defect density after release. Release 1: 30 defects in 15 KLOC. Release 2 adds 10 KLOC of new code and has 26 defects, all…
- Activities (days; predecessors): P 5 (-), Q 6 (-), R 5 (P), S 5 (Q), T 4 (R, S). The manager can shorten only one activity by 2 days…
- Counting each simple condition separately (each 'and'/'or' adds one) and each loop header as one decision, what is the cyclomatic…
- For the function below, which single call executes every statement (100% statement coverage)? python def f(a, n): total = 0 for x in a: if…
- For the call f([3], 5) on the function below, what decision (branch) coverage is achieved, treating the for loop as a decision with two…
- The function below has cyclomatic complexity 3. What is the minimum number of test calls that achieves 100% branch coverage of it? python…