Java array indexes start at 1.

Java Arrays and Wrapper classes

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Alexandria BrenonHodas
Used 2+ times
FREE Resource
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
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
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
GCSE Computer Science: Programming (Data Structures)

Quiz
•
9th - 10th Grade
15 questions
Array

Quiz
•
10th - 12th Grade
17 questions
CSA Array Unit Test

Quiz
•
9th Grade
15 questions
Area With Arrays

Quiz
•
10th - 12th Grade
20 questions
AP CS A Unit 6 Exam PRACTICE

Quiz
•
9th - 12th Grade
17 questions
AP CS ArrayLists

Quiz
•
12th Grade
20 questions
Java Arrays

Quiz
•
9th - 12th Grade
20 questions
APCSA Arrays

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University