Exam 3: Using Methods Classes and Objects
Exam 1: Creating Java Programs61 Questions
Exam 2: Using Data67 Questions
Exam 3: Using Methods Classes and Objects66 Questions
Exam 4: More Object Concepts66 Questions
Exam 5: Making Decisions66 Questions
Exam 6: Looping66 Questions
Exam 7: Characters Strings and the Stringbuilder68 Questions
Exam 8: Arrays66 Questions
Exam 9: Advanced Array Concepts66 Questions
Exam 10: Introduction to Inheritance66 Questions
Exam 11: Advanced Inheritance Concepts66 Questions
Exam 12: Exception Handling66 Questions
Exam 13: File Input and Output66 Questions
Exam 14: Introduction to Swing Components66 Questions
Exam 15: Advanced Gui Topics66 Questions
Exam 16: Graphics66 Questions
Select questions type
Which of the following is NOT an initial value assigned to an object's data field by a default constructor?
(Multiple Choice)
4.9/5
(37)
Access specifiers are sometimes called access ____________________.
(Short Answer)
4.8/5
(39)
Match each term with the correct statement below.
Correct Answer:
Premises:
Responses:
(Matching)
4.9/5
(40)
When creating a method that requires multiple parameters, why would a programmer need to understand a method's signature, and why must a method call match the called method's signature?
(Essay)
4.8/5
(31)
You can identify a class that is an application because it contains a public static void main() method.
(True/False)
4.7/5
(36)
The interface is the part of a method that the method's client does not see.
(True/False)
5.0/5
(33)
A method body provides information about how other methods can interact with it.
(True/False)
4.7/5
(52)
Identify and describe the four components that make up the method header above.

(Essay)
4.7/5
(47)
When a value is returned from a method, you are required to use the value when the method is called.
(True/False)
4.8/5
(35)
A unique identifier is most likely used as a ____ key in a database.
(Multiple Choice)
4.8/5
(38)
A(n) ____ is a program module that contains a series of statements that carry out a task.
(Multiple Choice)
4.8/5
(41)
Method names that begin with ____ and set are very typical.
(Multiple Choice)
4.7/5
(40)
What are the possible results if arguments to a method are passed in the wrong order?
(Essay)
5.0/5
(42)
public class Employee
{
private int empNum;
private double empSalary;
public void setEmpNum(int emp)
{
empNum = emp;
}
public void setEmpSalary(double sal)
{
empSalary = sal;
}
}
Given the class defined in the code above, write the Java statements that will create a new employee instance called employee15 and assign an empNum of 15 and empSalary of 500.00 to that employee instance.
(Essay)
4.8/5
(45)
____ is a principle of object-oriented programming that describes the encapsulation of method details within a class.
(Multiple Choice)
5.0/5
(41)
A method's identifier must be more than one word, must have embedded spaces, and can be a Java keyword.
(True/False)
4.8/5
(36)
Showing 21 - 40 of 66
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)