Exam 6: Methods: a Deeper Look

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

Math static method random generates a random double value in the range from 0.0

(Multiple Choice)
4.8/5
(36)

Information is passed to a method in ________.

(Multiple Choice)
4.9/5
(39)

When an object is concatenated with a String, ________.

(Multiple Choice)
4.9/5
(32)

Which of the following methods is not in the Math class?

(Multiple Choice)
4.7/5
(30)

Which of these statements best defines scope?

(Multiple Choice)
4.8/5
(30)

Which of the following statements describes block scope?

(Multiple Choice)
4.8/5
(41)

Which of the following methods are overloaded with respect to one another? public int max (int a, int b) { … } Public double max (double a, double b) { … } Public int max (int a, int b, int c) { … } Public double max (double a, double b, double c) { … }

(Multiple Choice)
4.8/5
(34)

Which of the following promotions of primitive types is not allowed to occur?

(Multiple Choice)
4.7/5
(36)

Identifiers in Java have ________ and ________ scopes?

(Multiple Choice)
4.9/5
(39)

A Java class can have which of the following methods? A. void foo(int a) B. void foo(int a, int b) C. void foo(double a) D. void foo(double a, double b) E. void foo(int b)

(Multiple Choice)
4.8/5
(36)

Any field declared with keyword ________ is constant.

(Multiple Choice)
4.9/5
(43)

The identifiers in an enumeration ________.

(Multiple Choice)
4.8/5
(37)

Method log takes the logarithm of its argument with respect to what base?

(Multiple Choice)
4.9/5
(39)

In a class containing methods with the same name, the methods are distinguished by ________.

(Multiple Choice)
4.8/5
(35)

The jjava.text package contains classes for manipulating all of the following items except ________.

(Multiple Choice)
4.9/5
(30)

Which statement below could be used to simulate the outputs of tossing a quarter to get heads or tails? Suppose randomNumbers is a SecureRandom object.

(Multiple Choice)
4.9/5
(24)

To declare a method as static, place the keyword static before ________ in the method's declaration.

(Multiple Choice)
4.8/5
(36)

If more method calls occur than can have their activation records stored on the program execution stack, an error known as a ________ occurs.

(Multiple Choice)
4.8/5
(40)
Showing 21 - 38 of 38
close modal

Filters

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