This Unit 6 Arrays quiz in C# assesses understanding of array data types, object creation, array declarations, and indexing. It tests key programming skills in C#, suitable for learners aiming to improve their software development competencies.
=
+=
New
Create
Rate this question:
Int array[4];
Int[] array = 4;
Int[4] array;
Int[] array = new int[4];
Rate this question:
A subscript
An index
Always an integer
all of these
Rate this question:
5
6
7
8
Rate this question:
Required
Optional
Difficult
Prohibited
Rate this question:
0.0
1.0
5.0
Unknown
Rate this question:
Int[] ages = new int[4] {20, 30, 40, 50};
Int[] ages = new int[] {20, 30, 40, 50};
Int[] ages = {20, 30, 40, 50};
All of these
Rate this question:
0
20
30
Out of bounce
Rate this question:
0
4
50
Out of Balance
Rate this question:
5
6
7
Unknown
Rate this question:
For(int x = 9; x >= 0; --x) amount[x] *= 2;
Foreach(int number in amount) number *= 2;
both of these
Neither of these
Rate this question:
For(int sub = 0; sub > 15; ++sub) points[sub] += 10;
Foreach(int sub in points) points += 10;
Both of these
neither of these
Rate this question:
Analogous arrays
Polymorphic arrays
Relative arrays
Parallel arrays
Rate this question:
For(int x = 4; x > 0; --x) Console.Write(nums[x]);
For(int x = 3; x >= 0; --x) Console.Write(nums[x]);
For(int x = 3; x > 0; --x) Console.Write(nums[x]);
for(int x = 4; x >= 0; --x) Console.Write(nums[x]);
Rate this question:
Array.Sort(nums);
Array.Reverse(nums);
Array.Sort(nums); Array.Reverse(nums);
Array.Reverse(nums); Array.Sort(nums);
Rate this question:
Both methods take a single argument that must be an array
Both methods belong to the System.Array class.
Th e array that each method uses must be in ascending order.
They both operate on arrays made up of simple data types but not class objects.
Rate this question:
An error message is displayed
A zero is returned
The value false is returned
A negative value is returned
Rate this question:
Int[8, 5] num = new int[ , ];
Int [8][5] num = new int[];
Int [ , ] num = new int[5, 8];
int [ , ] num = new int[8, 5];
Rate this question:
array items are in ascending order
The array holds duplicate values and you want to find them all
You want to fi nd an exact match for a value
Array items are not numeric
Rate this question:
Quiz Review Timeline (Updated): Mar 22, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.