Exam 2: Using Objects

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

Based on the following code, which of the following statements sets the frame to a width of 400 and a height of 200: Based on the following code, which of the following statements sets the frame to a width of 400 and a height of 200:

(Multiple Choice)
4.9/5
(41)

What is a storage location in the computer's memory called that has a type, name, and contents?

(Multiple Choice)
4.8/5
(40)

Assume the class Circle has an accessor called getRadius and a mutator called setRadius.What is the output of the following code? Assume the class Circle has an accessor called getRadius and a mutator called setRadius.What is the output of the following code?

(Multiple Choice)
4.9/5
(37)

Which of the following statements about test programs is true?

(Multiple Choice)
4.7/5
(39)

Which of the following declares a variable that will store a count with an integer value?

(Multiple Choice)
4.9/5
(45)

Which of the following terms denotes the memory location of an object?

(Multiple Choice)
4.8/5
(40)

Which of the following code fragments will cause an error?

(Multiple Choice)
4.8/5
(34)

What is the output of the following code: What is the output of the following code:

(Multiple Choice)
4.8/5
(38)

What is the output of the following code: What is the output of the following code:

(Multiple Choice)
4.8/5
(38)

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

(Multiple Choice)
4.9/5
(41)

The camel case naming convention uses _________ at intervals in the middle of the variable name.

(Multiple Choice)
4.8/5
(40)

Which term describes a method of an object that modifies that object's internal data?

(Multiple Choice)
4.8/5
(40)

Complete this code fragment to ensure that the frame is shown: JFrame frame = new JFrame();

(Multiple Choice)
4.9/5
(42)

What is the term used to specify the collection of things you can do with objects that belong to a class?

(Multiple Choice)
4.8/5
(44)

By convention among Java programmers, class names begin with a(n) _____________.

(Multiple Choice)
5.0/5
(43)

Which term is used to describe the name of a variable, method, or class?

(Multiple Choice)
4.8/5
(33)

Which of the following statements about objects is correct?

(Multiple Choice)
4.8/5
(33)

Which statement declares and stores an integer value in a variable?

(Multiple Choice)
4.9/5
(41)

By convention among Java programmers, variables begin with a(n) _____________.

(Multiple Choice)
4.7/5
(45)

You can invoke the println and print methods on which object?

(Multiple Choice)
4.8/5
(39)
Showing 41 - 60 of 82
close modal

Filters

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