C++ arrays
Flashcard
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

25 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Unlike regular variables, arrays can hold multiple values
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]
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
20 questions
Python Programming Basics
Flashcard
•
11th Grade
20 questions
MIT app Inventor Review
Flashcard
•
9th - 12th Grade
15 questions
Renewable Energy
Flashcard
•
12th Grade
14 questions
A Roosevelt Rubén Dario
Flashcard
•
12th Grade
20 questions
Understanding Data Types and Modelling
Flashcard
•
12th Grade
15 questions
Algebra 2 Regents Prep
Flashcard
•
11th Grade
20 questions
Procedures and Functions
Flashcard
•
10th Grade
14 questions
CCMA- Phlebotomy
Flashcard
•
11th 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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