CS FundamentalsVery hardProduct-company placement · GATE CS
Using the Chidamber-Kemerer metric CBO (coupling between objects: the number of other classes a class is coupled to, counting both classes it uses and classes that use it), what is CBO for class A? A calls methods of B and C; D creates and uses A; A and D both use E; B uses A.
- A. 2
- B. 3
- C. 5
- D. 4
Correct answer: D. 4
A is coupled to B (both ways, counted once), C, D (uses A) and E: 4 distinct classes. Counting only classes A uses gives 3 (B, C, E); counting B twice gives 5.
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
- Class Cart has 5 methods. Together they call 9 methods of other classes, of which 7 are distinct. What is its Response For a Class (RFC) =…
- A class has four methods with cyclomatic complexities 1, 3, 2 and 4. Using the CK metric Weighted Methods per Class (WMC) with cyclomatic…
- David Parnas's information-hiding principle says how a system should be divided into modules. Which statement captures it?
- Match each system with its architectural style. P: a compiler with lexer → parser → optimiser → code generator. Q: a typical 3-tier web…
- In MVVM, unlike MVC and MVP, how does the view usually get updated when data changes?
- A company organised as separate frontend, backend and database teams keeps producing a three-tier system even when microservices were…