adplus-dvertising
frame-decoration

Question

What is the formula for WMC(Weighted Methods per Class)?

a.

WMC = Σci

b.

WMC = Σci-1

c.

WMC = Σci^2

d.

WMC = Σci-2

Posted under Software Engineering

Answer: (a).WMC = Σci Explanation:The formula for WMC (Weighted Methods per Class) is WMC = Σci, where i is the complexity of method i.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the formula for WMC(Weighted Methods per Class)?

Similar Questions

Discover Related MCQs

Q. What is the purpose of WMC in object-oriented metrics?

Q. What does the DIT(Depth of Inheritance Tree) value depend on?

Q. What does a high value of NOC suggest in Object-Oriented Metrics?

Q. What does CBO measure in Object-Oriented Metrics?

Q. What is the objective of Demeter's Law in Object-Oriented Metrics?

Q. What is used to calculate the complexity of a method in WMC(Weighted Methods per Class)?

Q. What is the purpose of counting each entry in the class interface in WMC(Weighted Methods per Class) calculation?

Q. What is the relationship between classes in an object-oriented design?

Q. What is the purpose of DIT(Depth of Inheritance Tree) in object-oriented systems?

Q. What is NOC in the context of object-oriented systems?

Q. What is CBO in the context of object-oriented systems?

Q. What is the definition of afferent coupling (Ca) in the context of package level coupling measures?

Q. What is the significance of the ratio I in package level coupling measures?

Q. What does a value of I equal to 0 denote in package level coupling measures?

Q. What does a value of I equal to 1 denote in package level coupling measures?

Q. What is the definition of the response set in the context of RFC (Response for Class) metric?

Q. What does a higher value of RFC indicate about a class?

Q. What have been found to be the more useful quality indicators among object-oriented metrics?

Q. What is the focus of object-oriented design compared to other design methods?

Q. What is the difference between FSM and JSD in terms of design methods?