A) It is accessible in A1, A2 and A3
B) It is accessible in A1 and A2
C) It is accessible only in A1
D) It is accessible only in A3
E) It is not accessible to any of the three classes
Correct Answer
verified
Multiple Choice
A) It relieves the programmer from having to declare required methods with empty bodies
B) It is more efficient at run time
C) It relieves the programmer from having to shadow the required Interface variables
D) It allows a programmer to be more explicit about exactly which methods are being overridden and in what manner
E) none of the above
Correct Answer
verified
True/False
Correct Answer
verified
Essay
Correct Answer
verified
View Answer
Multiple Choice
A) Person
B) Student
C) Employee
D) Retired
E) none of the above, this cannot be determined by examining the code
Correct Answer
verified
Multiple Choice
A) a base class is a parent class or super class
B) a base class is a child class or derived class
C) a child class is a super class of its parent
D) a parent class is a subclass of its child
E) none of the above
Correct Answer
verified
Essay
Correct Answer
verified
View Answer
Essay
Correct Answer
verified
View Answer
Multiple Choice
A) listener
B) object
C) interface
D) GUI component
E) all of the above
Correct Answer
verified
Multiple Choice
A) A computer can be a mainframe or a PC
B) A PC can be a desktop or a laptop
C) A laptop is both a PC and a portable device
D) A portable device is a lightweight device
E) Macintosh and IBM PC are both types of PCs
Correct Answer
verified
Essay
Correct Answer
verified
View Answer
Multiple Choice
A) public String toString(int z) {
Return " " + x + " " + y + " " + z;
}
B) public String toString( ) {
Return super.toString( ) ;
}
C) public String toString( ) {
Return super.toString( ) + " " + z;
}
D) public String toString( ) {
Return super.toString( ) + " " x + " " + y + " " + z;
}
E) public String toString( ) {
Return " " + x + " + y + " " + z;
}
Correct Answer
verified
Multiple Choice
A) clone
B) compareTo
C) equals
D) toString
E) all of the above are methods of the Object class
Correct Answer
verified
True/False
Correct Answer
verified
Essay
Correct Answer
verified
View Answer
Essay
Correct Answer
verified
View Answer
Multiple Choice
A) has-a
B) is-a
C) was-a
D) instance-of
E) alias
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) interfaces
B) modulary
C) information hiding
D) code reuse
E) correctness
Correct Answer
verified
Multiple Choice
A) mouseClicked
B) mouseDragged
C) mouseEntered
D) mouseReleased
E) all of the above must be defined to implement the MouseListener interface
Correct Answer
verified
Showing 41 - 60 of 71
Related Exams