COP 3330 EXAM 1 MOCK TEST WITH
ANSWER RATIONALES 2026
◉ Dog puppy = new Dog();
Answer: Which of the following is the correct code for instantiating
an instance of class Dog?
◉ puppy
Answer: Which part of the following statement is the instance or the
created object?
◉ Constructor
Answer: In the following statement, Dog puppy = new Dog();, what
is "Dog()" called?
◉1
Answer: How many superclasses can a subclass have ( in Java)?
◉ unlimited
Answer: How many subclasses can a superclass have?
◉ Access level modifier
,Answer: Given the class definition
public class KeyTerminology{}
what is "public" called?
◉ Inheritance
Answer: What type of implementation behavior is the following
class definition doing?
public class SubclassDog extends Dog{}
◉ extends
Answer: When creating a subclass from a superclass what key word
must precede the existing superclass?
◉ interface
Answer: What type of object is the following code defining?
public interface IDog {}
◉ implementing an interface
, Answer: What behavior is the following code implementing?
public class DogTwo implements IDog {}
◉0
Answer: What is the minimum number of interfaces a class can
implement?
◉ unlimited
Answer: What is the maximum number of interfaces a class can
implement?
◉ namespace for organizing classes and interfaces in a logical
manner
Answer: What is the purpose of packages in Java as an object
oriented programming language?
◉ Unlimited
Answer: Which of the following is NOT the number of operands an
operator can perform specific operations on?
)1
)3
)2
ANSWER RATIONALES 2026
◉ Dog puppy = new Dog();
Answer: Which of the following is the correct code for instantiating
an instance of class Dog?
◉ puppy
Answer: Which part of the following statement is the instance or the
created object?
◉ Constructor
Answer: In the following statement, Dog puppy = new Dog();, what
is "Dog()" called?
◉1
Answer: How many superclasses can a subclass have ( in Java)?
◉ unlimited
Answer: How many subclasses can a superclass have?
◉ Access level modifier
,Answer: Given the class definition
public class KeyTerminology{}
what is "public" called?
◉ Inheritance
Answer: What type of implementation behavior is the following
class definition doing?
public class SubclassDog extends Dog{}
◉ extends
Answer: When creating a subclass from a superclass what key word
must precede the existing superclass?
◉ interface
Answer: What type of object is the following code defining?
public interface IDog {}
◉ implementing an interface
, Answer: What behavior is the following code implementing?
public class DogTwo implements IDog {}
◉0
Answer: What is the minimum number of interfaces a class can
implement?
◉ unlimited
Answer: What is the maximum number of interfaces a class can
implement?
◉ namespace for organizing classes and interfaces in a logical
manner
Answer: What is the purpose of packages in Java as an object
oriented programming language?
◉ Unlimited
Answer: Which of the following is NOT the number of operands an
operator can perform specific operations on?
)1
)3
)2