Arrays

Arrays

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Liga Santander

Liga Santander

KG - Professional Development

15 Qs

Cougar Cafe Trivia 8.27.2021

Cougar Cafe Trivia 8.27.2021

9th - 12th Grade

20 Qs

TEKS IKLAN, SLOGAN DAN POSTER

TEKS IKLAN, SLOGAN DAN POSTER

8th Grade - University

20 Qs

TEMATIK (Tema 6 Subtema 1)

TEMATIK (Tema 6 Subtema 1)

10th Grade

15 Qs

Ulangan Haarian Bahasa Arab Kelas X SMK MUH 02 TANGSEL

Ulangan Haarian Bahasa Arab Kelas X SMK MUH 02 TANGSEL

12th Grade - University

20 Qs

INFERNO: Canto V

INFERNO: Canto V

1st - 12th Grade

20 Qs

LIBRO DEL AÑO CAPITULO 7

LIBRO DEL AÑO CAPITULO 7

4th Grade - University

16 Qs

Nieuwsquiz

Nieuwsquiz

1st - 12th Grade

19 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?