3. Software Metrics Flashcards

(27 cards)

1
Q

What are the three categories of entities we measure in software engineering?

A
  1. Product: The software itself.
  2. Process: The steps and mechanisms to develop it.
  3. Project: The administrative part of the endeavor.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Reliability in the context of software quality?

A

The ability of the software product to perform its required functions under stated conditions for a specified period of time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is MTBF and what does it measure?

A

Mean Time Between Failure. It measures reliability by calculating the average time between successive failures.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is MTTR?

A

Mean Time To Repair. The average time taken to repair the machine/software after a failure occurs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define Software Correctness.

A

The degree to which software performs its specified function, often measured in defects per KLOC (Thousand Lines of Code).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Maintainability?

A

The ease with which a software product can be modified to correct errors, meet new requirements, or adapt to a changed environment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is MTTC?

A

Mean Time To Change. An indirect measure of maintainability defined as the time taken to analyze, design, implement, test, and distribute changes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is Software Integrity?

A

The degree to which unauthorized access to software components (program, data, documents) can be controlled.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the two attributes used to measure Software Integrity?

A
  1. Threat: Probability of a particular attack at a given time.
  2. Security: Probability of repelling an attack.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is Defect Removal Efficiency (DRE)?

A

A metric indicating the ability to detect errors before delivery.
Formula: DRE = E / (E + D)
(E = errors found before delivery, D = defects found after delivery).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the ideal value for Defect Removal Efficiency (DRE)?

A

The value approaches 1 as fewer defects (D) are found after delivery.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are Direct Measures in software metrics?

A

Metrics that can be observed directly, such as Cost, Effort (Person-Months), Lines of Code (LOC), Execution Speed, and Memory Footprint.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are Size-Oriented Metrics?

A

Metrics normalized by the size of the software, typically using Lines of Code (LOC). Examples: Errors per KLOC, Defects per KLOC, Cost per KLOC.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the disadvantages of using Lines of Code (LOC) as a metric?

A
  1. Language dependent.
  2. Penalizes well-designed but shorter programs.
  3. Difficult to measure in early phases.
  4. Depends on formatting/style.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a Function Point (FP)?

A

A unit of measurement expressing the amount of business functionality an information system provides to a user, independent of technology or language.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the 5 Information Domain Values counted in Function Point Analysis?

A
  1. External Inputs (EI)
  2. External Outputs (EO)
  3. External Inquiries (EQ)
  4. Internal Logical Files (ILF)
  5. External Interface Files (EIF)
17
Q

Define External Input (EI).

A

A transaction that moves data from outside to inside the application boundary (e.g., a data input screen).

18
Q

Define External Output (EO).

A

A transaction that moves derived or processed data from inside to outside the application boundary (e.g., a report with calculations).

19
Q

Define External Inquiry (EQ).

A

A user-initiated request where data moves from inside to outside with no processing or derivation of data (raw retrieval).

20
Q

Define Internal Logical File (ILF).

A

A group of logically related data that resides entirely within the application boundary and is maintained by the application’s External Inputs.

21
Q

Define External Interface File (EIF).

A

A group of logically related data that resides outside the application boundary and is used for reference only (maintained by another application).

22
Q

What are Data Elements (DE) in Function Point Analysis?

A

Unique, user-recognizable, non-recursive fields (pieces of information) that move across the boundary during a process.

23
Q

What is a File Type Referenced (FTR)?

A

A file type (either an ILF or EIF) that is read or maintained by a transactional function (EI, EO, EQ).

24
Q

What is COCOMO?

A

Constructive Cost Model. An empirical model mainly used to estimate software development effort and cost based on project size (LOC).

25
What are the three project modes in COCOMO?
1. **Organic:** Small, simple projects, experienced teams, flexible requirements. 2. **Semi-detached:** Intermediate size/complexity, mixed experience, mixed requirement rigidity. 3. **Embedded:** Tight hardware/software constraints (e.g., flight control).
26
What is the basic COCOMO formula for **Effort (E)**?
**E = a * (KLOC)^b** (Where E is effort in person-months, KLOC is size, and a/b are constants based on project mode).
27
What is the basic COCOMO formula for **Duration (D)**?
**D = c * E^d** (Where D is duration in months, E is effort, and c/d are constants).