
C# Programming Quiz
Quiz
•
Computers
•
1st Grade
•
Practice Problem
•
Hard
Suhel Abdulrahman
Used 1+ times
FREE Resource
Enhance your content in a minute
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of the first element in a one-dimensional array in C#?
0
1
-1
The length of the array
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the keyword used to initialize an array in C#?
array
new
initialize
int[]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of the first row in a two-dimensional array in C#?
0
1
-1
The number of rows
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a return type in a function declaration?
It specifies the type of data the function will receive.
It specifies the type of data the function will return.
It specifies the name of the function.
It specifies the parameters of the function.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a two-dimensional array in C#?
int[][] matrix = new int[3][3];
int[3][3] matrix;
int[,] matrix = new int[3,3];
int matrix[3,3];
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an advantage of using functions in programming?
Reducing code duplication
Increasing program complexity
Slowing down program execution
Restricting code reuse
7.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
What does the following code do in C#? int[,] matrix = new int[3,3];
Declares a two-dimensional array with 3 rows and 3 columns.
Initializes a two-dimensional array with 3 rows and 3 columns.
Declares a function named "matrix" with parameters 3 and 3.
Initializes a function named "matrix" with parameters 3 and 3.
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
15 questions
Знаток Paint
Quiz
•
1st - 10th Grade
10 questions
Internet Communication
Quiz
•
KG - 1st Grade
7 questions
Among Us
Quiz
•
1st - 4th Grade
13 questions
ôn tập 1 lớp 5
Quiz
•
1st - 5th Grade
11 questions
3 сынып 2 параг
Quiz
•
1st Grade
12 questions
Repaso general propedéutico 2022B
Quiz
•
1st Grade
15 questions
Ôn tập kỳ 2 tin 6
Quiz
•
1st - 12th Grade
10 questions
Logomocja - rysowanie
Quiz
•
1st - 5th Grade
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
Discover more resources for Computers
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
13 questions
Fractions
Quiz
•
1st - 2nd Grade
20 questions
CVC Words
Quiz
•
KG - 1st Grade
15 questions
Place Value tens and ones
Quiz
•
1st Grade
16 questions
Money - Coins
Lesson
•
1st - 2nd Grade
20 questions
Halves and Fourths
Quiz
•
1st Grade
