Quiz 15 - Array Basics

Quiz 15 - Array Basics

11th Grade

10 Qs

quiz-placeholder

Similar activities

Five Nights At Freddy's: Security Breach Quiz

Five Nights At Freddy's: Security Breach Quiz

KG - Professional Development

13 Qs

Access - Lesson 14

Access - Lesson 14

9th - 12th Grade

10 Qs

4.6.4 Logic Gates

4.6.4 Logic Gates

10th Grade - Professional Development

15 Qs

Wee Word Intro

Wee Word Intro

7th - 12th Grade

12 Qs

Abhyudaya coding class -  Grade 7

Abhyudaya coding class - Grade 7

6th Grade - University

10 Qs

What would you do if...

What would you do if...

1st - 12th Grade

10 Qs

Quiz on Array

Quiz on Array

11th - 12th Grade

10 Qs

Hazards, Risks and Precautions

Hazards, Risks and Precautions

9th - 11th Grade

15 Qs

Quiz 15 - Array Basics

Quiz 15 - Array Basics

Assessment

Quiz

Computers

11th Grade

Practice Problem

Medium

Created by

Casey Devet

Used 84+ 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

5 mins • 1 pt

Which of the following types of data can be put into an array?

int

String

JLabel

all of the above

2.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What is the correct way to create an array that holds 10 integers?

int scores = new int [10];

int scores = new int [9];

int [] scores = new int [10];

int [] scores = new int [9];

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which instruction will print the 7th element of the array "scores"?

System.out.println(scores[7]);

System.out.println(scores[6]);

System.out.println(scores[8]);

System.out.println(scores7);

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which instruction can be used to change the value at index 4 of the array "scores"?

scores_4 = 14728;

scores[5] = 14728;

scores[3] = 14728;

scores[4] = 14728;

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which statement can be used to create an array that holds the names of the days of the week?

String [] dayNames = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"};

String [] dayNames = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];

String dayNames = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"};

String dayNames = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

In Java, you can change multiple array elements at once.

True

False

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

int [] scores = new int [10];


What values will initially be stored in the array elements of "scores"?

0

nothing

a random value

1

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?