Quiz 15 - Array Basics
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Medium
Casey Devet
Used 84+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN
Quiz
•
11th Grade
10 questions
ตัวดำเนินการ
Quiz
•
11th Grade
10 questions
BAHASA C++
Quiz
•
11th Grade
15 questions
Soal Java
Quiz
•
11th Grade - University
15 questions
Python Programming
Quiz
•
5th Grade - University
10 questions
Year 9 Programming Constructs
Quiz
•
1st - 12th Grade
10 questions
Wstęp do programowania
Quiz
•
9th - 12th Grade
15 questions
Mảng 1 chiều
Quiz
•
8th - 11th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
20 questions
christmas songs
Quiz
•
KG - University
