WGU C189 CHAPTER 6 – ARRAYS EXAM 2024 WITH 100% CORRECT ANSWERS
In an array, every element has the same __________. - correct answer b. data type
The operator used to create objects is _________. - correct answer c. new
Which of the following correctly declares an array of six integers...
In an array, every element has the same __________. - correct answer✔✔ b. data type
The operator used to create objects is _________. - correct answer✔✔ c. new
Which of the following correctly declares an array of six integers? - correct answer✔✔ d. Int[] array =
new int[6];
The value placed within square brackets after an array name is ______________. - correct answer✔✔ d.
all of the above (a subscript, an index and always an integer)
If you define an array to contain 10 elements, then the highest array subscript you can use is
_________________. - correct answer✔✔ c. 9
Initializing an array is _______________ in C#. - correct answer✔✔ b. optional
When you declare an array of six double elements but provide no initialization values, the value of the
first element is ________________. - correct answer✔✔ d. unknown (nothing is declared in new array)
Which of the following correctly declares an array of four integers? - correct answer✔✔ d. all of these
(all contain 4 integers)
When an ages array is correctly initialize using {20, 30, 40, 50}, as in Question 8, then the value of
ages[1] is _____________. - correct answer✔✔ c. 30 (life begins at 0)
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller YANCHY. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $16.99. You're not tied to anything after your purchase.