CS FundamentalsHardGATE CS · product-company placement
A module has 10 distinct operators, 16 distinct operands, 60 operator occurrences and 48 operand occurrences. Using Halstead's metrics, D = (n1/2) x (N2/n2) and E = D x V with V = N log2 n, what are the difficulty and effort?
- A. D = 18.75, E ≈ 9,518
- B. D = 15, E ≈ 7,615
- C. D = 15, E ≈ 508
- D. D = 3, E ≈ 1,523
Correct answer: B. D = 15, E ≈ 7,615
D = (10/2) x (48/16) = 15; N = 108, n = 26, V = 108 x log2 26 ≈ 507.6, so E ≈ 15 x 507.6 ≈ 7,615. Using N1 instead of N2 gives 18.75; 508 is the volume, not the 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 project has budget at completion ₹200 lakh. To date: planned value ₹90 lakh, earned value ₹80 lakh, actual cost ₹100 lakh. What cost…
- A server has a mean time between failures of 500 hours. To meet a 99.8% availability target, what is the largest mean time to repair it…
- Use case points: actors - 2 simple (weight 1), 2 average (2), 3 complex (3); use cases - 5 simple (5), 8 average (10), 3 complex (15)…
- Henry and Kafura's information-flow complexity of a procedure is length x (fan-in x fan-out)^2. A 20-line procedure is called by 3…
- A package has 6 classes outside it depending on it (afferent coupling Ca = 6) and depends on 2 outside classes (efferent coupling Ce = 2)…
- In COCOMO's maintenance model, annual maintenance effort = annual change traffic (ACT) x development effort. A system took 120…