
Arrays in c++

Quiz
•
Computers
•
1st - 10th Grade
•
Medium
L L
Used 6+ times
FREE Resource
28 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
To access an array element, use the array name and the element's ___________.
data type
subscript
value
name
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
The name of an array stores the __________ of the first array element.
value
memory address
element number
data type
4.
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]
5.
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
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.
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Computer 10 - Arrays

Quiz
•
10th Grade
25 questions
BISE computer science

Quiz
•
10th Grade
25 questions
Тема: Массивы 9 класс информатика 3 четверть

Quiz
•
9th Grade
30 questions
AP CSA - Unit 6 Arrays Test Review

Quiz
•
10th - 12th Grade
24 questions
Основы C#

Quiz
•
1st - 12th Grade
25 questions
#100 Devs - LwL - class 15

Quiz
•
10th Grade - Professi...
25 questions
AP CSA Unit 1&2 Test

Quiz
•
8th Grade - Professio...
25 questions
Quiz Básico de Java

Quiz
•
7th Grade - Professio...
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
Discover more resources for Computers
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
13 questions
Primary and Secondary Sources

Quiz
•
6th Grade