
Lab8_Quiz_section2
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
bme programming
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a one-dimensional array?
Multi-row structure
Linear collection
Key-value pairs
Random list
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does array.Length return?
Total number of elements in the array
Maximum index of array
Number of dimensions in the array
Data type of the array
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you initialize an array with values?
int[] arr = [1, 2, 3];
int arr[] = {1, 2, 3};
int[] arr =
new int[3] {1, 2, 3};
int[] arr =
new int[3] [1, 2, 3];
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of the second element in a single-dimensional array in C#?
0
1
2
-2
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If an array is declared as int[] arr = new int[4];, what will arr.Length return?
3
4
5
0
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output?
int[] arr = { 5, 10, 15, 20 };
Console.WriteLine(arr[3]);
5
10
15
20
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to declare a two-dimensional array of integers in C#?
int arr[];
int[,] arr;
int arr[,];
int[] arr;
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
12 questions
Quiz 2 - Stack
Quiz
•
University
10 questions
Seatwork for Data Storage
Quiz
•
University
15 questions
DBC CHAPTER 3 - REVISION
Quiz
•
University
15 questions
GAME QUIZ!!
Quiz
•
University
10 questions
Java Quiz 1
Quiz
•
University
12 questions
O que vamos aprender?
Quiz
•
1st Grade - University
10 questions
Algorithm analysis: divide & conquer theory
Quiz
•
University
10 questions
Programacion Orientada a Objetos
Quiz
•
12th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
