Introduction to Arrays
Quiz
•
Computers
•
KG - University
•
Practice Problem
•
Hard
Ryan Goulet
Used 167+ 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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
scratch
Quiz
•
11th - 12th Grade
8 questions
SCR1 Recap Day 3
Quiz
•
1st Grade
12 questions
Clase de Computación: Excel
Quiz
•
11th Grade
15 questions
Dasar Kompetensi Keahlian IPv6
Quiz
•
10th Grade
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
10 questions
10 câu kiểu xâu tiết 1
Quiz
•
11th Grade
15 questions
Introducción Redes Tele1 IB
Quiz
•
10th Grade - University
13 questions
LENGUAJE C
Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Computers
14 questions
States of Matter
Lesson
•
KG - 3rd Grade
20 questions
Disney Characters
Quiz
•
KG
20 questions
Place Value
Quiz
•
KG - 3rd Grade
7 questions
Natural Resources
Quiz
•
KG - 2nd Grade
15 questions
Pronouns
Quiz
•
KG - 3rd Grade
15 questions
Single digit addition and subtraction
Quiz
•
KG - 1st Grade
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
