Exam 7: Arrays and Arraylists

arrow

6,789 students have unlocked this exam

  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

When an argument is passed by reference,________.

(Multiple Choice)
4.8/5
(43)

Assume class Book has been declared.Which set of statements creates an array of Books?

(Multiple Choice)
4.7/5
(38)

Which method call converts the value in variable stringVariable to an integer?

(Multiple Choice)
4.8/5
(38)

Which of the following statements creates a multidimensional array with 3 rows,where the first row contains 1 element,the second row contains 4 elements and the final row contains 2 elements?

(Multiple Choice)
4.7/5
(36)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(33)

What do the following statements do? Double[] array; Array = new double[14];

(Multiple Choice)
4.9/5
(34)

How many Book objects are created by the following statement? Book[] books = new Book[10];

(Multiple Choice)
4.9/5
(33)

In Java,multidimensional arrays ________.

(Multiple Choice)
4.9/5
(29)

Which expression adds 1 to the element of array arrayName at index i?

(Multiple Choice)
4.9/5
(33)

Which of the following is false?

(Multiple Choice)
4.9/5
(45)

Arrays are ________.

(Multiple Choice)
4.7/5
(34)

Which of the following initializer lists would correctly set the elements of array n?

(Multiple Choice)
4.9/5
(32)

An array with m rows and n columns is not ________. a)an m-by-n array. b)an n-by-m array. c)a two-dimensional array. d)a dual-transcripted array.

(Multiple Choice)
4.8/5
(39)

Which method sets the background color of a JPanel?

(Multiple Choice)
4.9/5
(39)

Which statement correctly passes the array items to method takeArray? Array items contains 10 elements.

(Multiple Choice)
4.8/5
(34)

Which command below runs TestProgram,and passes in the values files.txt and 3?

(Multiple Choice)
4.8/5
(40)

Class Arrays methods sort,binarySearch,equals and fill are overloaded for primitive-type arrays and Object arrays.In addition,methods __________ and __________ are overloaded with generic versions.

(Multiple Choice)
4.8/5
(37)

What kind of application tests a class by creating an object of that class and calling the class's methods?

(Multiple Choice)
4.8/5
(41)

Which of the following statements is true?

(Multiple Choice)
4.8/5
(34)

For the array that was the correct answer in the previous question,what is the value returned by items[1][0]?

(Multiple Choice)
4.9/5
(40)
Showing 21 - 40 of 44
close modal

Filters

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