Exam 3: Using Methods, Classes, and Objects

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

A(n) ____ method is a method that creates and initializes class objects.

(Multiple Choice)
4.9/5
(35)

When you think in an object-oriented manner, everything is a(n) ____________________.

(Short Answer)
4.7/5
(42)

In order to allocate memory for an object, you use the ____ operator.

(Multiple Choice)
4.9/5
(35)

Explain the difference between public access and private access when defining a class.

(Essay)
4.8/5
(38)

The name of the ____ is always the same as the name of the class whose objects it creates.

(Multiple Choice)
4.8/5
(46)

The method ____ is the first line of a method.

(Multiple Choice)
4.7/5
(36)

Write a valid class header with public access. Assign a legal identifier of your choice. Then write the body of the class that contains one data field named myPractice with a data type of double. Be sure to include any necessary curly braces and semicolons.

(Essay)
4.8/5
(37)

A(n) ____ variable is known only within the boundaries of the method.

(Multiple Choice)
4.9/5
(33)

You can write your own constructor methods; but when you don't write a constructor method for a class object, Java writes one for you.

(True/False)
4.7/5
(36)

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
(34)

A method body provides information about how other methods can interact with it.

(True/False)
4.9/5
(35)

How does a programmer use a method?

(Essay)
4.8/5
(32)

Describe fully qualified identifiers and explain why they are necessary.

(Essay)
4.9/5
(39)

Methods that retrieve values are called ____ methods.

(Multiple Choice)
4.8/5
(34)

Data items you use in a call to a method are called ____.

(Multiple Choice)
4.9/5
(43)

The interface is the part of a method that the method's client does not see.

(True/False)
4.8/5
(32)

What happens to a value returned from a method?

(Essay)
4.8/5
(34)

You can identify a class that is an application because it contains a public static void main() method.

(True/False)
4.8/5
(37)

When a variable ceases to exist at the end of a method, programmers say the variable ____.

(Multiple Choice)
4.8/5
(36)

Match each term with the correct statement below. -The first line of a method

(Multiple Choice)
4.9/5
(37)
Showing 21 - 40 of 68
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)