C++ Array
Quiz
•
Computers
•
10th - 11th Grade
•
Hard
Thomas Martinez
FREE Resource
Enhance your content in a minute
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 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
3 mins • 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
3 mins • 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
3 mins • 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
3 mins • 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
3 mins • 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
3 mins • 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
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
20 questions
Google SketchUp Tool
Quiz
•
KG - University
20 questions
Trắc nghiệm Tin 10-Chủ đề A
Quiz
•
10th - 11th Grade
19 questions
UNIT 1.2 MEMORY
Quiz
•
10th Grade
14 questions
BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ
Quiz
•
6th Grade - University
11 questions
Access
Quiz
•
10th Grade - University
12 questions
Examen final algoritmo
Quiz
•
11th Grade
12 questions
1.8 Computing Legislation TRUE or FALSE
Quiz
•
10th - 11th Grade
15 questions
After Effect Intoduction
Quiz
•
10th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
