2D Array in C++ Quiz

2D Array in C++ Quiz

6th Grade

10 Qs

quiz-placeholder

Similar activities

Bài 01: Tìm hiểu về hệ điều hành

Bài 01: Tìm hiểu về hệ điều hành

6th Grade

6 Qs

Table,Image formatting

Table,Image formatting

5th Grade - University

15 Qs

GRADE 2 QUIZ 4 REVIEW 2526

GRADE 2 QUIZ 4 REVIEW 2526

2nd Grade - University

15 Qs

Ch4迴圈-綜合演練選擇題

Ch4迴圈-綜合演練選擇題

6th - 8th Grade

10 Qs

3RD TERM 2ND C.A.T (I.C.T) YR5

3RD TERM 2ND C.A.T (I.C.T) YR5

5th Grade - University

10 Qs

Trò chơi “Tin thật – Tin giả”

Trò chơi “Tin thật – Tin giả”

6th - 8th Grade

10 Qs

BÀI TEST 5 NỘI DUNG SỐ CƠ BẢN

BÀI TEST 5 NỘI DUNG SỐ CƠ BẢN

6th - 8th Grade

10 Qs

TIN HỌC 6

TIN HỌC 6

6th Grade

10 Qs

2D Array in C++ Quiz

2D Array in C++ Quiz

Assessment

Quiz

Information Technology (IT)

6th Grade

Practice Problem

Easy

Created by

Salma Ghoneim

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?