ITSC 1213 TEST 1 REVIEW QUESTIONS AND
CORRECT ANSWERS
A java class is - Answers - a blueprint for creating objects
In object-oriented programming we - Answers - model real-world "things" or projects in
code
Javac is a - Answers - complier
The hierarchy of code elements in Java is - Answers - Source -> Class -> Method ->
Statement
Considering how parameters are used in methods, Java passes everything by -
Answers - argument
The maximum number of values a method is allowed to return is - Answers - one and
only one
The Java equivalent of cout is - Answers - System.out.println(...);
In Java, a class - Answers - defined the operations an object can perform and the
information that object "knows"
In Java, everything goes in a class - Answers - True
In a Java class, the name of a method that can be executed is - Answers - main
A variable that refers to an object is called an - Answers - object reference variable or
object variable
Things an object knows about itself are called - Answers - instance variables
Things an object can do are called - Answers - methods
a class is a _______ for creating an object - Answers - blueprint
Besides object reference variables, Java recognizes - Answers - primitive variables
an object is an _______ of a class - Answers - istance
What is the correct way to create a new object of the Fruit class? - Answers - Fruit apple
= new Fruit();
, In the following statement, the term for the word "apple" is what
Fruit apple = new Fruit(); - Answers - Object reference variable
In the following statement, the term for "Fruit()" is what? - Answers - Constructor
Which of the following would be the correct way to refer to an object variable named
"size" that had been defined in the Shirt class if you had created a Shirt object named
silkShirt? - Answers - silkShirt(size)
Multiple methods with the same name but different parameter lists are said to be -
Answers - overloaded
A unique object field is found in - Answers - every instance of the class
The keyword used to indicate a field is a class field is - Answers - static
getter - Answers - accessor
setter - Answers - mutator
encapsulation - Answers - data hiding
A method's name and parameter list are referred to as a - Answers - signature
What is the keyword to use to indicate that a variable's value cannot be changed -
Answers - final
A synonym for class method is which of the following - Answers - static method
The area of code in which a variable is known is called its - Answers - scope
The standard for encapsulation is to declare your instance variables to be _____ and
your methods to be _____. - Answers - private, public
If only the code within the same package can access your fields and/or methods, you
have used which of the following access modifiers? - Answers - default
You can use the keyword "final" to modify non-static variables - Answers - True
Another name for a field is an _____ variable - Answers - instance
An instance variable remains accessible only as long as its _____ - Answers - class
Digitizing a sound means to capture the _____________ with a microphone. - Answers
- pitch
CORRECT ANSWERS
A java class is - Answers - a blueprint for creating objects
In object-oriented programming we - Answers - model real-world "things" or projects in
code
Javac is a - Answers - complier
The hierarchy of code elements in Java is - Answers - Source -> Class -> Method ->
Statement
Considering how parameters are used in methods, Java passes everything by -
Answers - argument
The maximum number of values a method is allowed to return is - Answers - one and
only one
The Java equivalent of cout is - Answers - System.out.println(...);
In Java, a class - Answers - defined the operations an object can perform and the
information that object "knows"
In Java, everything goes in a class - Answers - True
In a Java class, the name of a method that can be executed is - Answers - main
A variable that refers to an object is called an - Answers - object reference variable or
object variable
Things an object knows about itself are called - Answers - instance variables
Things an object can do are called - Answers - methods
a class is a _______ for creating an object - Answers - blueprint
Besides object reference variables, Java recognizes - Answers - primitive variables
an object is an _______ of a class - Answers - istance
What is the correct way to create a new object of the Fruit class? - Answers - Fruit apple
= new Fruit();
, In the following statement, the term for the word "apple" is what
Fruit apple = new Fruit(); - Answers - Object reference variable
In the following statement, the term for "Fruit()" is what? - Answers - Constructor
Which of the following would be the correct way to refer to an object variable named
"size" that had been defined in the Shirt class if you had created a Shirt object named
silkShirt? - Answers - silkShirt(size)
Multiple methods with the same name but different parameter lists are said to be -
Answers - overloaded
A unique object field is found in - Answers - every instance of the class
The keyword used to indicate a field is a class field is - Answers - static
getter - Answers - accessor
setter - Answers - mutator
encapsulation - Answers - data hiding
A method's name and parameter list are referred to as a - Answers - signature
What is the keyword to use to indicate that a variable's value cannot be changed -
Answers - final
A synonym for class method is which of the following - Answers - static method
The area of code in which a variable is known is called its - Answers - scope
The standard for encapsulation is to declare your instance variables to be _____ and
your methods to be _____. - Answers - private, public
If only the code within the same package can access your fields and/or methods, you
have used which of the following access modifiers? - Answers - default
You can use the keyword "final" to modify non-static variables - Answers - True
Another name for a field is an _____ variable - Answers - instance
An instance variable remains accessible only as long as its _____ - Answers - class
Digitizing a sound means to capture the _____________ with a microphone. - Answers
- pitch