717 views
3 votes
A method that receives a two-dimensional array uses two ____ pairs following the data type in the parameter list of the method header.

a.
parenthesis

b.
dot

c.
curly brace

d.
bracket

1 points

QUESTION 5

The bubble sort is the fastest and most efficient sorting technique.

True

False

1 points

QUESTION 6

With a two-dimensional array, the ____ field holds the number of rows in the array.

a.
row

b.
length

c.
size

d.
capacity

1 points

QUESTION 7

Which of the following describes a data type for which only appropriate behaviors are allowed?

a.
type-safe

b.
static

c.
value-neutral

d.
data-cast

1 points

QUESTION 8

When working with two-dimensional arrays, the length field holds the number of rows in an array and each row has a length field that holds the number of columns in the row.

True

False

1 points

QUESTION 9

In Java, you create an enumerated data type in a statement that uses the keyword ____.

a.
new

b.
sequence

c.
enum

d.
collection

1 points

QUESTION 10

The ArrayList class ____ method returns the current ArrayList size.

a.
length

b.
size

c.
capacity

d.
rows

1 points

QUESTION 11

Regarding enumerations, the ____ method returns an integer that represents the constant’s position in the list of constants; as with arrays, the first position is 0.

a.
ordinal

b.
indexOf

c.
positionOf

d.
valueAt

1 Answer

2 votes

Answer:

4. Curly brace

5. False

6. Lenght

7. Value-nuetral

8. True

9. Enum

10. Size

11. IndexOf

Step-by-step explanation:

4. Curly brace or Brackets {…} are often used in prose to designate a list of equal choices.

5. bubble sort is faster But as we take larger dataset, quicksort becomes increasingly efficient due to lower run-time complexity. Merge sort is faster than bubble sort.

6. 2 Dimensional Arrays. ... 2-dimensional arrays provide most of this capability. Like a 1D array, a 2D array is a collection of data cells, all of the same type, which can be given a single name. However, a 2D array is organized as a matrix with a number of rows and columns.

User Rayiez
by
5.5k points