C++ arrays

Flashcard
•
Computers
•
12th Grade
•
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]
Create a free account and access millions of resources
Similar Resources on Wayground
23 questions
CSP Unit 6 Review

Flashcard
•
12th Grade
18 questions
Data Structures Flashcard 1

Flashcard
•
12th Grade - University
20 questions
Mastering C Programming Concepts

Flashcard
•
University
15 questions
Нысаналы мектеп информатика 3-аралық тест

Flashcard
•
KG - University
25 questions
CodeHS Python Unit 2 Flashcard Review

Flashcard
•
12th Grade
10 questions
Arrays

Flashcard
•
10th - 12th Grade
18 questions
Blood Spatter Analysis

Flashcard
•
11th Grade
19 questions
Java 2D Arrays_Review

Flashcard
•
11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade