Arrays

Arrays

11th Grade

10 Qs

quiz-placeholder

Similar activities

Паскаль. Основные команды

Паскаль. Основные команды

8th - 11th Grade

10 Qs

C++ dasar

C++ dasar

10th - 12th Grade

9 Qs

Cambridge Nationals IT Data Types Recap

Cambridge Nationals IT Data Types Recap

11th Grade

11 Qs

Javascript Quiz 2

Javascript Quiz 2

11th Grade

15 Qs

exploring computer science

exploring computer science

9th - 12th Grade

15 Qs

LA7.C7: Turtle Graphics

LA7.C7: Turtle Graphics

9th Grade - University

14 Qs

CompTIA A+February27

CompTIA A+February27

11th Grade

11 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

Arrays

Arrays

Assessment

Quiz

Computers

11th Grade

Practice Problem

Medium

Created by

Paul Greenwood

Used 39+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

True or False:  An array can be store different types of data (like store both doubles and ints).

True
False

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct way to create an array with these three numbers: 12  8  15

int[] = {12, 8, 15};
int[] nums = {12  8  15};
int[] nums = {12, 8, 15}
int[] nums = {12, 8, 15};

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

Mack
Dennis
Dee
Charlie

4.

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

5.

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[5];

null
1
0
nothing

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

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

7.

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

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?