Arrays in C++ - CS172- Exercise #2

Flashcard
•
Computers
•
University
•
Hard
Quizizz 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
Create a free account and access millions of resources
Similar Resources on Wayground
8 questions
Methods

Flashcard
•
University
12 questions
User-Defined DS

Flashcard
•
University
15 questions
Java String and Array

Flashcard
•
Professional Development
9 questions
CSA Semester 2 Final

Flashcard
•
11th - 12th Grade
18 questions
Fundamentals of data Structures & Linked list

Flashcard
•
University
9 questions
Java Methods

Flashcard
•
12th Grade
7 questions
Java Data Types Practice

Flashcard
•
12th Grade
15 questions
Data Structures Level-2

Flashcard
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade