
C# Programming Quiz

Quiz
•
Computers
•
1st Grade
•
Hard
Suhel Abdulrahman
Used 1+ times
FREE Resource
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.
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
AppsLab_Q3

Quiz
•
1st Grade - Professio...
15 questions
Тест №1

Quiz
•
1st Grade
17 questions
Computer quiz 1 Grade 2

Quiz
•
1st - 2nd Grade
10 questions
PROGRAMACION MODULAR DE VECTORES Y MATRICES

Quiz
•
1st - 5th Grade
10 questions
Quiz ADT linked list 20-12-66

Quiz
•
1st Grade
11 questions
JS Basics

Quiz
•
1st - 5th Grade
12 questions
Python Tile Program

Quiz
•
KG - 8th Grade
15 questions
C++ podstawy

Quiz
•
1st Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
addition

Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences

Quiz
•
1st - 3rd Grade
20 questions
Addition and Subtraction facts

Quiz
•
1st - 3rd Grade
20 questions
Place Value

Quiz
•
KG - 3rd Grade
10 questions
Exploring Properties of Matter

Interactive video
•
1st - 5th Grade
10 questions
Odd and even numbers

Quiz
•
1st - 2nd Grade