
C++ Arrays
Authored by Natalia Fumero
Science, Computers
8th - 12th Grade
Used 543+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Unlike regular variables, __________ can hold multiple values.
constants
named constants
arrays
floats
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
In an array, every element has the same
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Unlike regular variables, __________ can hold multiple values.
constants
named constants
arrays
floats
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What is the last legal subscript that can be used with the following array?
int values[5];
0
5
6
4
5.
MULTIPLE CHOICE QUESTION
3 mins • 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]
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
To pass an array as an argument to a function, pass the __________ of the array.
contents
size, expressed as an integer
name
value of the first element
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will the following code display?
int numbers[5] = {99, 87, 66, 55, 101};
for (int i = 1; i < 4; i++)
cout << numbers[i] << " ";
99 87 66 55 101
87 66 55 101
87 66 55
Nothing. This code has an error.
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
Cuestionario PseInt
Quiz
•
6th - 8th Grade
10 questions
Циклы
Quiz
•
10th Grade
15 questions
End of term assessment
Quiz
•
9th Grade
16 questions
C-Programming Basics
Quiz
•
12th Grade
10 questions
สอบปลายภาคชั้นม.2
Quiz
•
8th Grade
12 questions
HTML
Quiz
•
9th - 12th Grade
15 questions
ÔN TẬP HKII-02
Quiz
•
8th Grade
10 questions
ระบบนิเวศ
Quiz
•
10th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
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
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Science
11 questions
Valentines Day
Quiz
•
6th - 8th Grade
25 questions
Valentine's Day Trivia
Quiz
•
8th Grade
20 questions
Cell Organelles and Functions
Quiz
•
6th - 8th Grade
8 questions
Newton's Second Law
Lesson
•
6th - 8th Grade
10 questions
Exploring the Rock Cycle: Types and Formation
Interactive video
•
6th - 8th Grade
10 questions
Carbon Cycle
Lesson
•
6th - 8th Grade
13 questions
Plate Tectonics and Earth's Structure
Lesson
•
6th - 8th Grade
20 questions
Heredity Punnett square review
Quiz
•
8th Grade