
java arrays
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Medium
barb gillming
Used 373+ times
FREE Resource
Enhance your content in a minute
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the length of the following array: byte[] data = { 12, 34, 9, 0, -62, 88 };
1
5
6
12
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Which of the following is FALSE about arrays on Java
A java array is always an object
Length of array can be changed after creation of array
Arrays in Java are always allocated on heap
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
class Demo1
{
public static void main(String args[])
{
int i[] = new int[10];
System.out.println(i[10]);
}
}
0
Garbage Value
Out-of-bounds exception
Error
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
_________________ is a collection of elements used to store the same type of data.
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What are the legal indexes for the array ar, given the following declaration:int[] ar = {2, 4, 6, 8 }
0, 1, 2, 31, 2, 3, 40, 2, 4, 66.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the first index of an array?
1
0
2
3
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is returned by values[5]?
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
ICT
Quiz
•
7th - 12th Grade
20 questions
แบบทดสอบปลายภาคโปรแกรมแอนิเมชัน
Quiz
•
9th - 12th Grade
17 questions
Data Structures: 1D,2D & List
Quiz
•
11th Grade
25 questions
HTML
Quiz
•
11th Grade
20 questions
Unit-1 Computational Thinking
Quiz
•
9th - 12th Grade
20 questions
HISTORY OF COMPUTER_SUMMATIVE 1
Quiz
•
11th - 12th Grade
20 questions
Ujian Akhir Semester Genap Teknik Animasi 2D 3D Kelas XI
Quiz
•
11th Grade
20 questions
Quiz
•
7th - 12th 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
