Exam 7: Arrays and Arraylists

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

An exception object's ________ method returns the exception's error message.

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

D

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.

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

B

A programmer must do the following before using an array:

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

D

Consider the code segment below.Which of the following statements is false? Int[] g; G = new int[23];

(Multiple Choice)
4.8/5
(36)

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

(Multiple Choice)
4.7/5
(41)

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

(Multiple Choice)
4.8/5
(38)

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

(Multiple Choice)
4.7/5
(37)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(27)

Which of the following tasks cannot be performed using an enhanced for loop?

(Multiple Choice)
4.9/5
(40)

Exception handling helps you create ________ programs.

(Multiple Choice)
4.9/5
(29)

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

Which set of statements totals the values in two-dimensional int array items?

(Multiple Choice)
4.9/5
(41)

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

(Multiple Choice)
4.9/5
(28)

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

A(n)________ indicates a problem that occurs while a program executes.

(Multiple Choice)
4.8/5
(35)

Which of the following will not produce a compiler error?

(Multiple Choice)
4.9/5
(41)

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

Which of the following statements about an arc is false?

(Multiple Choice)
4.8/5
(38)

Class Arrays provides method __________ for comparing arrays to determine whether they have the same contents.

(Multiple Choice)
4.8/5
(43)

When you pass an array or an individual array element of a reference type to a method,the called method receives ________.When you pass an individual element of a primitive type,the called method receives ________.

(Multiple Choice)
4.9/5
(43)
Showing 1 - 20 of 44
close modal

Filters

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