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
16
B
6
C
4
D
3
2) Melyik az x = x + 5 kifejezés alternatívája?
A
x=y+5
B
x++5;
C
x+=5;
D
5+=x
3) Mi a kimenet? int x = 6; x++; Console.WriteLine(x);
A
7
B
6
C
5
D
8
4) Mi a kimenet? int a = 4; int b = 6; b = a++; Console.WriteLine(++b);
A
5
B
7
C
6
D
4
5) Mi a kimenet? int x = 15; int y = 6; x %= y; Console.WriteLine(x);
A
6
B
2
C
3
D
5
6) Minden C# program tartalmazza a ______________ metódust.
A
Main
B
Start
C
Console
D
Program
7) Ha egy metódus nem tér vissza semmivel, a _____________ visszatérési típussal rendelkezik.
A
paraméter
B
void
C
return
D
static
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
30
B
24
C
4
D
6
9) Melyik nem paraméterátadási mód?
A
referencia szerinti
B
érték szerinti
C
szám szerinti
D
cím szerinti
10) Jellemzően melyik változó típus esetén használunk out-ot?
A
bool
B
string
C
char
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?