Arrays in C++ - CS172- Exercise #2

Flashcard
•
Computers
•
University
•
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
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
Lecture 2 Flashcard

Flashcard
•
12th Grade
9 questions
STRING MANIPULATION (PYTHON)

Flashcard
•
11th - 12th Grade
20 questions
Sets Review

Flashcard
•
12th Grade - University
18 questions
JAVA string

Flashcard
•
12th Grade
15 questions
Repeated Addition and Arrays

Flashcard
•
KG
10 questions
Flashcard on Stack Data Structure

Flashcard
•
University
18 questions
Fundamentals of data Structures & Linked list

Flashcard
•
University
10 questions
Pemrograman C# Tingkat Dasar

Flashcard
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University