10c_AeSz Elmelet_1 Question Preview (ID: 33119)


C# Alapok. TEACHERS: click here for quick copy question ID numbers.

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) 6
d) 4

Ha egy metódus nem tér vissza semmivel, a _____________ visszatérési típussal rendelkezik.
a) void
b) static
c) return
d) paraméter

Mi a kimenet? int x = 15; int y = 6; x %= y; Console.WriteLine(x);
a) 3
b) 2
c) 5
d) 6

Minden C# program tartalmazza a ______________ metódust.
a) Main
b) Console
c) Start
d) Program

Mi a kimenet? int x = 6; x++; Console.WriteLine(x);
a) 7
b) 6
c) 5
d) 8

Mi a kimenet? int a = 4; int b = 6; b = a++; Console.WriteLine(++b);
a) 5
b) 4
c) 6
d) 7

Melyik az x = x + 5 kifejezés alternatívája?
a) x+=5;
b) x++5;
c) 5+=x
d) x=y+5

Mi a kimenet? int x = 16; int y = 5; Console.WriteLine(x/y);
a) 3
b) 16
c) 4
d) 6

Melyik nem paraméterátadási mód?
a) szám szerinti
b) cím szerinti
c) érték szerinti
d) referencia szerinti

Jellemzően melyik változó típus esetén használunk out-ot?
a) bool
b) char
c) string
d) double

Play Games with the Questions above at ReviewGameZone.com
To play games using the questions from above, visit ReviewGameZone.com and enter game ID number: 33119 in the upper right hand corner or click here.

TEACHERS / EDUCATORS
Log In
| Sign Up / Register