Multiple choice

Given an array A[-1:7, 0:6]. The number of rows and columns in this array are

  1. 9, 7

  2. 7, 6

  3. 8, 6

  4. none of these

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The number of rows is calculated as (upper_bound - lower_bound + 1), which is (7 - (-1) + 1) = 9. The number of columns is (5 - 0 + 1) = 6. Thus, the dimensions are 9 rows and 6 columns.