35
|
Qaysi so’z yordamida shartli operator kiritiladi?
|
1
|
2
|
LO3
|
|
A
|
if
|
|
|
|
|
B
|
for
|
|
|
|
|
C
|
public
|
|
|
|
|
D
|
struct
|
|
|
|
|
E
|
switch
|
|
|
|
|
F
|
while
|
|
|
|
36
|
|
Qaysi operator yordamida dinamik xotira o’chiriladi?
|
2
|
7
|
LO4
|
|
A
|
delete
|
|
|
|
|
B
|
new
|
|
|
|
|
C
|
continue
|
|
|
|
|
D
|
break
|
|
|
|
|
E
|
erase
|
|
|
|
|
F
|
close
|
|
|
|
37
|
|
"while (ifoda_shart) {…}" konstruksiyadan foydalanish nimani bildiradi?
|
1
|
4
|
LO2
|
|
A
|
Avval shartga tekshiriluvchi tsikl
|
|
|
|
|
B
|
Amal bajarilgandan so’ng shartga tekshiriluvchi tsikl
|
|
|
|
|
C
|
Ko’p alternativali to’plam
|
|
|
|
|
D
|
parametrik tsikl
|
|
|
|
|
E
|
Dastlab funktsiyani tekshiradigan tsikl
|
|
|
|
|
F
|
Funktsiyani hal qilgandan keyin vaziyatni tekshiradigan tsikl
|
|
|
|
38
|
|
C++ dasturlash tilida ishlatiladigan operatorlar tog’ri ko’rsatilgan javobni tanlang
|
1
|
5
|
LO3
|
|
A
|
cout, getch, return
|
|
|
|
|
B
|
begin , include, clrscr
|
|
|
|
|
C
|
while, NULL, type
|
|
|
|
|
D
|
cin, gets, char
|
|
|
|
|
E
|
cin, gets, end
|
|
|
|
|
F
|
while, do while, type
|
|
|
|
39
|
|
Quyidagi dastur bajarilgandan so’ng ekranda qanday qiymat chiqadi:
#include
int k;
int main(){
k = 123;
printf("%d", k ++);
return 0;
}
|
1
|
5
|
LO3
|
|
A
|
123
|
|
|
|
|
B
|
124
|
|
|
|
|
C
|
122
|
|
|
|
|
D
|
121
|
|
|
|
|
E
|
d123
|
|
|
|
|
F
|
%d124
|
|
|
|
40
|
|
Quyidagi dasturda nechta “Salom” so’zi chiqadi:
#include
int main(){
int a = 45, b = a / 10 + 3;
for (int I = 0; I < 2; I ++)
for(int j = 0; j < -2; j ++)
puts("Salom");
return 0;
}
|
1
|
3
|
LO3
|
|
A
|
0
|
|
|
|
|
B
|
9
|
|
|
|
|
C
|
12
|
|
|
|
|
D
|
10
|
|
|
|
|
E
|
45
|
|
|
|
|
F
|
5
|
|
|
|
41
|
|
Quyidagi funksiyalardan qaysi biri bir satrning oxiriga ikkinchi satrni ulaydi?
|
2
|
10
|
LO4
|
|
A
|
* strcat ();
|
|
|
|
|
B
|
append ();
|
|
|
|
|
C
|
stradd();
|
|
|
|
|
D
|
stringadd ();
|
|
|
|
42
|
|
Quyidagi funktsiyalardan qaysi biri kirish oqimidan x satrigacha 100 ta belgilarni o'qiydi?
|
2
|
10
|
LO4
|
|
A
|
cin.getline(x, 100, '\n');
|
|
|
|
|
B
|
cin.getline(x, 100, 'n');
|
|
|
|
|
C
|
|
|
|
|
|
D
|
readline (100)
|
|
|
|
43
|
|
Ikkita satrni taqqoslovchi funksiyani ko’rsating ?
|
2
|
10
|
LO4
|
|
A
|
*strcmp();
|
|
|
|
|
B
|
Stringcompare();
|
|
|
|
|
C
|
compare();
|
|
|
|
|
D
|
cmp();
|
|
|
|
44
|
|
satr o'zgaruvchisini to'g'ri e’lon qilinishini aniqlash
|
2
|
10
|
LO4
|
|
A
|
string mystr;
|
|
|
|
|
B
|
string mystr[20];
|
|
|
|
|
C
|
string[20] mystr;
|
|
|
|
|
D
|
char mystr[20];
|
|
|
|
45
|
|
char a o'zgaruvchi e'lon qilingan; Quyidagi iboralarning qaysi biri to'g'ri emas?
|
2
|
10
|
LO4
|
|
A
|
a = "3";
|
|
|
|
|
B
|
a = '3';
|
|
|
|
|
C
|
a = 3;
|
|
|
|
|
D
|
int a=3
|
|
|
|
46
|
|
"Salom maktab" iborasi n o’lchamli belgilar massivida berilgan. N nimaga teng?
|
2
|
10
|
LO4
|
|
A
|
12
|
|
|
|
|
B
|
10
|
|
|
|
|
C
|
5
|
|
|
|
|
D
|
6
|
|
|
|
47
|
|
Satrni qanday shaklda e'lon qilish mumkin?
|
2
|
10
|
LO4
|
|
A
|
char satr[] = "Institut";
|
|
|
|
|
B
|
char satr = "Institut";
|
|
|
|
|
C
|
char &satr[] = "Institut";
|
|
|
|
|
D
|
a va c javoblar o'g'ri
|
|
|
|
48
|
|
Quyidagilardan qaysi birida satr to'g'ri kiritilgan?
|
2
|
10
|
LO4
|
|
A
|
char matn[15]; gets(matn);
|
|
|
|
|
B
|
char matn[15]; cin.getline(matn);
|
|
|
|
|
C
|
char matn[15]; cin.getline(matn15);
|
|
|
|
|
D
|
char matn[15]; getline(cin, matn);
|
|
|
|
49
|
|
Quyidagi programma qismi ishlashi natijasida ekranga qanday qiymat chiqadi?
int s=0, m=0 ;
charmatn[] = "2019-2020 fanninignomi C++ da programmalashasoslari";
for(int i=0;i
if(isdigit(matn[i])) s++;
else if (isalpha(matn[i])) m++;
cout<
|
2
|
11
|
LO4
|
|
A
|
8 36
|
|
|
|
|
B
|
6 32
|
|
|
|
|
C
|
5 29
|
|
|
|
|
D
|
6 23
|
|
|
|
50
|
|
Quyidagi programma qismi ishlashi natijasida ekranga qanday qiymat chiqadi?
string s="Maktablar", s1="Bolalar", s3="Talaba";
s.swap(s1);
s.erase(0,4);
s1.assign(s);
cout<
|
2
|
11
|
LO4
|
|
A
|
Talabalar
|
|
|
|
|
B
|
Maktablar
|
|
|
|
|
C
|
Bolalar
|
|
|
|
|
D
|
BolaTalaba
|
|
|
|
51
|
|
tolower() funksiyasining vazifasinima?
|
2
|
10
|
LO4
|
|
A
|
Satrdagi katta harflarni kichigiga almashtiradi
|
|
|
|
|
B
|
Satrdagi kichik harflarni kattasiga almashtiradi
|
|
|
|
|
C
|
Sardagi harflarni raqamlarga almashtiradi
|
|
|
|
|
D
|
Satrdagi raqamlarniharflarni almashtiradi
|
|
|
|
52
|
|
toupper() funksiyasining vazifasi nima?
|
2
|
10
|
LO4
|
|
A
|
Satrdagi kichik harflarni kattasiga almashtiradi
|
|
|
|
|
B
|
Satrdagi katta harflarni kichigiga almashtiradi
|
|
|
|
|
C
|
Sardagi harflarni raqamlarga almashtiradi
|
|
|
|
|
D
|
Satrdagi raqamlarniharflarni almashtiradi
|
|
|
|
53
|
|
tolower() va toupper() funksiyalaridan foydalanish uchun qaysi sarlavha faylini kiritishimiz kerak?
|
2
|
10
|
LO4
|
|
A
|
|
|
|
|
|
B
|
|
|
|
|
|
C
|
|
|
|
|
|
D
|
|
|
|
|
54
|
|
Quyidagi programma qismi ishlashi natijasida ekranga qanday qiymat chiqadi?
char s[] = "Toshkent Axborot Texnologiyalari Universiteti talabalari";
char c='a'; int k=0;
for(int i=0; i
if(s[i]==c) k++;
cout<
|
2
|
11
|
LO4
|
|
A
|
6
|
|
|
|
|
B
|
4
|
|
|
|
|
C
|
5
|
|
|
|
|
D
|
7
|
|
|
|
55
|
|
25 ta simvolli A string massivni to’g’ri e’lon qilingan variantini tanlang
|
2
|
11
|
LO4
|
|
A
|
a:string[25];
|
|
|
|
|
B
|
a:string;
|
|
|
|
|
C
|
a:array [1..25]
|
|
|
|
|
D
|
of strihg;
|
|
|
|
56
|
|
Berilgan dastur qismida
char arr[8];
cin>>arr;
Va qatorda biz keyingi HelloWorld belgilar to'plamini yozishga harakat qildik. Massiv aslida nimani o'z ichiga oladi
|
2
|
11
|
LO4
|
|
A
|
HelloWo
|
|
|
|
|
B
|
Hello W
|
|
|
|
|
C
|
HelloWorld
|
|
|
|
|
D
|
Hello
|
|
|
|
57
|
|
C-satri qaysi belgi bilan tugaydi?
|
2
|
10
|
LO4
|
|
A
|
\0
|
|
|
|
|
B
|
''
|
|
|
|
|
C
|
'.'
|
|
|
|
|
D
|
'n'
|
|
|
|
58
|
|
Char + tipidagi ma'lumotlar uchun C ++ da qanday standart kod ishlatiladi?
|
2
|
10
|
LO4
|
|
A
|
Kod ASCII
|
|
|
|
|
B
|
Kod cp-1251
|
|
|
|
|
C
|
Kod ASCI
|
|
|
|
|
D
|
Kod UTF-8
|
|
|
|
59
|
|
Quyidagi programma qismi ishlashi natijasida ekranga qanday qiymat chiqadi?
|
2
|
11
|
LO4
|
|
A
|
BCCBCCCCCC
|
|
|
|
|
B
|
ABC
|
|
|
|
|
C
|
CBBB
|
|
|
|
|
D
|
BCCA
|
|
|
|
60
|
|
Quyidagi programma qismi ishlashi natijasida ekranga qanday qiymat chiqadi?
string s1="A", s2="B", s3="C";
int i=1;
s1.insert(i,s3);
s1.append(s2);
s2.insert(i,s3);
s1.erase(1,2);
s3=s1+s2;
cout<
|
2
|
11
|
LO4
|
|
A
|
ABC
|
|
|
|
|
B
|
CAB
|
|
|
|
|
C
|
ACB
|
|
|
|
|
D
|
BBC
|
|
|
|