Quiz 15 - Array Basics

Quiz
•
Computers
•
11th Grade
•
Medium
Casey Devet
Used 84+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Arrays Intro

Quiz
•
9th - 12th Grade
10 questions
AP CSA Unit 1 & 2 Review

Quiz
•
9th - 12th Grade
11 questions
Trabajando con ArrayList

Quiz
•
9th - 12th Grade
7 questions
Topic 6.1 Video 1

Quiz
•
11th Grade
11 questions
SK T4 : Tatasusunan

Quiz
•
11th - 12th Grade
15 questions
Area With Arrays

Quiz
•
10th - 12th Grade
15 questions
Array

Quiz
•
10th - 12th Grade
15 questions
Soal Java

Quiz
•
11th Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade