CST 8284 Exam Questions and Correct Answers 100% Verified Graded A+
Which one of the following is used in UML diagrams to signal that a field is static?
A. underline
B. italics
C. boldface
D. capitalize
E. none of the above - A. underline
Which one of the following is not part of the signature of a method?
A. the name of the method
B. number of parameters
C. the type of each parameters
D. the prefer of the parameters
E. the identifier of the parameters - E. The identifier of the parameters
A class cannot instantiate a new instance of itself if it contains static members. True or False -
False
Of the following relationships:
A. association
B. aggregation
C. composition
D. inheritance
,which two characterize the relationships most commonly used in OOP? - C. Composition
& D. Inheritance
You cannot extend a final class. True or False - True
Which one of the following is NOT TRUE of a class that contains an abstract method?
A. the class cannot be instantiated
B. The abstract method must be overridden in a subclass, unless that subclass is also abstract
C. All the methods in The class will be treated as abstract
D. The class can be inherited by any concrete subclass
E. None of the above - D. The class can be inherited by any concrete subclass
The second (or middle) compartment of a UML class diagram may be omitted if the fields that
class are private. True or False - False
In a UML diagram, static methods are identified by being:
A. Underlined
B. Italicized
C. Bold-Face
D. Capitalized
E. None of the above - A. Underlined
The return type of a method is part of its signature. True or False - False
, Which one of the following words is NOT used indicate a relationship between objects?
A. Association
B. Aggression
C. Composition
D. Inheritance
E. None of the above - B. Aggression
Which one of the following does NOT require a java identifier?
A. A method
B. A property
C. A keyword
D. A class
E. None of the above - C. A keyword
@Override has the effect of:
A. Forcing methods in the superclass to be overridden by methods in the subclass
B. Checking that the spelling of the subclass method/ constructor name is correct
C. Checking that the method and it's parameters on the line that follows actually exists in the
superclass
D. Adding a new method to the subclass which does not exist in the superclass
E. None of the above - C. Checking that the method and it's parameters on the like that
follows actually exists in the superclass
Which one of the following is used in UML diagrams to signal that a field is static?
A. underline
B. italics
C. boldface
D. capitalize
E. none of the above - A. underline
Which one of the following is not part of the signature of a method?
A. the name of the method
B. number of parameters
C. the type of each parameters
D. the prefer of the parameters
E. the identifier of the parameters - E. The identifier of the parameters
A class cannot instantiate a new instance of itself if it contains static members. True or False -
False
Of the following relationships:
A. association
B. aggregation
C. composition
D. inheritance
,which two characterize the relationships most commonly used in OOP? - C. Composition
& D. Inheritance
You cannot extend a final class. True or False - True
Which one of the following is NOT TRUE of a class that contains an abstract method?
A. the class cannot be instantiated
B. The abstract method must be overridden in a subclass, unless that subclass is also abstract
C. All the methods in The class will be treated as abstract
D. The class can be inherited by any concrete subclass
E. None of the above - D. The class can be inherited by any concrete subclass
The second (or middle) compartment of a UML class diagram may be omitted if the fields that
class are private. True or False - False
In a UML diagram, static methods are identified by being:
A. Underlined
B. Italicized
C. Bold-Face
D. Capitalized
E. None of the above - A. Underlined
The return type of a method is part of its signature. True or False - False
, Which one of the following words is NOT used indicate a relationship between objects?
A. Association
B. Aggression
C. Composition
D. Inheritance
E. None of the above - B. Aggression
Which one of the following does NOT require a java identifier?
A. A method
B. A property
C. A keyword
D. A class
E. None of the above - C. A keyword
@Override has the effect of:
A. Forcing methods in the superclass to be overridden by methods in the subclass
B. Checking that the spelling of the subclass method/ constructor name is correct
C. Checking that the method and it's parameters on the line that follows actually exists in the
superclass
D. Adding a new method to the subclass which does not exist in the superclass
E. None of the above - C. Checking that the method and it's parameters on the like that
follows actually exists in the superclass