Copyright

Multi-Dimensional Arrays in C Programming: Definition & Example

Instructions:

Choose an answer and hit 'next'. You will receive your score and answers at the end.

question 1 of 3

Consider the following array of integers. Which of the following C statements will access the intersection of row 3 and column 2?

int matrix_array[5][3];

Create Your Account To Take This Quiz

As a member, you'll also get unlimited access to over 75,000 lessons in math, English, science, history, and more. Plus, get practice tests, quizzes, and personalized coaching to help you succeed.

Try it risk-free
Try it risk-free for 30 days. Cancel anytime.
Already registered? Login here for access

1.

Consider the following array declared in C. Which of the following operations is the most appropriate for looping through the elements of the array?

int matrix[3][2][1];

2. Which of the following correctly populates a 2D array in C?

Create your account to access this entire worksheet
A premium account gives you access to all lesson, practice exams, quizzes & worksheets
Access to all video lessons
Quizzes, practice exams & worksheets
Certificate of Completion
Access to instructors
Create an account to get started Create Account

About This Quiz & Worksheet

Multi-dimensional arrays include matrices of rows and columns in C programming. With this quiz/worksheet, you can assess what you know about the best array to use when working with a tabular set of data and a C statement that will access the intersection of a specific row and column.

Quiz & Worksheet Goals

The following areas of multi-dimensional arrays are covered:

  • Operation that's most useful for looping through the elements of an array declared in C
  • Code that populates a 2D array
  • Number of rows and columns in an array of floating point numbers

Skills Practiced

  • Reading comprehension - make sure you understand the most important information about a C statement that can access the intersection of a specific row and column
  • Information recall - access the knowledge you've gained regarding the most useful operation for looping through the elements of an array that's been declared
  • Knowledge application - use your knowledge to answer questions about an example of a code that populates a 2D array and the most appropriate array for working with a tabular set of data

Additional Learning

The accompanying lesson is entitled Multi-Dimensional Arrays in C Programming: Definition & Example. These topics will be addressed:

  • Definition of a multi-dimensional array
  • Requirements for declaring these array types
  • Creation of a 3D array
Support