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)
5.0/5
(75)

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

(Short Answer)
4.8/5
(78)

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

(Multiple Choice)
4.9/5
(70)

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

(Essay)
4.8/5
(72)

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

(Multiple Choice)
4.8/5
(83)

The method ____ is the first line of a method.

(Multiple Choice)
4.8/5
(79)

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.9/5
(88)

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

(Multiple Choice)
4.9/5
(79)

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.9/5
(78)

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

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

(True/False)
4.9/5
(82)

How does a programmer use a method?

(Essay)
4.8/5
(84)

Describe fully qualified identifiers and explain why they are necessary.

(Essay)
4.9/5
(78)

Methods that retrieve values are called ____ methods.

(Multiple Choice)
4.8/5
(77)

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

(Multiple Choice)
4.9/5
(88)

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

(True/False)
4.8/5
(77)

What happens to a value returned from a method?

(Essay)
4.8/5
(76)

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

(True/False)
4.8/5
(73)

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

(Multiple Choice)
4.8/5
(91)

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

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

Filters

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