Unlike regular variables, arrays can hold multiple values
C++ arrays

Quiz
•
Computers
•
12th Grade
•
Medium
Dr. Moriarty
Used 6+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
true
false
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
In a C++ array, every element has the same
data type (like int, bool, char, etc)
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What is the last legal subscript that can be used with the following array?
int values[5];
Hint: what's the highest number you can put in for x in the [ ] for "cout<<values[x]"?
0
5
6
4
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 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.
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
An array of string objects that will hold five names would be declared with which of the following statements?
string names[5];
string names(5);
string names 5;
String[5] = names;
7.
MULTIPLE CHOICE QUESTION
3 mins • 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]
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
C-Programming

Quiz
•
11th - 12th Grade
20 questions
AP CS A Unit 6 Exam PRACTICE

Quiz
•
9th - 12th Grade
20 questions
DATA STRUCTURES

Quiz
•
12th Grade
20 questions
Java 2 Quiz 9

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

Quiz
•
10th - 12th Grade
30 questions
SUMATIF BAB 1 XII RPL

Quiz
•
12th Grade
20 questions
LOOKUP

Quiz
•
9th Grade - University
20 questions
Technical Quiz Round 1 Set 1

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University