C# Programming Quiz

C# Programming Quiz

1st Grade

12 Qs

quiz-placeholder

Similar activities

Administrasi Infrastruktur Jaringan

Administrasi Infrastruktur Jaringan

1st - 10th Grade

10 Qs

Hari 3 - Kuis Coding & Perkenalan AI - Fitri Yanti

Hari 3 - Kuis Coding & Perkenalan AI - Fitri Yanti

1st - 12th Grade

12 Qs

Excel Parts

Excel Parts

1st - 4th Grade

10 Qs

AutoCAD w Brzesku \m/

AutoCAD w Brzesku \m/

1st - 12th Grade

10 Qs

kiểm tra miệng tin 9 (tiết 12)

kiểm tra miệng tin 9 (tiết 12)

1st Grade

10 Qs

APS - CC

APS - CC

1st Grade

10 Qs

Computer - True or False

Computer - True or False

1st Grade

10 Qs

Kümelenme

Kümelenme

1st Grade

12 Qs

C# Programming Quiz

C# Programming Quiz

Assessment

Quiz

Computers

1st Grade

Practice Problem

Hard

Created by

Suhel Abdulrahman

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?