Quiz 16 - Arrays and Loops

Quiz
•
Computers
•
11th Grade
•
Medium
Casey Devet
Used 70+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Which type of loop is best for iterating through the values of an array?
for loop
while loop
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Which expression will get the length of the array called "ages"?
ages.length()
ages.size()
ages.length
ages.size
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
This code is supposed to print out all the elements of the array "scores", but it isn't working. What needs to be fixed?
Use <= instead of <
Start index at 0
Use index-- instead of index++
Use > instead of <
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
This code is supposed to print out all the elements of the array "scores", but it isn't working. What needs to be fixed?
Use < instead of <=
Start index at 1
Use index-- instead of index++
Use >= instead of <=
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
This code is supposed to print out all the elements of the array "scores", but it isn't working. What needs to be fixed?
Use <= instead of <
Start index at 1
Use > instead of <
Print scores[index] instead of scores
6.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
int size = input.nextInt();
The command above got an integer from the user. Which instruction would create an array with "size" elements?
int [] myArray = new int [size];
int myArray = new int [size];
int [size] myArray = new int [];
int myArray = new int (size);
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What do we call two or more arrays which store related data at the same index?
compact arrays
cooperating arrays
constant arrays
co-related arrays
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
H466 - Arrays, Records, Tuples and Lists

Quiz
•
11th Grade - University
15 questions
Javascript

Quiz
•
10th - 12th Grade
10 questions
Programming Basics

Quiz
•
11th - 12th Grade
11 questions
Do Now - Retrieval - Programming and Data Structures

Quiz
•
11th Grade
6 questions
Arrays

Quiz
•
11th Grade
10 questions
Programming - Arrays

Quiz
•
2nd - 12th Grade
12 questions
Java - arrays and String methods

Quiz
•
9th - 12th Grade
10 questions
AutoCad Practice Exam

Quiz
•
10th - 11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade