Exam 2: Using Objects

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

What is the name of the = operator in Java?

(Multiple Choice)
4.7/5
(37)

If greeting is a String object, which method call is incorrect?

(Multiple Choice)
4.9/5
(46)

Input to a method enclosed in parentheses after the method name is known as ______________.

(Multiple Choice)
4.9/5
(45)

Based on the following statement, which of the following statements sets the title of the frame: JFrame frame = new JFrame();

(Multiple Choice)
4.8/5
(31)

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

(Multiple Choice)
4.8/5
(39)

The output of a method is called its __________ value.

(Multiple Choice)
4.7/5
(38)

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

(Multiple Choice)
4.8/5
(49)

Which is a valid number literal?

(Multiple Choice)
4.9/5
(42)

Which package is automatically imported in any Java program?

(Multiple Choice)
4.8/5
(36)

What is the output of the following code: Int num1 = 6; Int num2 = 10; Num1 = num1 + num2; Num2 = num1 + num2; System.out.println(num1 + ", " + num2);

(Multiple Choice)
4.9/5
(34)

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

(Multiple Choice)
4.7/5
(30)

What is the term used to specify the remote control for a class, indicating what you can do with the objects that belong to the class?

(Multiple Choice)
4.8/5
(43)

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

(Multiple Choice)
4.9/5
(37)

What is the purpose of the assignment operator?

(Multiple Choice)
4.8/5
(32)

Which of the following method calls illustrates the return value of a method as a parameter?

(Multiple Choice)
4.9/5
(45)

What is the declared return type for a method that does not have a return value?

(Multiple Choice)
4.9/5
(45)
Showing 61 - 76 of 76
close modal

Filters

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