Review Game Zone
Flash Cards
(current)
Games
Teachers
Search
10c_AeSz Elmelet_1
Test Description: C# alapok
Instructions: Answer all questions to get your test result.
1) Mi a kimenet? int x = 16; int y = 5; Console.WriteLine(x/y);
A
4
B
6
C
16
D
3
2) Melyik az x = x + 5 kifejezés alternatívája?
A
5+=x
B
x=y+5
C
x+=5;
D
x++5;
3) Mi a kimenet? int x = 6; x++; Console.WriteLine(x);
A
8
B
6
C
7
D
5
4) Mi a kimenet? int a = 4; int b = 6; b = a++; Console.WriteLine(++b);
A
4
B
7
C
6
D
5
5) Mi a kimenet? int x = 15; int y = 6; x %= y; Console.WriteLine(x);
A
5
B
2
C
6
D
3
6) Minden C# program tartalmazza a ______________ metódust.
A
Console
B
Start
C
Program
D
Main
7) Ha egy metódus nem tér vissza semmivel, a _____________ visszatérési típussal rendelkezik.
A
return
B
static
C
paraméter
D
void
8) Mi a kimenet? static int Test(out int x, int y=4) x = 6; return x * y; static void Main(string args) int a; int z = Test(out a); Console.WriteLine(a + z);
A
6
B
30
C
24
D
4
9) Melyik nem paraméterátadási mód?
A
érték szerinti
B
szám szerinti
C
cím szerinti
D
referencia szerinti
10) Jellemzően melyik változó típus esetén használunk out-ot?
A
bool
B
char
C
string
D
double
*select an answer for all questions
Check Results & Get Answers
Play Games with the Questions Above
Teachers: Create FREE classroom games with your questions
Click for more info!
©2007-2024
ReviewGameZone.com
|
About
|
Privacy
|
Contact
|
Terms
|
Site Map
WAIT! Find what you needed?
×
Still Looking for the Answers?
Have Another Question?
Play a Review Game with These Questions?
Want to Make Your Own Test Like This One?