CS FundamentalsVery hardGATE CS · Software Engineering · Advanced
A program has 14 distinct operators, 22 distinct operands, 82 operator occurrences and 61 operand occurrences. Using Halstead's measures (volume V = N log2 n, difficulty D = (n1 / 2) x (N2 / n2), effort E = D x V), what is the effort E, to the nearest thousand?
- A. about 15,000
- B. about 14,000
- C. about 10,000
- D. about 29,000
Correct answer: B. about 14,000
n = 36, N = 143, V = 143 x log2 36 = 739.3, D = 7 x 61/22 = 19.41, so E = 14349, about 14000. Dropping the factor 1/2 doubles it, and natural logs change the volume.
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
- The control-flow graphs of a program's two separate routines have E = 16, N = 13 and E = 9, N = 8 edges and nodes respectively (each graph…
- A project has these activities (duration in days; predecessors): A (3; none), B (4; none), C (5; A), D (2; A, B), E (6; B), F (4; C, D), G…
- The critical path of a project has four activities with (optimistic, most likely, pessimistic) durations in days: (2, 4, 8), (3, 5, 13)…
- A system has component A (reliability 0.98) in series with a parallel pair B (0.90) and C (0.85) - the pair works if at least one works…
- A server has MTTF = 400 hours and MTTR = 8 hours. Two identical servers run in active-active mode (the service is up if at least one…
- Which list orders these module-cohesion types from the most desirable (strongest) to the least desirable (weakest)?