wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Java 9 Test

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

___is the process of arranging a series of objects in some logical order

a)

Passing

b)

Organizing

c)

Sorting

d)

Sending

2.

An Array that you can picture as a column of values, and whose elements you can access using one subscript, is a __ Array.

a)

Single-Dimensional

b)

Two-Dimensional

c)

Parallel

d)

Column

3.

When Mathematicians use a two-dimensional array, they often call it a

a)

Grid

b)

Net

c)

Matrix

d)

Mesh

4.

To Declare a two-dimensional array in Java. you type two sets of __after the array type

a)

{ }

b)

[ ]

c)

( )

d)

< >

5.

The Arrays class__ method searches the specified array for the specified key value using the binary search algorithm

a)

binarySearch

b)

sort

c)

Equals

d)

Search

6.

The Arrays class__Method returns true if the two specified arrays of the same type are equal to one another.

a)

compare

b)

sort

c)

equals

d)

fill

7.

The negative integer returned by the binarySearch() Method when the value is not found is the negative equivalent of the array__.

a)

type

b)

scope

c)

size

d)

length

8.

Programmers often refer to a __ search as a "Divide and Conquer" Procedure.

a)

bubble

b)

binary

c)

division

d)

split

9.

You can add an item at any point in a __ container and the array size expands automatically to accommodate the new item

a)

ArrayList

b)

Array

c)

ResizableArray

d)

array

10.

An ArrayList's __ is the number of items it can hold without having to increase its size.

a)

length

b)

buffer

c)

capacity

d)

size