In: Computer Science
1. Which class category has static methods and constants, but no objects?
A) Real-life entity abstraction B) Actor class C) Utility class D) Concept class
2. Which of the following would be an appropriate name for a game-related class?
A) CompletedLevelOne B) InitialLevel C) ResetCurrentLevel D) AscendToFinalLevel
3. A class (ClassOne) is considered to have a dependency on class (ClassTwo) under which of the following conditions?
A) Each class uses objects of the other. B) The public interfaces of both classes are cohesive.
C) ClassTwo uses objects of ClassOne. D) ClassOne uses objects of ClassTwo.
4. A UML class diagram would be most useful in visually illustrating which of the following?
A) the cohesiveness of a class’s interface. B) the amount of complexity of a class’s interface.
C) dependencies between classes. D) relationships between classes and their interfaces.
1.
Utility class category has static methods and constants, but no objects.
Utility class can't allow to do the instantiation.
Utility class found to be as stateless.
Utility class has static methods which are reused.
Option C
2.
InitialLevel an appropriate name for a game-related class.
Starting of the game execute a class which is an appropriate name for a game-related class.
Don't think about first, second, .. levels to include the name.
Option B
3.
A class (ClassOne) is considered to have a dependency on class (ClassTwo) under condition
ClassOne uses objects of ClassTwo
In this dependent class is ClassOne
ClassTwo contains the required data which is needed by the ClassOne.
The usage of one class by the other class done using the objects.
Option D
4.
A UML class diagram would be most useful in visually illustrating dependencies between classes.
Dependency relation is referred as relationship an element or the group of elements required by the other model.
In UML class diagram one class elements used by the other class for their, so one class is dependent and other class is supplier.
Option C