
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
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
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
GCSE Computer Science: Programming (Data Structures)

Quiz
•
9th - 10th Grade
20 questions
Java Arrays

Quiz
•
9th - 12th Grade
20 questions
Arrays in Java

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

Quiz
•
9th - 12th Grade
15 questions
Data Structures

Quiz
•
12th Grade
12 questions
Javascript Arrays

Quiz
•
9th - 12th Grade
14 questions
Exploring Computer Science

Quiz
•
10th - 12th Grade
20 questions
JDVP Activity

Quiz
•
12th Grade - University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade