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
|
|
|
|