Exam 2: Using Objects

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

In Java, objects within the same class share common _______.

(Multiple Choice)
4.9/5
(38)

The input to a method is called a(n) _______________.

(Multiple Choice)
4.8/5
(46)

A method name is ____________________ if a class has more than one method with that name (but different parameter types).

(Multiple Choice)
4.8/5
(39)

Which package is automatically imported in any Java program?

(Multiple Choice)
4.8/5
(28)

The "building blocks" that Java programmers use to write computer programs are called _______.

(Multiple Choice)
4.8/5
(33)

Which of the following method calls illustrate using the return value of a method as an argument?

(Multiple Choice)
4.9/5
(30)

Which of the following is the best choice for a variable identifier that will store a name?

(Multiple Choice)
4.9/5
(34)

Which is not a method of the String class?

(Multiple Choice)
4.9/5
(33)

What is the purpose of a test program?

(Multiple Choice)
4.9/5
(44)

If greeting refers to a String object, which of the following is a syntactically correct Java statement?

(Multiple Choice)
4.8/5
(29)

Which of the following statements about methods is correct?

(Multiple Choice)
4.8/5
(42)

What do object variables store?

(Multiple Choice)
4.9/5
(35)

Which of the following is a mutator method for the Rectangle class?

(Multiple Choice)
5.0/5
(34)

What is an object?

(Multiple Choice)
4.7/5
(35)

What terminology describes a method that returns information about an object and does not change the object's internal data?

(Multiple Choice)
4.8/5
(29)

In Java, a(n) _________ specifies the kind of values that can be stored in a variable.

(Multiple Choice)
4.9/5
(41)

What is the purpose of the assignment operator?

(Multiple Choice)
4.9/5
(38)

Assuming the following Java statement: int num = 10; What does the variable num store?

(Multiple Choice)
4.9/5
(39)

Which method could you use to obtain the string "1234567890" from the string "123-456-7890"?

(Multiple Choice)
4.9/5
(35)

Which statement about methods is true?

(Multiple Choice)
4.9/5
(41)
Showing 21 - 40 of 82
close modal

Filters

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