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
3
C
16
D
6
2) Melyik az x = x + 5 kifejezés alternatívája?
A
5+=x
B
x+=5;
C
x=y+5
D
x++5;
3) Mi a kimenet? int x = 6; x++; Console.WriteLine(x);
A
6
B
8
C
5
D
7
4) Mi a kimenet? int a = 4; int b = 6; b = a++; Console.WriteLine(++b);
A
7
B
6
C
5
D
4
5) Mi a kimenet? int x = 15; int y = 6; x %= y; Console.WriteLine(x);
A
6
B
2
C
5
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
paraméter
B
return
C
void
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
24
B
4
C
6
D
30
9) Melyik nem paraméterátadási mód?
A
szám szerinti
B
cím szerinti
C
érték szerinti
D
referencia szerinti
10) Jellemzően melyik változó típus esetén használunk out-ot?
A
char
B
double
C
string
D
bool
*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?