
2D Array in C++ Quiz
Quiz
•
Information Technology (IT)
•
6th Grade
•
Practice Problem
•
Easy
Salma Ghoneim
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is a 2D array in C++?
An array of functions
An array of strings
An array of arrays
A pointer to a pointer
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How do you declare a 2D array with 3 rows and 4 columns of integers?
int arr[3,4];
int arr(3,4);
int arr[3][4];
int arr{3}{4};
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the index of the first element in a 2D array?
[0][1]
[1][0]
[0][0]
[1][1]
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following correctly accesses the element in the second row and third column?
arr[2][3]
arr[1][2]
arr[3][2]
arr[2][1]
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which loop structure is commonly used to traverse a 2D array?
Single for loop
While loop
Nested for loops
Switch case
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
If int arr[2][3] = { {1, 2, 3}, {4, 5, 6} }; what is the value of arr[1][2]?
3
4
5
6
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code? int arr[2][2] = { {1, 2}, {3, 4} }; cout << arr[0][1];
1
2
3
4
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
6 sinif M1
Quiz
•
6th Grade
10 questions
Ch2變數與運算式-綜合演練選擇題
Quiz
•
6th - 8th Grade
10 questions
QUIZ 1 TLE
Quiz
•
6th Grade
10 questions
Викторина по языку Python
Quiz
•
6th - 8th Grade
15 questions
IC3_GS6_Level 1_ Bài 3: Các loại máy tính
Quiz
•
6th Grade
10 questions
Ultrasonic Sensor - L1
Quiz
•
6th Grade - University
15 questions
What is a Robot? Part 3
Quiz
•
6th Grade
15 questions
GenZ_Tự tin khám phá ChatGPT
Quiz
•
6th - 8th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
Context Clues
Quiz
•
6th Grade
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
10 questions
History and Traditions of Valentine's Day
Interactive video
•
3rd - 6th Grade
20 questions
Valentine’s Day and Disney Trivia Worksheet
Quiz
•
6th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
Writing Algebraic Expressions
Quiz
•
6th Grade
20 questions
Ratios/Rates and Unit Rates
Quiz
•
6th Grade
