C# Programming Quiz

C# Programming Quiz

12th Grade

10 Qs

quiz-placeholder

Similar activities

A LEGO® MINDSTORMS® EV3 távolságérzékelői

A LEGO® MINDSTORMS® EV3 távolságérzékelői

7th - 12th Grade

10 Qs

Основи Python

Основи Python

12th Grade

10 Qs

AP Computer Science A Review 1

AP Computer Science A Review 1

10th - 12th Grade

15 Qs

Arrays += Chan

Arrays += Chan

9th - 12th Grade

12 Qs

Neumann János

Neumann János

8th - 12th Grade

8 Qs

Próba Quiz

Próba Quiz

10th - 12th Grade

5 Qs

Variables and Data Types

Variables and Data Types

10th - 12th Grade

10 Qs

OOP - Java Classes

OOP - Java Classes

12th Grade - University

15 Qs

C# Programming Quiz

C# Programming Quiz

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Mihály Kelemen

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Mi a C#-ban a változó deklarálásának szintaxisa?

int myVariable;

var myVariable;

string myVariable;

double myVariable;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Melyik adattípus használatos egész számok tárolására C#-ban?

int

boolean

string

float

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Mi a következő kód kimenete?

int x = 5;

int y = 3;

Console.WriteLine(x + y);

3

15

53

8

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Mi a C#-ban egy függvény célja?

Egy adott feladat végrehajtása egyszer a programban.

Egy változó definiálása C#-ban.

Kimenet megjelenítése a konzolon C#-ban.

Egy utasításkészlet vagy kód beburkolása, amely újrahasználható és többször hívható meg a programban.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hogyan lehet hozzáférni egy tömb első eleméhez C#-ban?

tömb[1]

tömb[-1]

tömb[első]

tömb[0]

6.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the correct way to declare a string variable in C#?

Evaluate responses using AI:

OFF

7.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the output of the following code? int x = 10; if (x > 5) { Console.WriteLine("x is greater than 5"); } else { Console.WriteLine("x is less than or equal to 5"); }

Evaluate responses using AI:

OFF

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?