Arrays

Arrays

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

二年级数学 1000 以内的整数 (3)

二年级数学 1000 以内的整数 (3)

KG - Professional Development

20 Qs

LATIHAN SOAL KELAS 8

LATIHAN SOAL KELAS 8

1st - 10th Grade

20 Qs

Tanaman Bunga dalam Pot

Tanaman Bunga dalam Pot

10th Grade

15 Qs

Soal PTS B. IND sem GENAP

Soal PTS B. IND sem GENAP

10th - 12th Grade

20 Qs

Ôn tập Tin 11 trong thời gian nghỉ phòng chống dịch COVID-19

Ôn tập Tin 11 trong thời gian nghỉ phòng chống dịch COVID-19

11th Grade

20 Qs

Observasi

Observasi

10th Grade

20 Qs

Kids Kinus 5782

Kids Kinus 5782

5th - 9th Grade

20 Qs

Analisa Peluang Usaha

Analisa Peluang Usaha

11th Grade

15 Qs

Arrays

Arrays

Assessment

Quiz

Other

9th - 12th Grade

Practice Problem

Medium

Created by

Brianna Kane

Used 69+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

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

2.

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

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

How will you identify a single array?

single curly brackets
single square brackets
multiple squares brackets
single angled brackets

4.

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

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What does the following segment of code print out? int[] numArray = { 2, 7, 4, 12, 0, 2 };
System.out.println("Number: " + numArray[2]);

Number: 2
Number: 7
Number: 4
Number: 12

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What does the following segment of code print out? int[] numArray = { 2, 7, 4, 12, 0, 2 };
System.out.println("Number: " + numArray[0]);

Number: 2
Number: 7
Number: 4
Number: 12

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What does the following segment of code print out? int[] numArray = { 2, 7, 4, 12, 0, 2 };
System.out.println("Number: " + numArray[numArray.length - 1]);

Number: 2
Number: 0
Number: 12
Number: 6

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?