COP 3330 EXAM 1 HIGH-YIELD CLASSES,
OBJECTS, FUNCTIONS, AND DATA
STRUCTURES SUMMARY 2026
◉ In object oriented programming how is state represented?
Answer: Member variables
◉ Methods
Answer: in object oriented programming how is behavior
represented?
◉ Serve as the blueprint of how objects will be created
Answer: What is the purpose of a class in object oriented
programming?
◉ True
Answer: Based on best practices and how the Java API Library is
implemented a class should start with a capital letter (i.e. Dog versus
dog).
◉ False
,Answer: When defining a class, member variables are included
within the class's open/close curly braces (i.e. {}) and methods are
defined outside of the open/close curly braces.
◉ True
Answer: Information hiding is accomplished via encapsulation
◉ 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?
OBJECTS, FUNCTIONS, AND DATA
STRUCTURES SUMMARY 2026
◉ In object oriented programming how is state represented?
Answer: Member variables
◉ Methods
Answer: in object oriented programming how is behavior
represented?
◉ Serve as the blueprint of how objects will be created
Answer: What is the purpose of a class in object oriented
programming?
◉ True
Answer: Based on best practices and how the Java API Library is
implemented a class should start with a capital letter (i.e. Dog versus
dog).
◉ False
,Answer: When defining a class, member variables are included
within the class's open/close curly braces (i.e. {}) and methods are
defined outside of the open/close curly braces.
◉ True
Answer: Information hiding is accomplished via encapsulation
◉ 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?