Arrays
Quiz
•
Computers, Other
•
University
•
Practice Problem
•
Medium
Tim Bowry
Used 1+ times
FREE Resource
Student preview

16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Unlike regular variables, __________ can hold multiple values.
constants
named constants
arrays
floats
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
To access an array element, use the array name and the element's ___________.
data type
index
value
name
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Given the following declaration, where is the value 77 stored in the scores array?
int scores[] = {83, 62, 77, 97, 86}
scores[0]
scores[1]
scores[2]
scores[3]
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Unlike regular variables, __________ can hold multiple values.
constants
functions
arrays
floats
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In an array, every element has the same
subscript / index
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Given the following declaration, where is the value 15 stored in the nums array?
int nums[] = {83, 15, 57, 87, 80}
nums[0]
nums[1]
nums[2]
nums[3]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you initialize an array in C/C++?
int arr[3] = (1,2,3);
int arr(3) = {1,2,3};
int arr[3] = {1,2,3};
int arr(3) = (1,2,3){}
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?
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
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade