2D Array in C++ Quiz

2D Array in C++ Quiz

6th Grade

10 Qs

quiz-placeholder

Similar activities

C++ Quiz for Kids

C++ Quiz for Kids

6th Grade

15 Qs

квиз по теме 16

квиз по теме 16

6th - 8th Grade

10 Qs

Kiến thức về phần mềm văn phòng

Kiến thức về phần mềm văn phòng

6th Grade

10 Qs

Mainīgie, datu tipi, aritmētiskie aprēķini (Python)

Mainīgie, datu tipi, aritmētiskie aprēķini (Python)

6th - 8th Grade

6 Qs

ITS Python 變數與運算式課堂測驗

ITS Python 變數與運算式課堂測驗

6th Grade - University

10 Qs

_06_04__Réalisation d'un site web dynamique avec PHP

_06_04__Réalisation d'un site web dynamique avec PHP

6th Grade

7 Qs

Kuis Sistem Komputer (Hardware dan Software)

Kuis Sistem Komputer (Hardware dan Software)

6th Grade

10 Qs

Python: Айнымалылар мен типтер

Python: Айнымалылар мен типтер

6th Grade

10 Qs

2D Array in C++ Quiz

2D Array in C++ Quiz

Assessment

Quiz

Information Technology (IT)

6th Grade

Easy

Created by

Salma Ghoneim

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?