
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
10 questions
Programación II Parte 5
Quiz
•
University
12 questions
HTML
Quiz
•
9th - 12th Grade
15 questions
ÔN TẬP HKII-02
Quiz
•
8th Grade
10 questions
File Management 3 Quiz
Quiz
•
8th Grade
12 questions
Javascript
Quiz
•
University
10 questions
CS50x.ni Y24C1 - 1S03
Quiz
•
3rd Grade
10 questions
9 сынып Python программалау тілінде алгоритмдерді программалау
Quiz
•
1st Grade
10 questions
Python Kazanım
Quiz
•
KG
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Computers
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Place Value
Quiz
•
KG - 3rd Grade
15 questions
Grammar
Quiz
•
KG - 7th Grade
10 questions
Sound Energy Assessment
Quiz
•
KG - 2nd Grade
10 questions
Sound Energy
Quiz
•
KG - 2nd Grade
10 questions
Counting Dimes and Pennies
Quiz
•
KG - 2nd Grade
10 questions
Dr. Seuss
Quiz
•
KG - 5th Grade
10 questions
Place Value: Hundreds, Tens, and Ones
Quiz
•
KG - 2nd Grade