In order to store a matrix, we need ___________ dimensional array.

2016

In order to store a matrix, we need ___________ dimensional array.

  1. A.

    three

  2. B.

    two

  3. C.

    four

  4. D.

    one

Attempted by 312 students.

Show answer & explanation

Correct answer: B

The correct option is B. A mathematical matrix consists of data elements organized in rows and columns. To represent and store this grid-like structural format in computer programming, a two-dimensional (2D) array is required, where the first index identifies the row and the second index specifies the column.

Explore the full course: Btsc Lab Assistant