Introduction to Arrays
Quiz
•
Computers
•
KG - University
•
Practice Problem
•
Hard
Ryan Goulet
Used 168+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 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, 62.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following declares an array of int named img?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code fragment:int[] ar = {2, 4, 6, 8 };
System.out.println( ar[0] + " " + ar[1] );
2 62 46 84.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code fragment:int[] ar = {2, 4, 6, 8 }; ar[0] = 23; ar[3] = ar[1]; SOP( ar[0] + " " + ar[3] );
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code fragment:int[] y = new int[5]; y[0] = 34; y[1] = 88; SOP( y[0] + " " + y[1] + " " + y[5] );
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code fragment:int[] z = new int[9];
z[0] = 7;
z[1] = 3;
z[2] = 4;
SOP(z[0] + z[1] + " " + z[5] );
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What expression represents the last element of any size array named array?
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
Already have an account?
Similar Resources on Wayground
12 questions
Tin học 2
Quiz
•
11th Grade
10 questions
C Programming
Quiz
•
Professional Development
10 questions
DSI.01
Quiz
•
7th Grade
10 questions
BP TIK 1
Quiz
•
10th Grade
10 questions
Ekstensi File (TIK kelas 9)
Quiz
•
9th Grade
15 questions
Arduino
Quiz
•
7th - 9th Grade
15 questions
Asesmen Sumatif
Quiz
•
12th Grade
10 questions
TIN HỌC 10 - BÀI 21
Quiz
•
10th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
20 questions
Disney Characters
Quiz
•
KG
10 questions
Christmas/Winter
Quiz
•
KG - 2nd Grade
10 questions
Christmas Characters
Quiz
•
KG - 3rd Grade
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
Christmas Movies
Quiz
•
KG - 12th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
KG - 3rd Grade
