A)0 dan N-1 gacha
B)0 dan N+1 gacha
C)0 dan N gacha
D)1 dan N gacha
176.Ushbu dastur nimani topadi?
#include
using namespace std;
int main(){
int i,res=0,f[20];
for(i=0;i<20;i++)
scanf("%d",&f[i]); for(i=1;i<20;i++)
if(f[res]>f[i])
res=i;
printf("%d",res);return 0;
}
A)Minimal element indeksi
B)Maksimal element
C)Maksimal element indeksi
D)Minimal element
177. Voris sinfning to’g’ri e’lonini aniqlang?
A)class More Details:public details;
B) class More Details:class(details)
C) class More Details:details
D) class More Details:Public class details
178 .Destruktorga nechta parameter jo’natish mumkin?
A) Destruktorga parametr jo’natish mumkin emas
B) Ko’pi bilan 3 ta
C) Ko’pi bilan 1 ta
D) Ko’pi bilan 10 ta
179 Shartli operator noto'g'ri yozilgan javob variantini tanlang?
A)if (x=1) {y=1} else y=2;
B)if(x==1) y=1;else y=2;
C) if(x==1) y=1;else {y=2;}
D) if(x==1) {y=1;}else {y=2;}
180. C++ tilidagi shartsiz o'tish operatori hisoblanadi?
A) goto
B)if
C) continue
D) switch
181.getch() funksiyasi qaysi fayli(kutubxona )sarlavhasiga tegishli
A)
B)
C)
D)
182.C++ tilida shartli operatorni to’g’ri yozish usulini ko’rsating?
A) if(x>0) y=sqrt(x);
B)IF x>0 then y:=sqrt(x);
C)if(x>0) Do y:=sqrt(x)
D)if y=sqrt(x) then x>0
183.Satr bu_
A)Belgilar ketma_ketligi
B)Kirish ketma_ketligi
C)Chiqish ketma_ketligi
D)Ustunlar ketma_ketligi
184.Dasturning bajarilishi natijasida ekranda qanday qiymat ko’rsatiladi?
#include
using namespace std;
int main()
{
int sum=0;
int array[3][3]={{2,1,2},{3,4,5},{6,7,8}};
for(int i=0;i<3;i++)
{
for(int j=0;j<3;j++)
{
sum+=array[i][j];
}
}
}
Do'stlaringiz bilan baham: |