
C++ Arrays Quiz
Authored by Ahmed Yaseen
Computers
9th - 12th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an array in C++?
A collection of variables of different types
A collection of variables of the same type
A variable that holds multiple types
A dynamic data structure
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of the first element in a C++ array?
0
1
-1
Depends on the compiler
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare an array of 10 integers in C++?
`int arr[10];`
`array arr(10);`
`int arr = new int[10];`
`int[] arr = new int[10];`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following accesses the 5th element of an array `arr` in C++?
`arr[5]`
`arr[4]`
`arr[6]`
`arr[0]`
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if you try to print an element outside the bounds of an array in C++?
هيحصل ايه لو حاولت انك تطبع عنصر بره الرينج بتاع الاراي
It will return 0
It will return garbage value
It will throw an error
The program will stop executing
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of an array declared as `int arr[10];` in C++?
9
10
Undefined
Depends on the elements
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes a 2D array in C++?
An array of arrays
A dynamic structure
A collection of different data types
A single-dimensional array
Access all questions and much more by creating a free account
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
10 questions
Fundamentos PHP (Manejo de Fomularios y arreglos)
Quiz
•
9th Grade
10 questions
Ứng xử trong môi trường số
Quiz
•
10th Grade
9 questions
OCR GCSE CS - 2.1 ERL sorts and searches
Quiz
•
10th - 11th Grade
10 questions
SHORTCUT PADA KEYBOARD
Quiz
•
10th - 12th Grade
11 questions
Threats to Data
Quiz
•
9th - 12th Grade
11 questions
HEALTH AND SAFETY 9
Quiz
•
7th - 9th Grade
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
10 questions
Basic Parts of Speech EPS
Quiz
•
9th - 10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
14 questions
[AP CSP] JavaScript Programming Quiz
Quiz
•
9th - 12th Grade
10 questions
Understanding Computers and Computer Engineering
Interactive video
•
7th - 12th Grade
37 questions
Python - Tuples, Lists, and List Methods
Quiz
•
9th - 12th Grade
60 questions
MOS Word Home, Insert, Reference Ribbon Basics
Quiz
•
9th Grade