Arrays in C++ - CS172- Exercise #2
Flashcard
•
Computers
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

16 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Unlike regular variables, __________ can hold multiple values.
Back
arrays
2.
FLASHCARD QUESTION
Front
To access an array element, use the array name and the element's ___________.
Back
subscript
3.
FLASHCARD QUESTION
Front
The name of an array stores the __________ of the first array element.
Back
memory address
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 is the last legal subscript that can be used with the following array? int values[5];
Back
4
6.
FLASHCARD QUESTION
Front
To pass an array as an argument to a function, pass the __________ of the array.
Back
name
7.
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
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
8 questions
CHILDREN 2 (1ST CLASS)
Flashcard
•
KG
11 questions
Studies Vocab (school, college, etc.)
Flashcard
•
Professional Development
15 questions
Muscle Contractions
Flashcard
•
12th Grade - University
12 questions
Organic 2 Exam 4 Review
Flashcard
•
KG
12 questions
Understanding Minimalism Concepts
Flashcard
•
University
10 questions
SC1X - Week 1
Flashcard
•
University - Professi...
15 questions
Untitled form
Flashcard
•
University
15 questions
The Great Gatsby Reading control
Flashcard
•
University
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade