Hoofdstuk 10 - Metrics Flashcards

1
Q

Can you give three possible problems of metrics usage in software engineering? How does the measurement theory address them?

A

◦ Preciseness: Do we use the same units to compare?
◦ Representation Condition: Is “code size” really what we want to have?
◦ Scale and Scale Types: How do we want to interpret results?
◦ GQM-paradigm: What do we want to do with the results?
◦ The measurement theory helps to answer the questions by providing good techniques.

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

What’s the distinction between a measure and a metric?

A

◦ A measurement is a function mapping of an attribute of a real world entity onto a symbol in a set of known mathematical relations
◦ A metric is a measurement with as range the real numbers and which satisfies m(x,x)=0, m(x,y)=m(y,x) and m(x,z)<m(x,y)+m(y,z)

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

Can you give an example of a direct and an indirect measure?

A

◦ Direct: lines of code
◦ Indirect: module defect density

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

What kind of measurement scale would you need to say “A specification error is worse than a design error”? And what if we want to say “A specification error is twice as bad as a design error?”

A

For the first ordinal, for the second ratio

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

Explain the need for a calibration factor in Putnam’s model.

A

◦ The calibration factor is needed because projects and teams have different sizes.
◦ To know the parameters that influence the effort

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

Fill in the blanks in the following sentence. Explain briefly, based on the Putnam’s model.
+ If you want to finish earlier (= decrease scheduled time), you should … the effort … .

A

If you want to finish earlier, you should increase the effort a lot

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

Give three metrics for measuring size of a software product.

A

◦ Lines of Code
◦ Function Points
◦ Use Case Points.

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

Discuss the main advantages and disadvantages of Function Points.

A

◦ :) measured after the design,
independent of implementation language,
measures functionality and works well for data-processing.

◦ :( It requires subjective expert judgment
and cannot be calculated automatically.

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

What does it mean for a coupling metric not to satisfy the representation condition?

A

It means that coupling might not be representable enough to be a sufficient metric.

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

Can you give 3 examples of impreciseness in Lines of Code measurements?

A

◦ Ignores software reuse, code duplication, benefits of redesign.
◦ The lower level the language, the more productive the programmer.
◦ The more verbose the programmer, the higher the productivity.

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