java arrays

java arrays

11th Grade

22 Qs

quiz-placeholder

Similar activities

Processing- The CPU Quiz

Processing- The CPU Quiz

10th Grade - University

20 Qs

The Rise of Intelligent Machines

The Rise of Intelligent Machines

8th Grade - University

18 Qs

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

Skill Competition Quiz 2024

Skill Competition Quiz 2024

10th Grade - University

20 Qs

CSS - Operating System

CSS - Operating System

11th Grade

20 Qs

Animated Canvas

Animated Canvas

9th - 12th Grade

19 Qs

CS Terms and Vocab Practice Quiz 3

CS Terms and Vocab Practice Quiz 3

7th - 12th Grade

20 Qs

Grade 11 Final Exam

Grade 11 Final Exam

9th - 11th 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

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

Already have an account?