Exam 6: Methods: a Deeper Look

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

Which of the following is not a package in the Java API?

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

A

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){ … }

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

D

Which operator can be used in string concatenation?

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

B

Information is passed to a method in ________.

(Multiple Choice)
4.8/5
(38)

Identifiers in Java have ________ and ________ scopes?

(Multiple Choice)
4.8/5
(33)

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

(Multiple Choice)
4.9/5
(31)

Method calls cannot be distinguished by ________.

(Multiple Choice)
4.8/5
(35)

Stacks are known as ________ data structures.

(Multiple Choice)
4.7/5
(37)

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

(Multiple Choice)
4.8/5
(37)

Filled rectangles and filled circles are drawn using Graphics method ________ and ________.

(Multiple Choice)
4.9/5
(36)

Consider the following Java statements: Int x = 9; Double y = 5.3; Result = calculateValue(x,y); Which of the following statements is false?

(Multiple Choice)
4.7/5
(28)

Which of the following can be an argument to a method?

(Multiple Choice)
4.9/5
(29)

Overloaded methods always have the same _________.

(Multiple Choice)
4.9/5
(35)

A static method can ________.

(Multiple Choice)
4.9/5
(39)

Which statement below could be used to simulate the outputs of rolling a six-sided die? Suppose randomNumbers is a SecureRandom object.

(Multiple Choice)
4.8/5
(32)

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

(Multiple Choice)
4.9/5
(31)

When an object is concatenated with a String,________.

(Multiple Choice)
4.8/5
(29)

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.9/5
(38)

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

(Multiple Choice)
4.9/5
(38)

Java uses class ________ to represent colors using their RGB values.

(Multiple Choice)
4.9/5
(29)
Showing 1 - 20 of 39
close modal

Filters

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