Array

Array

10th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Tin học 11 chương I

Tin học 11 chương I

1st - 12th Grade

20 Qs

Coding Quiz

Coding Quiz

6th - 10th Grade

15 Qs

Problem Solving : Design Solution

Problem Solving : Design Solution

12th Grade

15 Qs

c# Diziler

c# Diziler

10th Grade

20 Qs

ว30285-ทดสอบเรื่องคำสั่งแบบเงื่อนไข

ว30285-ทดสอบเรื่องคำสั่งแบบเงื่อนไข

10th Grade

10 Qs

Javascript 2

Javascript 2

10th Grade

20 Qs

REMIDI PROGDAS

REMIDI PROGDAS

12th Grade

15 Qs

Class XI Basics

Class XI Basics

11th - 12th Grade

15 Qs

Array

Array

Assessment

Quiz

Computers

10th - 12th Grade

Practice Problem

Easy

Created by

Charles Martinez

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

2
7
4
12

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

2
7
4
12

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

2
0
12
6

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

4
5
6
7

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct way to initialize an integer array with 10 positions?

int numbers = new int[10];
int[] numbers = new int[];
int[10] numbers = new int[10];
int[] numbers = new int[10];

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What value is stored in each of the 5 positions in this array? (What is the default value provided by Java?).
int[] numbers = new int[10];

null
1
0
nothing

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What value is at index 1 in this array?  String[] names = {"Mack", "Dennis", "Dee", "Charlie"};

Mack
Dennis
Dee
Charlie

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?