Exam 6: Arrays and Arraylists

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

Exception handling helps you create ________ programs.

(Multiple Choice)
4.8/5
(34)

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

(Multiple Choice)
4.8/5
(39)

In array items, which expression below accesses the value at row 3 and column 4?

(Multiple Choice)
4.8/5
(32)

When an argument is passed by reference, ________.

(Multiple Choice)
4.7/5
(44)

Which of the following statements is false?

(Multiple Choice)
4.9/5
(30)

Which of the following will not produce a compiler error?

(Multiple Choice)
4.8/5
(33)

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

(Multiple Choice)
4.8/5
(31)

Attempting to access an array element outside of the bounds of an array, causes a(n) .

(Multiple Choice)
4.8/5
(36)

An argument type followed by a(n) in a method's parameter list indicates that the method receives a variable number of arguments of that particular type.

(Multiple Choice)
4.9/5
(44)

Which of the following statements is true?

(Multiple Choice)
4.8/5
(37)

Invalid possibilities for array indices include .

(Multiple Choice)
4.8/5
(37)

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

A programmer must do the following before using an array:

(Multiple Choice)
4.8/5
(40)

Consider the array: S[0] = 7 S[1] = 0 S[2] = -12 S[3] = 9 S[4] = 10 S[5] = 3 S[6] = 6 The value of s[s[6] - s[5]] is:

(Multiple Choice)
4.8/5
(34)

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

(Multiple Choice)
4.8/5
(43)

Which method sets the background color of a JPanel?

(Multiple Choice)
4.8/5
(42)

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

(Multiple Choice)
4.8/5
(40)

Which of the following statements about arrays are true? A. An array is a group of variables containing values that all have the same type. B.Elements are located by index. C. The length of an array c is determined by the expression c.length();. D. The zeroth element of array c is specified by c[0].

(Multiple Choice)
4.9/5
(33)

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

(Multiple Choice)
4.8/5
(29)

Constant variables also are called .

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

Filters

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