CSE 205 MIDTERM 2026 EXAM QUESTIONS AND
SOLUTIONS RATED A+
✔✔Members that are protected in the super class are visible in the derived class. -
✔✔True
✔✔A Java interface defines a set of methods that are required. - ✔✔True
✔✔Members that are protected in the derived class are visible in the super class. -
✔✔False
✔✔A sub-class may inherit methods or instance variables from its super class but not
both. - ✔✔False
✔✔The "super" keyword is used in the subclass constructor to call a specific super
class constructor. - ✔✔True
✔✔A class from which you can create objects is called a concrete class. - ✔✔True
✔✔All methods in an interface are automatically public. - ✔✔True
✔✔An abstract method has a name, a return type, and code in its body, but has no
parameters. - ✔✔False
✔✔A sub-class may inherit methods and instance variables from its super class, and
may also implement its own methods and declare its own instance variables. - ✔✔True
✔✔All methods in a Java interface must be abstract. - ✔✔True
✔✔An abstract method has a name, parameters, and a return type, but no code in the
body of the method. - ✔✔True
✔✔A super class inherits data and behavior from a subclass. - ✔✔False
✔✔You cannot create sub-classes from abstract classes. - ✔✔False
✔✔You can always use a sub-class object in place of a super class object. - ✔✔True
✔✔A subclass that inherits instance variables from its super class may not declare
additional instance variables. - ✔✔False
SOLUTIONS RATED A+
✔✔Members that are protected in the super class are visible in the derived class. -
✔✔True
✔✔A Java interface defines a set of methods that are required. - ✔✔True
✔✔Members that are protected in the derived class are visible in the super class. -
✔✔False
✔✔A sub-class may inherit methods or instance variables from its super class but not
both. - ✔✔False
✔✔The "super" keyword is used in the subclass constructor to call a specific super
class constructor. - ✔✔True
✔✔A class from which you can create objects is called a concrete class. - ✔✔True
✔✔All methods in an interface are automatically public. - ✔✔True
✔✔An abstract method has a name, a return type, and code in its body, but has no
parameters. - ✔✔False
✔✔A sub-class may inherit methods and instance variables from its super class, and
may also implement its own methods and declare its own instance variables. - ✔✔True
✔✔All methods in a Java interface must be abstract. - ✔✔True
✔✔An abstract method has a name, parameters, and a return type, but no code in the
body of the method. - ✔✔True
✔✔A super class inherits data and behavior from a subclass. - ✔✔False
✔✔You cannot create sub-classes from abstract classes. - ✔✔False
✔✔You can always use a sub-class object in place of a super class object. - ✔✔True
✔✔A subclass that inherits instance variables from its super class may not declare
additional instance variables. - ✔✔False