Search Header Logo

C# Programming Quiz

Authored by Mihály Kelemen

Computers

12th Grade

C# Programming Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?