java arrays

java arrays

11th Grade

22 Qs

quiz-placeholder

Similar activities

Proses Komunikasi Data Pada Jaringan

Proses Komunikasi Data Pada Jaringan

11th Grade

20 Qs

History of Package Design

History of Package Design

9th - 12th Grade

20 Qs

NP IT Quiz ปริศนาไอที #4

NP IT Quiz ปริศนาไอที #4

9th - 12th Grade

20 Qs

Exam Style Questions

Exam Style Questions

10th - 11th Grade

18 Qs

Asas JavaScript

Asas JavaScript

1st Grade - University

18 Qs

Cuestionario 1.2 Preguntas posibles

Cuestionario 1.2 Preguntas posibles

7th Grade - University

20 Qs

Name The Disney Animation Films

Name The Disney Animation Films

KG - University

20 Qs

Clean, Sanitize and Store Kitchen Tools and Equipment

Clean, Sanitize and Store Kitchen Tools and Equipment

11th - 12th Grade

20 Qs

java arrays

java arrays

Assessment

Quiz

Computers

11th Grade

Practice Problem

Medium

Created by

barb gillming

Used 373+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What is the length of the following array: byte[] data = { 12, 34, 9, 0, -62, 88 };

1

5

6

12

2.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which of the following is FALSE about arrays on Java

A java array is always an object

Length of array can be changed after creation of array

Arrays in Java are always allocated on heap

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

class Demo1

{

public static void main(String args[])

{

int i[] = new int[10];

System.out.println(i[10]);

}

}

0

Garbage Value

Out-of-bounds exception

Error

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

_________________ is a collection of elements used to store the same type of data.

Array
Switch
Case
Loop

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What are the legal indexes for the array ar, given the following declaration:
int[] ar = {2, 4, 6, 8 }

 0, 1, 2, 3
 1, 2, 3, 4
2, 4, 6, 8
 0, 2, 4, 6

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What is the first index of an array?

1

0

2

3

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

What is returned by values[5]?

9
12
6
8

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?