CSE 205 FINAL Exam 2026|2027 Questions with
Detailed Verified Answers
When declared as "protected", data in an object can be accessed by __________.
A. only by that class's methods and by all of its subclasses
B. only by that class's methods, by all of its subclasses, and by methods in classes within the
same package
C. only by that class's methods
D. by any class - Answer -B. only by that class's methods, by all of its subclasses, and by methods
in classes within the same package
Which of the following statements about classes is NOT true?
A. you cannot create n object from a class declared with a keyword "final"
B. you can override methods in a class declared with the keyword "final"
C. you cannot extend a class declared with the keyword "final"
D. you cannot create subclasses from a class declared with the keyword "final" - Answer -B. you
can override methods in a class declared with the keyword "final
A class from which you cannot create objects is called a/an _________
A. abstract class
B. concrete class
C. non-inheritance class
D. superclass - Answer -A. abstract class
1|Page
, Which of the following statements about classes is true?
A. you can create an object from a concrete class, but not from an abstract class
B. you can create an object from an abstract class, but not from a concrete class
C. you cannot have an object reference whose type is an abstract class
D. you cannot create subclasses from abstract classes - Answer -A. you can create an object
from a concrete class, but not from an abstract class
Which of the following is true regarding subclasses?
A. a subclass has access to private instance variables of its superclass
B. a subclass doe not have access to public instance variables of its superclass
C. a subclass must specify the implicit parameter to use methods inherited from its superclass
D. a subclass has no access to private instance variables of its superclass - Answer -D. a subclass
has no access to private instance variables of its superclass
A class that represents a more specific entity in an inheritance hierarchy is called a/an
_____________
A. default class
B. superclass
C. subclass
D. inheritance class - Answer -C. subclass
In each iteration, selection sort places which element in the correct location?
A. the smallest in the array
2|Page
Detailed Verified Answers
When declared as "protected", data in an object can be accessed by __________.
A. only by that class's methods and by all of its subclasses
B. only by that class's methods, by all of its subclasses, and by methods in classes within the
same package
C. only by that class's methods
D. by any class - Answer -B. only by that class's methods, by all of its subclasses, and by methods
in classes within the same package
Which of the following statements about classes is NOT true?
A. you cannot create n object from a class declared with a keyword "final"
B. you can override methods in a class declared with the keyword "final"
C. you cannot extend a class declared with the keyword "final"
D. you cannot create subclasses from a class declared with the keyword "final" - Answer -B. you
can override methods in a class declared with the keyword "final
A class from which you cannot create objects is called a/an _________
A. abstract class
B. concrete class
C. non-inheritance class
D. superclass - Answer -A. abstract class
1|Page
, Which of the following statements about classes is true?
A. you can create an object from a concrete class, but not from an abstract class
B. you can create an object from an abstract class, but not from a concrete class
C. you cannot have an object reference whose type is an abstract class
D. you cannot create subclasses from abstract classes - Answer -A. you can create an object
from a concrete class, but not from an abstract class
Which of the following is true regarding subclasses?
A. a subclass has access to private instance variables of its superclass
B. a subclass doe not have access to public instance variables of its superclass
C. a subclass must specify the implicit parameter to use methods inherited from its superclass
D. a subclass has no access to private instance variables of its superclass - Answer -D. a subclass
has no access to private instance variables of its superclass
A class that represents a more specific entity in an inheritance hierarchy is called a/an
_____________
A. default class
B. superclass
C. subclass
D. inheritance class - Answer -C. subclass
In each iteration, selection sort places which element in the correct location?
A. the smallest in the array
2|Page