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

Flashcard
•
Computers
•
12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

25 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
true
2.
FLASHCARD QUESTION
Front
In a C++ array, every element has the same
Back
data type (like int, bool, char, etc)
3.
FLASHCARD QUESTION
Front
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]"?
Back
4
4.
FLASHCARD QUESTION
Front
Given the following declaration, where is the value 77 stored in the scores array? int scores[] = {83, 62, 77, 97, 86}
Back
scores[2]
5.
FLASHCARD QUESTION
Front
What will the following code display?
int numbers[5] = {99, 87, 66, 55, 101};
for (int i = 1; i < 4; i++)
cout << numbers[i] << " ";
Back
87 66 55
6.
FLASHCARD QUESTION
Front
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;
Back
string names[5];
7.
FLASHCARD QUESTION
Front
Given the following declaration, where is the value 15 stored in the nums array? int nums[] = {83, 15, 57, 87, 80}
Back
nums[1]
Create a free account and access millions of resources
Similar Resources on Quizizz
19 questions
Intro to CS Midterm Exam

Flashcard
•
12th Grade
21 questions
Java Loops

Flashcard
•
KG
20 questions
Sets Review

Flashcard
•
12th Grade - University
19 questions
Java 2D Arrays_Review

Flashcard
•
11th Grade
23 questions
CSP Unit 6 Review

Flashcard
•
12th Grade
21 questions
Java Flashcard-1

Flashcard
•
KG - University
24 questions
C++ Basics

Flashcard
•
University
20 questions
AP CSA unit 1 review

Flashcard
•
11th Grade - University
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