Dasturlash I (swd) O’quv natijalari


Download 132.87 Kb.
bet19/19
Sana06.08.2020
Hajmi132.87 Kb.
#125643
1   ...   11   12   13   14   15   16   17   18   19
Bog'liq
Test1

k=1; while (k<10) k=k+k; sout<< k;

1

4

LO2




A

16













B

4













C

32













D

8










267




Dastur bajarilganidan so’ng k ning qiymati nechaga teng bo’ladi?

k=1; while (k<10) k = k * (++ k); sout<< k;

1

4

LO2




A

42













B

41













C

44













D

46










268




Qaysi ifodada butun sonli tip to’g’ri e’lon qilingan ?

1

5

LO1




A

int a = 2, b = 0x24, c; c = a + b% a;













B

short x = 0, y = 2; if (y => x) {...}













C

longint c <<= 2;













D

const char mychar := 2; long s = 3; mychar /= s;










269




O’zgaruvchi va o’zgarmaslarga qiymatlari to’g’ri o’zlashtirilgan satrni ko’rsating

1

5

LO1




A

int iCode = 12123; int Viv_12 = iCode;













B

bool bb=5; constintConst = 2.5; int iConst = Const + 3;













C

float Y = 12; int Y := 3;













D

int gUw_23_2.23 = 34










Download 132.87 Kb.

Do'stlaringiz bilan baham:
1   ...   11   12   13   14   15   16   17   18   19




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling