Question

Why are arrays created as global objects? a. to enable a procedure to display the data...

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

Homework Answers

Answer #1

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

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
This is a SQL question. Which construct(s) can be created inside of a stored procedure? (Select...
This is a SQL question. Which construct(s) can be created inside of a stored procedure? (Select all that apply) A. Global temp tables B. Local temp tables C. Table variables D. CTEs
JAVA please Arrays are a very powerful data structure with which you must become very familiar....
JAVA please Arrays are a very powerful data structure with which you must become very familiar. Arrays hold more than one object. The objects must be of the same type. If the array is an integer array then all the objects in the array must be integers. The object in the array is associated with an integer index which can be used to locate the object. The first object of the array has index 0. There are many problems where...
c++ C++ CLASSES and objects DO ADD COMMENTS DISPLAY OUTPUT First make three files: episode.cpp, episode.h...
c++ C++ CLASSES and objects DO ADD COMMENTS DISPLAY OUTPUT First make three files: episode.cpp, episode.h andRun.cpp to separate class header and implementation. In this program, we are going to create a small scale Telivision Management System. A) Create a class Episode with following variables: char* episode_name, char* episode_venue, char episode_date[22] and char episode_time[18]. Input format for episode_date: dd-mm-yyyy Input format for episode_time: hh:mm am/pm B) Implement default constructor and overloaded constructor. Print “Default Constructor Called” and “Overloaded Constructor Called”...
If you want to add the current date to the column of "Date" in Table1, which...
If you want to add the current date to the column of "Date" in Table1, which of the following code is correct: A. Dim dr As New Row = Table1.NewRow dr("Date") = Nowadys.ToShortDateString B. Dim dr As DataRow = Table1.NewRow dr("Date") = Now.ToLongDateString C. Dim dr As DataRow = Table1.NewRow dr("Date") = Current.ToShortDateString D. Dim dr As DataRow = Table1.Row dr("Date") = Present.ToLongDateString What's the meaning of "1" in the following line of code: .Item("AvgBooks") = FormatNumber(.Item("Books") / .Item("Number"), 1)...
thinking back to why Nations Fails and considering the global capitalism article, why is it a...
thinking back to why Nations Fails and considering the global capitalism article, why is it a problem that only 147 of the world's corporations and investment groups control 40% of the world's corprate wealth? a) political power follows economic power in the vicious circle. b) global capitalism is innately democratic. c) this is a low percentage, which means that it is inclusive d) corporations are not nationstates, so they can not be extractive
Use Random number generator (under Data Analysis) to simulate the following data set. Create 10 columns,...
Use Random number generator (under Data Analysis) to simulate the following data set. Create 10 columns, each 20 points long and use the following parameters: Number of variables (10), number of data point (20), Distribution (Normal), Mean (40), Standard Deviation (10), Random seed (1234). The data should be in columns: A,B,C,….,I,J. Randomly pick two columns (say Column B and Column H) and perform 2-sided t-test on these two data columns. Record the P-value and repeat this procedure several times (at...
Use Random number generator (under Data Analysis) to simulate the following data set. Create 10 columns,...
Use Random number generator (under Data Analysis) to simulate the following data set. Create 10 columns, each 20 points long and use the following parameters: Number of variables (10), number of data point (20), Distribution (Normal), Mean (40), Standard Deviation (10), Random seed (1234). The data should be in columns: A,B,C,….,I,J. Randomly pick two columns (say Column B and Column H) and perform 2-sided t-test on these two data columns. Record the P-value and repeat this procedure several times (at...
Refer to the accompanying data display that results from a sample of airport data speeds in...
Refer to the accompanying data display that results from a sample of airport data speeds in Mbps. Complete parts​ (a) through​ (c) below. TInterval ​(13.046,22.15) x overbarxequals=17.598 Sxequals=16.01712719 nequals=50 a. Express the confidence interval in the format that uses the​ "less than" symbol. Given that the original listed data use one decimal​ place, round the confidence interval limits accordingly. ____Mbpsless than<muμless than<______ Mbps ​(Round to two decimal places as​ needed.) b. Identify the best point estimate of muμ and the...
Refer to the accompanying data display that results from a sample of airport data speeds in...
Refer to the accompanying data display that results from a sample of airport data speeds in Mbps. Complete parts​ (a) through​ (c) below. TInterval ​(13.046,22.15) x overbarxequals=17.598 Sxequals=16.01712719 nequals=50 a. Express the confidence interval in the format that uses the​ "less than" symbol. Given that the original listed data use one decimal​ place, round the confidence interval limits accordingly. nothing Mbpsless than<muμless than<nothing Mbps a. Express the confidence interval in the format that uses the​ "less than" symbol. Given that...
Practice using EXCEL – Part of your Orientation Assignment to prepare for class on the first...
Practice using EXCEL – Part of your Orientation Assignment to prepare for class on the first day. Step by Step instructions on completing PR1-5B. BEFORE STARTING TO WORK THE PROBLEM YOU NEED TO WRITE ALL BALANCE FORMULAS. To do so do the following in order. Click on Cell D39. In D39 you will write a formula to add rows D37 and D38. To do so do the following: a)    Start in Cell D39 and press = sign b)    Highlight cell...