Arrays

Quiz
•
Computers, Other
•
University
•
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
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){}
Create a free account and access millions of resources
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade