Why are arrays created as global objects?
a. |
to enable a procedure to display the data in the array |
|
b. |
so that the data in the arrays can be updated |
|
c. |
so that the rows can be auto-numbered |
|
d. |
so that the columns can be of different datatypes |
We will create arrays as global objects so that the data in the arrays can be updated.
If we create an array locally then we can't further access them out of that block, therefore the values in the array won't be updated anymore. So creating arrays as global objects helps us to access them anywhere so that we can update the values anytime.
Option c and d are incorrect because the indexes of rows and colunmn wont change even if you declare it as locally or globally
Get Answers For Free
Most questions answered within 1 hours.