Exam 7: Arrays and Arraylists

arrow

12,679 students have unlocked this exam

  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Which flag in a format specifier indicates that values with fewer digits than the field width should begin with a leading 0?

Free
(Multiple Choice)
4.8/5
(33)
Correct Answer:
Verified

D

Class ________ represents a dynamically resizable array-like data structure.

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

B

Which method sets the background color of a JPanel?

Free
(Multiple Choice)
4.8/5
(35)
Correct Answer:
Verified

B

Arrays are:

(Multiple Choice)
4.9/5
(30)

In this question,assume a class,Book,has been defined.Which set of statements creates an array of Book objects?

(Multiple Choice)
5.0/5
(40)

Which of the following is false?

(Multiple Choice)
4.9/5
(36)

Which of the following statements about creating arrays and initializing their elements is false?

(Multiple Choice)
4.8/5
(38)

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

(Multiple Choice)
4.9/5
(28)

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

(Multiple Choice)
4.8/5
(40)

When an argument is passed by reference:

(Multiple Choice)
4.8/5
(37)

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

(Multiple Choice)
4.8/5
(42)

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
(40)

Which statement below initializes array items to contain 3 rows and 2 columns?

(Multiple Choice)
4.8/5
(41)

Constant variables also are called .

(Multiple Choice)
4.8/5
(39)

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.8/5
(36)

In Java,multidimensional arrays:

(Multiple Choice)
4.8/5
(33)

Consider integer array values,which contains 5 elements.Which statements successfully swap the contents of the array at index 3 and index 4?

(Multiple Choice)
4.8/5
(40)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(40)

Assume array items contains the integer values 0,2,4,6 and 8.Which of the following set of statements uses the enhanced for loop to display each value in array items?

(Multiple Choice)
4.9/5
(41)

Which of the following statements about an arc is false?

(Multiple Choice)
4.9/5
(48)
Showing 1 - 20 of 41
close modal

Filters

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