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
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
12 questions
GCE AQA CS - 04 Computer Architecture
Quiz
•
10th - 11th Grade
12 questions
RO81 LO1 Mind maps and visualisations
Quiz
•
9th - 11th Grade
10 questions
USING HAND TOOLS
Quiz
•
11th Grade
13 questions
Five Nights At Freddy's: Security Breach Quiz
Quiz
•
KG - Professional Dev...
14 questions
Bài 29. Nhận biết lỗi chương trình
Quiz
•
9th - 12th Grade
8 questions
Overview of IT
Quiz
•
6th Grade - University
15 questions
4.6.4 Logic Gates
Quiz
•
10th Grade - Professi...
12 questions
Wee Word Intro
Quiz
•
7th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
