FIND THE MATRIX (ARRAY OF MATRIX)

The matrix is named as Scores: 1st row 86 75 95: 2nd row 67 88 93: 3rd row 95 79 83: 4th row 86 98 82 : 5th row 74 68 90: If in Scores [0] [0] =86 & in Scores [5] [2] =junk is stored, then What is stored in these cells? Scores [2] [1] = ?


The answer is 79.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Shubham Sinha
Jan 3, 2015

There are 5 rows and 3 columns for the matrix Scores. Now since matrix is a form of 2 dimensional arrays in computer, which starts from 0, the row can be - 0 ,1, 2,3,4 and column- 0,1 ,2 .

Scores [0] [0] means 1st row and 1st column of the matrix which is 86 (see the first row in question)

Scores [5] [2] is junk because 5 means 6th row which isnt present in the given matrix.

Scores [2] [1] simply stores the value in 3rd row at 2nd column

IT is right

Aditya Raj - 6 years, 5 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...