Exam 2: Using Objects

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

What is the name of the type that denotes whole numbers?

Free
(Multiple Choice)
4.8/5
(26)
Correct Answer:
Verified

B

To use a class in another package you need to ________ it.

Free
(Multiple Choice)
4.9/5
(36)
Correct Answer:
Verified

D

What is the name of the type that denotes floating-point numbers that can have fractional parts?

Free
(Multiple Choice)
4.7/5
(42)
Correct Answer:
Verified

A

"System.out" is an instance of (example of?) which class?

(Multiple Choice)
4.8/5
(37)

Which of the following constructs a Circle of radius 3, assuming the construction parameter is the radius value?

(Multiple Choice)
4.9/5
(39)

Which of the following values does not have a primitive type?

(Multiple Choice)
5.0/5
(44)

Which of the following declares a variable that will store a welcome message?

(Multiple Choice)
4.8/5
(37)

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

(Multiple Choice)
4.9/5
(37)

A set of values and the operations that can be carried out with those values are called _______.

(Multiple Choice)
4.8/5
(39)

Which statement calls a constructor with no construction parameters?

(Multiple Choice)
4.9/5
(35)

What do object variables store?

(Multiple Choice)
4.8/5
(34)

A _____________ is a collection of classes with a related purpose.

(Multiple Choice)
4.9/5
(34)

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

(Multiple Choice)
4.8/5
(40)

What is the output of the following code: Circle c1 = new Circle(3); Circle c2 = c1; C1)setRadius(4); System.out.println(c2.getRadius());

(Multiple Choice)
4.8/5
(49)

What is the name of the type that denotes a string of characters?

(Multiple Choice)
4.9/5
(30)

Which statement about identifiers is correct?

(Multiple Choice)
4.7/5
(38)

Which of the following statements about methods is correct?

(Multiple Choice)
4.8/5
(39)

What terminology describes a method that returns information about its implicit parameter and does not change the parameter's internal data?

(Multiple Choice)
4.8/5
(43)

Which statement stores an integer value in a variable?

(Multiple Choice)
4.9/5
(37)

What terminology describes a method that modifies the internal data of its implicit parameter?

(Multiple Choice)
4.7/5
(37)
Showing 1 - 20 of 76
close modal

Filters

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