Question

In: Computer Science

1.Why is important to understand dynamic multi-dimension arrays as “arrays of arrays?” a.Each dimension requires another...

1.Why is important to understand dynamic multi-dimension arrays as “arrays of arrays?”

a.Each dimension requires another “pointer layer” which we have to build as arrays of pointers which in turn possibly point to arrays of pointers which eventually point to an array of the data type. Each array is allocated ‘where it fits’ at the time of creation, each of these arrays can be uniquely sized as well.

b.It just helps us organize the data in our head, in reality all the information is sequential anyway

c.Each dynamically allocated array is placed in memory ‘where it fits’ at the time of creation, meaning each pointer points to a single array of the data type.

d.none of these

.

2.When passing by pointer ... the pointer itself is passed by value. The value in this method is that we can use the pointer to make changes in memory.

a.true

b.false

.

3.Which of the following describes Passing by Reference?

a. The actual variable memory is passed into the function and any activity done to the parameter is reflected outside the function as well.

b.The address is passed through and needs to be de-referenced to work with the value contained within. Activity done to the de-referenced value is reflected outside the function. NULL is a valid value to pass and should be handled.

c.The value is passed in as a copy. Any activity done to the parameter stays local to the function and is not reflected outside. NULL is not valid to be passed.

d.A literal is passed to the function and the parameter is treated as a constant. No activity can be done on the parameter and nothing is reflected outside the function.

Solutions

Expert Solution

<<<<<<<<<<<< Question 1 >>>>>>>>>>>>>>>

1.Why is important to understand dynamic multi-dimension arrays as “arrays of arrays?”

c.Each dynamically allocated array is placed in memory ‘where it fits’ at the time of creation, meaning each pointer points to a single array of the data type.

in dynamically allocated array each row gets a pointer of its own and it allocates memory to the pointer as it finds it fitting in memory whereever it can find

<<<<<<<<<<<< Question 2 >>>>>>>>>>>>>>>

2.When passing by pointer ... the pointer itself is passed by value. The value in this method is that we can use the pointer to make changes in memory.

b.false

as data is copied while passing so pointer data wont be changed

<<<<<<<<<<< Question 3 >>>>>>>>>>>>>>>>

3.Which of the following describes Passing by Reference?

a. The actual variable memory is passed into the function and any activity done to the parameter is reflected outside the function as well.

<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>


Related Solutions

1) Why was it so important to IKEA that it understand the market in India?
1) Why was it so important to IKEA that it understand the market in India? What made the market different from other markets that IKEA operates in?2. Can IKEA maintain its Swedish identity in India? Discuss.3. Given that IKEA first opened in India in 2018, research and briefly discuss the status of the stores now (in 2020).
1) Why is it important to be able to understand (or calculate) the present value of...
1) Why is it important to be able to understand (or calculate) the present value of an investment, project, or future cash flow?
1)Why is it important for an accountant to understand their business and industry as well as...
1)Why is it important for an accountant to understand their business and industry as well as managements informational needs in addition to knowing how to generate financial statements? Note: You may use S&S as the context while answering this question. However, please present your own examples. 2) You are likely using various forms of social media (e.g., Twitter, Facebook). Please explore the idea of how would this non-financial information external to the company be of use? What other nonfinancial information...
1)Why is it important for an accountant to understand their business and industry as well as...
1)Why is it important for an accountant to understand their business and industry as well as managements informational needs in addition to knowing how to generate financial statements? Note: You may use S&S as the context while answering this question. However, please present your own examples. 2) You are likely using various forms of social media (e.g., Twitter, Facebook). Please explore the idea of how would this non-financial information external to the company be of use? What other nonfinancial information...
Define dynamic forces within healthcare and outline why the dynamic forces in the industry are important...
Define dynamic forces within healthcare and outline why the dynamic forces in the industry are important to professionals. Identify challenges requiring quality leadership intervention strategies. Lastly, make connection explaining how these strategies can help you be more successful within a leadership position.
1. aExplain why it is important to understand the accounting and reporting requirements for an area...
1. aExplain why it is important to understand the accounting and reporting requirements for an area that an auditor will be assigned to audit – use sales and collections as an example. Briefly explain FASB’s revenue recognition standard. b. Explain the basic processes involved in generating and document revenue transactions; and in collecting for revenue transactions. You can use an example to help you explain the process. As part of your explanation, also state which documents are used to detail...
1 why is it important for students in accounting to understand how to use a manual,...
1 why is it important for students in accounting to understand how to use a manual, paper based accounting system when most accounting systems are electronic today? 2- why are there so many different accounting information systems software packages ? 3- in your opinion, what area of accounting needa computerized accounting software the most? payroll? tax? auditing? something else? 4- forensic means " suitable for use in a court of law." how does that have anything to do with accounting?...
Why is it important to understand the different planes of dissection?
Why is it important to understand the different planes of dissection?
Why is it important for managers to understand cost behavior?
Why is it important for managers to understand cost behavior?
Question 1 Why is it important for students and APNs to understand conceptualizations of advanced practice...
Question 1 Why is it important for students and APNs to understand conceptualizations of advanced practice nursing? a) Concepts, models, and theories seem remote from the real world of direct patient care and patient outcomes b) The development of a common language and conceptual framework for communication, guidance, and evaluation is vital to sound progress in any practice discipline c) The content is obsolete because of the changes in healthcare d) Practicing APNs and AP students accept models and are...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT