C# Programming Quiz

C# Programming Quiz

1st Grade

12 Qs

quiz-placeholder

Similar activities

Competitive Programming

Competitive Programming

1st Grade

10 Qs

Understand VLOOKUP and INDEX MATCH

Understand VLOOKUP and INDEX MATCH

1st Grade

10 Qs

6 сынып PYTHON  тілінде программалау

6 сынып PYTHON тілінде программалау

1st Grade

10 Qs

Q3 ADT ArrayList

Q3 ADT ArrayList

1st Grade

10 Qs

U26 Q5 The Matrix!

U26 Q5 The Matrix!

KG - University

14 Qs

Java Web

Java Web

1st - 7th Grade

12 Qs

Postest Struktur data

Postest Struktur data

1st - 5th Grade

10 Qs

Python Array

Python Array

1st - 3rd Grade

10 Qs

C# Programming Quiz

C# Programming Quiz

Assessment

Quiz

Computers

1st Grade

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?