Software Engineering: OOAD and Project Estimation

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 happens to the changeability of a software system when the number of children (NOC) increases?

  • It increases (correct)
  • It remains the same
  • It is not affected
  • It decreases

Which of the following is a desirable goal in software design?

  • Decrease adaptability
  • Reduce coupling between classes (correct)
  • Increase modularity
  • Increase coupling between classes

What does the CBC (Coupling between Classes) metric measure?

  • The number of classes in a system
  • The number of instance variables in a class
  • The total number of other classes to which the class is coupled (correct)
  • The number of methods in a class

What is the effect of increasing coupling between classes on modularity?

<p>It decreases modularity (C)</p> Signup and view all the answers

What happens to the reliability of a software system when the number of children (NOC) increases?

<p>It increases (C)</p> Signup and view all the answers

What is the primary characteristic of a class with a low CBC value?

<p>It is self-contained with minimal relationships to other classes. (C)</p> Signup and view all the answers

What does a high CBC value typically indicate about a class?

<p>It is tightly coupled to other classes, making it difficult to test and modify. (D)</p> Signup and view all the answers

What is the primary factor that affects the fault-proneness of classes?

<p>Coupling between classes. (D)</p> Signup and view all the answers

What is the relationship between two methods of a class C that makes them cohesive?

<p>They access the same instance variables. (C)</p> Signup and view all the answers

What is the range of CBC values that indicate a class is tightly coupled?

<p>&gt;4 (A)</p> Signup and view all the answers

What is the term for the phenomenon where a class has a high degree of cohesion among its methods?

<p>Lack of Cohesion in Methods (LCOM) (C)</p> Signup and view all the answers

What is the relationship between the depth of inheritance tree (DIT) and defect-proneness of a class?

<p>The higher the DIT, the higher is the probability that the class is defect-prone (C)</p> Signup and view all the answers

What does the number of children (NOC) metric value of a class C represent?

<p>The number of immediate subclasses of C (B)</p> Signup and view all the answers

What is the trend observed in the empirical observations regarding NOC metric value?

<p>Most classes have a small NOC value (C)</p> Signup and view all the answers

What is the relationship between NOC and defect detection probability?

<p>The higher the NOC, the lower the probability of detecting defects (C)</p> Signup and view all the answers

What is the significance of a high DIT value?

<p>It indicates a high probability of defect-proneness (B)</p> Signup and view all the answers

What is the implication of a class having a high NOC value?

<p>The class has a high degree of reuse (B)</p> Signup and view all the answers

Flashcards are hidden until you start studying

More Like This

Use Quizgecko on...
Browser
Browser