
Java Arrays and Wrapper classes
Authored by Alexandria BrenonHodas
Computers
9th - 12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Java array indexes start at 1.
True
False
2.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
What is the value of nums[3]?
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which is the correct way to declare an array of 10 integers? (select 2)
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the correct way to assign 4 to the 3rd position of the nums1 array?
nums1[2] = 3;
nums1[3] = 3;
nums1[3] = 4;
nums1[2] = 4;
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the syntax for declaring an array in Java?
arrayName[type];
arrayName type[];
arrayName[] type;
type[] arrayName;
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How do you initialize an array in Java?
int[] arr = int[size];
int[] arr = new int[];
int[] arr = new int[size];
int arr = new int[size];
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How do you change the value of the fifth element in an array named 'nums'?
nums[5] = newValue
nums[4] = newValue
nums(4) = newValue
nums.fifth = newValue
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
20 questions
Advantages and Disadvantages of Collecting Data
Quiz
•
10th Grade
16 questions
Unit 8 Practice Test For CSP
Quiz
•
9th Grade
15 questions
Cyber Security KS4
Quiz
•
8th - 12th Grade
15 questions
Excel
Quiz
•
10th - 12th Grade
15 questions
LA1.C1: Introduction to Small Basic
Quiz
•
9th Grade
13 questions
Melody Tone
Quiz
•
9th Grade
15 questions
MVC-PHP
Quiz
•
12th Grade
13 questions
WJEC GCSE ICT Unit 1 E-Mail
Quiz
•
9th - 10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade