
Understanding Arrays in C++
Quiz
•
Computers
•
12th Grade
•
Medium
Fidaa Abed
Used 6+ times
FREE Resource
Enhance your content
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an array?
A collection of different types
A single value holder
A variable that can store multiple values of the same type
A function in programming
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How are the values in an array stored?
In non-adjacent memory locations
Randomly throughout memory
In adjacent memory locations
In separate functions
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to declare an array?
()
{}
[]
||
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following declaration signify? int tests[5];
An array of 5 integers
A function with 5 parameters
An integer divided by 5
A loop that repeats 5 times
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is the size of an array determined in C++?
Number of elements multiplied by the size of each element
Sum of all elements
Number of elements plus size of one element
Fixed value
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if you use a subscript that is beyond the bounds of the array in C++?
It is ignored
It defaults to the last valid subscript
It can corrupt memory and cause program errors
It will create a new array
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of array initialization?
int tests = 5;
int tests[5] = {0, 1, 2, 3, 4};
int tests(5);
int tests = {5};
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Algoritmos Simples
Quiz
•
12th Grade
15 questions
TO/INF/GP-1
Quiz
•
9th Grade - University
20 questions
UJIAN AKHIR SEMESTER INFORMATIKA KELAS IX
Quiz
•
9th - 12th Grade
15 questions
BIOS - Cuidados de una computadora
Quiz
•
11th - 12th Grade
20 questions
كائنات بلغة جافا الفئة كتاب
Quiz
•
10th Grade - University
20 questions
UH_TIK_XII
Quiz
•
12th Grade
20 questions
Standar Komunikasi Data
Quiz
•
1st - 12th Grade
15 questions
Operating System Components
Quiz
•
12th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade