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

C# Programming Quiz

Quiz
•
Computers
•
12th Grade
•
Hard
Mihály Kelemen
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Quizizz
10 questions
Arrays

Quiz
•
10th - 12th Grade
10 questions
Python fájlok, kivételek

Quiz
•
9th - 12th Grade
15 questions
Informatika_5_6

Quiz
•
8th - 12th Grade
15 questions
2D Arrays

Quiz
•
9th - 12th Grade
11 questions
Adatbázis

Quiz
•
12th Grade
6 questions
Python kvíz 3

Quiz
•
9th - 12th Grade
14 questions
Digitális Témahét 2024: Mi és a MI

Quiz
•
9th - 12th Grade
10 questions
tk 7.o. 31-33

Quiz
•
5th Grade - University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Computers
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade
10 questions
GPA Lesson

Lesson
•
9th - 12th Grade
15 questions
SMART Goals

Quiz
•
8th - 12th Grade
45 questions
Week 3.5 Review: Set 1

Quiz
•
9th - 12th Grade