C++ Arrays
Quiz
•
Science, Computers
•
8th - 12th Grade
•
Practice Problem
•
Medium
Natalia Fumero
Used 541+ times
FREE Resource
Enhance your content in a minute
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
12 questions
Tabele HTML
Quiz
•
9th Grade
10 questions
能源問題_電力
Quiz
•
7th - 9th Grade
15 questions
Access 2013 - 4(consultas)
Quiz
•
10th Grade
15 questions
HTML Quiz
Quiz
•
11th Grade - University
10 questions
Hệ Điều Hành Của Máy Tính
Quiz
•
10th Grade - University
10 questions
python
Quiz
•
10th Grade
15 questions
Ôn tập KTGK. Bài 17. Biến và lệnh gán
Quiz
•
10th Grade
10 questions
CHƯƠNG TRÌNH CON BT1
Quiz
•
10th - 12th Grade
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
Discover more resources for Science
33 questions
Grade 6 Quarter 3 PMA 5 Review
Quiz
•
6th - 8th Grade
85 questions
Midpoint D1 Review
Quiz
•
8th Grade
12 questions
Newton's Laws of Motion
Lesson
•
6th - 8th Grade
10 questions
Exploring the Rock Cycle: Types and Formation
Interactive video
•
6th - 8th Grade
10 questions
Exploring the Layers of the Earth
Interactive video
•
6th - 10th Grade
20 questions
Pure Substances & Mixtures
Quiz
•
8th Grade
28 questions
Genes and Heredity
Lesson
•
8th Grade
24 questions
Subatomic Particles
Quiz
•
8th Grade
