
C++ Arrays Review

Quiz
•
Computers
•
10th - 11th Grade
•
Medium

Sara Melson
Used 330+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
A single value in an array is addressed by specifying…
the name of the array followed by the index of the element.
the name of the array ONLY.
the index of the element followed by the name of the array.
the index of the element in the array ONLY.
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is a valid C++ array definition?
int array[0];
float $$payments[10];
void numbers[5];
int nums[10];
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The subscript (or index) of an array can be…
an integer
a floating point number
a character
a negative number
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the following code do?
for (int index = 0; index < 5; index++)
cin >> numbers[index];
Place data into a four element array called numbers.
Place data into a four element array called index.
Place data into a five element array called numbers.
Place data into a five element array called index.
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following array declarations is invalid?
bool array1[10];
double array2[20,0];
char array3[30];
double array4[7];
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In the statement a[3] = 5, which of the following is the index value?
a
3
a[3]
5
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
If you leave out the size declarator in an array definition:
You must provide an initialization list
You are not required to initialize the array elements
All array elements default to zero values
Your array will contain no elements
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
CodeHS 5.3 Using Arrays

Quiz
•
9th - 12th Grade
15 questions
AP Computer Science A Review 1

Quiz
•
10th - 12th Grade
12 questions
Java Strings

Quiz
•
9th - 12th Grade
15 questions
Python Arrays Quiz P7

Quiz
•
11th Grade
20 questions
Arrays in Java

Quiz
•
9th - 12th Grade
12 questions
C# Arrays

Quiz
•
9th - 12th Grade
20 questions
Array

Quiz
•
10th - 12th Grade
20 questions
Computer Application Practice Quiz Class 10

Quiz
•
10th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
20 questions
Scalars, Vectors & Graphs

Quiz
•
11th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade