
Introduction to Arrays
Authored by Ryan Goulet
Computers
KG - University
Used 168+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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?
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
15 questions
CODE ZENITH
Quiz
•
University
10 questions
TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN
Quiz
•
11th Grade
10 questions
QBASIC Programming
Quiz
•
5th - 10th Grade
10 questions
ULANGAN BAB 2 TIK
Quiz
•
KG - University
10 questions
TQ - Review Quiz Week 1
Quiz
•
9th Grade
10 questions
Q3 ADT ArrayList
Quiz
•
1st Grade
15 questions
CodeMonkey Final Exam G.1 2-2024
Quiz
•
1st Grade
9 questions
КР_основные устройства ПК
Quiz
•
5th 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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
Sound Energy Assessment
Quiz
•
KG - 2nd Grade
10 questions
Dr. Seuss
Quiz
•
KG - 5th Grade
20 questions
greater than less than equal to
Quiz
•
KG - 1st Grade
6 questions
Copy of G5_U6_L3_22-23
Lesson
•
KG - Professional Dev...
20 questions
Capitalization in sentences
Quiz
•
KG - 4th Grade
15 questions
Simple Patterns AB, ABB, ABC
Quiz
•
KG - 1st Grade