Multi-Dimensional Arrays in C Quiz

Multi-Dimensional Arrays in C Quiz

10th Grade

31 Qs

quiz-placeholder

Similar activities

Python Quiz II

Python Quiz II

9th Grade - University

30 Qs

Cấu trúc lặp - mảng

Cấu trúc lặp - mảng

8th - 12th Grade

30 Qs

Kiểm tra giữa kì II-Khối 11

Kiểm tra giữa kì II-Khối 11

10th Grade

30 Qs

TechTest

TechTest

7th - 11th Grade

30 Qs

PTS Genap Informatika_SKALA_2022

PTS Genap Informatika_SKALA_2022

10th Grade

30 Qs

CSP Final

CSP Final

10th Grade

31 Qs

Test Java Base

Test Java Base

9th - 12th Grade

28 Qs

Key Programming Concepts

Key Programming Concepts

5th - 12th Grade

28 Qs

Multi-Dimensional Arrays in C Quiz

Multi-Dimensional Arrays in C Quiz

Assessment

Quiz

Instructional Technology

10th Grade

Medium

Created by

Zemmary Batucan

Used 1+ times

FREE Resource

31 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of a multi-dimensional array in C?

To store a single value of any data type.

To store a collection of elements of the same data type in a linear sequence.

To store a collection of elements of the same data type in a tabular format.

To perform mathematical calculations on single values.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax to declare a two-dimensional array named matrix with 3 rows and 4 columns of type int?

int matrix[3][4];

int matrix[4][3];

int matrix(3, 4);

int matrix[3, 4];

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many elements can be stored in a two-dimensional array declared as float numbers[5][3]?

3

5

8

15

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the index of the element located in the second row and third column of a two-dimensional array?

[1, 2]

[2, 3]

[1, 3]

[2, 2]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the value of the element at row 1 and column 2 in an array named matrix?

matrix[1, 2]

matrix[1][2]

matrix(1, 2)

matrix(1)[2]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax to assign the value 100 to the element at row 0 and column 1 in an array named data?

data[0, 1] = 100;

data[0][1] = 100;

data(0, 1) = 100;

data(0)[1] = 100;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of nested loops when working with multi-dimensional arrays?

To allocate memory for the array dynamically.

To access and process elements in a row-by-row or column-by-column manner.

To determine the size of the array.

To initialize the array with specific values.

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?