07 Jun DEVRY CIS170B WEEK 5 quiz
Question
(TCO 11) An array is a list of data items that _____.
share the same data type
are all integers
have different faces
the different flavors
Comments:
Question 2. Question :
(TCO 11) Which statement is true about this array declaration?
int [] myArray = {1,4,3,5,6};
It declares a 5 dimensional array.
The size of the array is five.
It sets the element myArray[1] to 1.
It won’t compile due to a syntax error.
Comments:
Question 3. Question :
(TCO 11) What will be the output of this code?
int[] size = {2,3,5,6,4,5};
Array.Sort(size);
foreach (int
val in size)
Console.Write(“{0} “, val);
2 3 5 6 4 5
5 4 6 5 3 2
6 5 5 4 3 2
2 3 4 5 5 6
Comments:
Question 4. Question :
(TCO 11) When a single array element, such as myArray[2], is passed to a method, the method receives _____.
a copy of the array
the starting address of the array
the address of the element
a copy of the value in the element
Comments:
Question 5. Question :
(TCO 12) The size of a(n) _____ must be determined when the program is written, whereas elements of a(n) _____ can be added or deleted at runtime.
array, ArrayList
ArrayList, array
array, Array class
ArrayList, Array class
Comments:
Question 6. Question :
(TCO 12) In your program, myList was declared as an ArrayList. To append the number 7 to the end of myList, write _____.
myList.Add(7);
myList.Append(7);
myList.Insert(7);
myList.Set(7);
Comments:
Question 7. Question :
This is a valid statement:
decimal [] price = new decimal[5];
True False
Comments:
Question 8. Question :
In the following, we can code height[1,1] in a two-dimensional array that will have values
like this (this is partial code): height = { {2.1, 3.2, 6.5, 7.2},
{5.4, 6.7, 3.5, 3.6} };
True False
Comments:
Question 9. Question :
The following is valid code for a one-dimensional array:
int[] size = {2,3,5,6,4,5};
True False
Comments:
Question 10. Question :
ArrayList “Count” property to give the user the current number of integers with a value of ‘1’ in TempArray.
True False
Comments:
* Times are displayed in (GMT-07:00) Mountain Time (US & Canada)
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
About Writedemy
We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.
How It Works
To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Are there Discounts?
All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.
