Solved

What Does the Following Code Do

Question 5

Multiple Choice

What does the following code do
For ( var col = 0; col < a[ 2 ].length; ++col )
A[ 2 ][ col ] = 0;


A) Sets the rows and columns to zero.
B) Sets the rows to zero.
C) Sets the columns to zero.
D) Sets all the elements in row 2 to zero.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions