OOAD Chapter 9: Software Project Estimation
10 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What does LCOM stand for?

  • Large Cohesion of Methods
  • Lack of Coupling in Methods
  • Level of Cohesion in Methods
  • Lack of Cohesion in Methods (correct)
  • What is the formula for LCOM if |P| > |Q|?

  • LCOM = |P| - |Q| (correct)
  • LCOM = |P| * |Q|
  • LCOM = |P| + |Q|
  • LCOM = |P| / |Q|
  • What is the relationship between coupling and cohesion?

  • Increase in coupling implies increase in cohesion
  • Decrease in coupling implies decrease in cohesion
  • Decrease in coupling implies increase in cohesion
  • Increase in coupling implies decrease in cohesion (correct)
  • What is the total number of pairs of methods in a class C with n methods?

    <p>n(n-1)</p> Signup and view all the answers

    What does a high LCOM value indicate?

    <p>The methods are trying to do different things and operate on different data entities</p> Signup and view all the answers

    What is the consequence of a high LCOM value?

    <p>The class can be partitioned into different classes</p> Signup and view all the answers

    What is desirable for modularity?

    <p>High cohesion and low LCOM</p> Signup and view all the answers

    What is the significance of LCOM in predicting the fault-proneness of a class?

    <p>LCOM is not significant</p> Signup and view all the answers

    What is the purpose of LCOM?

    <p>To measure the cohesion between methods</p> Signup and view all the answers

    What is the relationship between LCOM and the number of cohesive methods?

    <p>The larger the number of cohesive methods, the lower the LCOM</p> Signup and view all the answers

    More Like This

    Use Quizgecko on...
    Browser
    Browser