CSE 110 MIDTERM REVIEW 2026
COMPLETE QUESTIONS AND SOLUTIONS
◉Java uses the keyword ________ to return a value from a method.
Answer: return
◉Method overloading distinguishes between methods based on.
Answer: data types of arguments and number of arguments
◉The purpose of a constructor is to __________. Answer: initialize an
object to a valid state
◉An object is an instance of a class. Answer: True
◉Which of the following are good analogies for classes an objects?.
Answer: Cookie cutters and cookies
Blueprints and buildings
◉A name defined in an inner scope is not available outside that
block. Answer: True
, ◉All non-primitive types in Java are __________. Answer: reference
types
◉Which of the following step comes earliest in the object life cycle?.
Answer: initialization
◉A reference type variable can store a null reference in Java.
Answer: True
◉In Java what keyword does an object use to refer to itself?.
Answer: this
◉Arrays cannot be passed as arguments to methods in Java..
Answer: False
◉Which of the following is/are true about arrays? Choose all that
apply.. Answer: an array is a set of variables
◉Which of the following correctly demonstrates the use of an array
initializer list? Choose all that apply.. Answer: int[] my_array = {1, 2,
3, 4, 5};
◉The first element of an array is located at index _____.. Answer: 0
COMPLETE QUESTIONS AND SOLUTIONS
◉Java uses the keyword ________ to return a value from a method.
Answer: return
◉Method overloading distinguishes between methods based on.
Answer: data types of arguments and number of arguments
◉The purpose of a constructor is to __________. Answer: initialize an
object to a valid state
◉An object is an instance of a class. Answer: True
◉Which of the following are good analogies for classes an objects?.
Answer: Cookie cutters and cookies
Blueprints and buildings
◉A name defined in an inner scope is not available outside that
block. Answer: True
, ◉All non-primitive types in Java are __________. Answer: reference
types
◉Which of the following step comes earliest in the object life cycle?.
Answer: initialization
◉A reference type variable can store a null reference in Java.
Answer: True
◉In Java what keyword does an object use to refer to itself?.
Answer: this
◉Arrays cannot be passed as arguments to methods in Java..
Answer: False
◉Which of the following is/are true about arrays? Choose all that
apply.. Answer: an array is a set of variables
◉Which of the following correctly demonstrates the use of an array
initializer list? Choose all that apply.. Answer: int[] my_array = {1, 2,
3, 4, 5};
◉The first element of an array is located at index _____.. Answer: 0