Exam 7: User-Defined Methods

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

The return statement must be the last line of the method.

(True/False)
4.9/5
(34)

Which of the following is an example of a local identifier in the example seen in the accompanying figure?

(Multiple Choice)
4.8/5
(39)

In Java, return is a reserved word.

(True/False)
4.9/5
(35)

Which modifier is used to specify that a method cannot be used outside a class?

(Multiple Choice)
4.9/5
(33)

Which of the following statements is NOT true?

(Multiple Choice)
4.9/5
(40)

The program that tests a method is called a ____ program.

(Multiple Choice)
4.9/5
(35)

Suppose that the following statement is included in a program. import static java.lang.Math.*; After this statement, a static method of the class Math can be called using just the method name.

(True/False)
4.9/5
(33)

Which of the following identifiers seen in the accompanying figure is visible in main?

(Multiple Choice)
4.7/5
(44)

In order to use the method isUpperCase of the class Character, the package java.lang must be explicitly imported.

(True/False)
4.9/5
(31)

Which of the following is NOT true about return statements?

(Multiple Choice)
4.9/5
(31)
Showing 41 - 50 of 50
close modal

Filters

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