1.
Minimal implementation of any algorithm was given the following name by Halstead:
Correct Answer
B. Potential volume
Explanation
Halstead named the minimal implementation of any algorithm "Potential volume." This term refers to the theoretical maximum number of unique operations that can be performed in a program. It is a measure of the algorithm's complexity and can be used to estimate the effort required for implementation and testing. The potential volume helps in understanding the size and complexity of the algorithm, making it a suitable name for the minimal implementation.
2.
Program weakness (WM) is .
Correct Answer
A. WM= LV * r
Explanation
The formula WM = LV * r represents the calculation of program weakness. The program weakness is determined by multiplying the value of LV (which represents some variable or factor) with the value of r (which represents another variable or factor). This means that the program weakness is directly proportional to both LV and r, as increasing either of them will result in an increase in the program weakness.
3.
Depth of inheritance tree (DIT) can be measured by:
Correct Answer
A. Number of ancestors classes
Explanation
The depth of inheritance tree (DIT) can be measured by the number of ancestor classes. This means that the DIT represents the number of classes that a particular class inherits from. The higher the number of ancestor classes, the deeper the inheritance tree becomes. This measurement helps in understanding the complexity and hierarchy of a class and its relationships with other classes in the inheritance structure.
4.
A dynamic page is:
Correct Answer
B. Where contents are dependent on the actions of the user
Explanation
A dynamic page is where the contents are dependent on the actions of the user. This means that the information displayed on the page can change based on the user's interactions, such as clicking on buttons, submitting forms, or making selections. The content is not static and can be updated or modified dynamically in response to user input.
5.
Which one is not a measure of software science theory?
Correct Answer
D. Logic
Explanation
Logic is not a measure of software science theory because it is a fundamental principle that underlies all aspects of software development and is not specific to software measurement. Vocabulary, volume, and level are all measures that can be used to assess various aspects of software, such as the complexity, size, and comprehensibility. However, logic is a fundamental concept that deals with the reasoning and structure of software, rather than being a specific measure.
6.
All the following are examples of product revision metrics, except
Correct Answer
B. Portability
Explanation
Product revision metrics are used to evaluate the ease of making changes to a product. Maintainability refers to the ease with which a product can be maintained or repaired. Flexibility refers to the ability of a product to adapt to changes or modifications. Testability refers to the ease with which a product can be tested for quality assurance. Portability, on the other hand, refers to the ability of a product to be transferred or adapted to different environments or platforms. Therefore, portability is not an example of a product revision metric.
7.
Module defect density = Number of defects discovered / length of source is an example of which type of measure
Correct Answer
D. Indirect measure
Explanation
The given formula for module defect density calculates the number of defects discovered divided by the length of the source code. This measure indirectly indicates the quality of the module by quantifying the number of defects in relation to the size of the code. It does not directly measure the performance or substitute it with any other measure. Therefore, it can be categorized as an indirect measure.
8.
In halstead theory of software science, volume is measured in bits. The bits are
Correct Answer
B. Number of successful size of a program if a uniform binary encoding scheme for vocabulary is used
Explanation
The correct answer is "Number of successful size of a program if a uniform binary encoding scheme for vocabulary is used". In Halstead's theory of software science, volume is a measure of the size of a program. It represents the amount of information or code in the program. The volume is calculated based on the number of distinct operators and operands used in the program. In this context, the volume is measured in bits, and it represents the successful size of the program if a uniform binary encoding scheme for vocabulary is used.
9.
Which one is the international standard for size measure?
Correct Answer
D. None of the above
Explanation
None of the options provided (LOC, Function Point, Program Length) is the international standard for size measure. The international standard for size measure is Lines of Code (LOC) which is used to measure the size or complexity of a software program. Function Point and Program Length are other metrics used in software development, but they are not considered as the international standard for size measure. Therefore, the correct answer is None of the above.
10.
FAN OUT’ of a component A is defined as
Correct Answer
C. Number of components that are called by component A
Explanation
The correct answer is "number of components that are called by component A." The fan out of a component refers to the number of other components that are called or invoked by that specific component. It indicates the number of dependencies or connections that the component has with other components in the system.