Exam 8: Arrays;Introduction to Exception Handling

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

Suppose that class Book has been defined.Which of the following creates an array of Book objects

(Multiple Choice)
4.8/5
(30)

The parameter in the Main header allows for ________

(Multiple Choice)
4.8/5
(33)

Arrays may have dimensions.

(Multiple Choice)
4.8/5
(34)

Which of the following statements about arrays are true A.An array is a group of variables that all have the same type. B.Elements are located by index or subscript. 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.8/5
(39)

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

(Multiple Choice)
4.8/5
(43)

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

(Multiple Choice)
5.0/5
(36)

Which of the following correctly declares and allocates an array of double values

(Multiple Choice)
4.9/5
(35)

What is the method header for passing in the variable that holds a reference to an array of Strings

(Multiple Choice)
5.0/5
(35)

Passing a reference type by value is done to protect:

(Multiple Choice)
5.0/5
(34)

Which of the following statements is false

(Multiple Choice)
4.8/5
(39)

One could iterate through multi-dimensional arrays by using nested for loops.

(True/False)
4.8/5
(38)

The number in square brackets after an array name is the of an item.

(Multiple Choice)
4.9/5
(29)

is (are)typically used to traverse a two-dimensional array.

(Multiple Choice)
4.7/5
(33)

What is the keyword associated with variable-length argument lists

(Multiple Choice)
4.9/5
(40)

When a method receives a reference-type object parameter by value,the object is actually passed by value.

(True/False)
4.8/5
(45)

Constants are declared using keyword

(Multiple Choice)
4.8/5
(38)

Jagged arrays are maintained as arrays of arrays.

(True/False)
4.8/5
(36)

What can foreach statements iterate through

(Multiple Choice)
4.8/5
(30)

Changes made to an entire array that has been passed to a method will not affect the original values of the array.

(True/False)
4.9/5
(35)

Command-line arguments allow the user to pass information into an app as it begins executing.

(True/False)
4.7/5
(34)
Showing 41 - 60 of 90
close modal

Filters

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