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.

  1. A. 2
  2. B. 3
  3. C. 5
  4. 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.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic