C++ dasturlash tilida necha XIL o’zgaruvchini turi mavjud? A b c d 5
Download 321.14 Kb.
|
maktab test
1-variant 1.C++ dasturlash tilida necha xil o’zgaruvchini turi mavjud? A) 3 B) 4 C) 2 D) 5 2.Qaysi operator tsikl operatori? A) for B) While C)if D)for,While,do While 3.Switch operatori qanday qiymat qabul qiladi A) Toq qiymat B) Juft qiymat C) Kasr qiymat D)butun qiymat 4.Shartsiz o’tish operatorini ko’rsating. A) If B) for C) Swtich D) goto 5.int a=5; if(a>0.5 || 1) {a=7;}cout<A) 5 B) 1 C) 7 D) 0.5 6. int a=7,b=2; if(a<9 || b*2==4) {a*=b;}cout<A) 7 B) 8 C) 9 yoki 14 D)14 7.int a=3,b=6; a= --a+(b--)-b;cout<A) 9 B) 8 C) -8 D) -9 8.int tipida e’lon qilingan massiv elementlarini sonini qaysi funksia orqali topiladi? A)Strlen B)Length C) sizof D)sizeof 9.Massiv chegarasi qanday tipdagi sonda beriladi ? A)float B)bool C) char D)int 10. Dev c++ dasturlash tilida matematik kutubxona qaysi? A)include B)math C)Iostream D)cmath 2-variant 1.C++ dasturlash tilida necha xil o’zgaruvchini turi mavjud? A) 3 B) 4 C) 2 D) 5 2.Qaysi operator tsikl operatori? A) for B) While C)if D)for,While,do While 3.Switch operatori qanday qiymat qabul qiladi A) Toq qiymat B) Juft qiymat C) Kasr qiymat D)butun qiymat 4.Shartsiz o’tish operatorini ko’rsating. A) If B) for C) Swtich D) goto 5.int a=5; if(a>5.0 && 1) {a=7;}cout<A) 5 B) 1 C) 7 D) 0.5 6. int a=7,b=2; if(a<9 || b/2==4) {a+=b;}cout<A) 7 B) 8 C) 9 yoki 14 D)14 7.int a=3,b=6; a= --a+(b++)-(--b);cout<A) 7 B) -7 C) 2 D) -9 8.int tipida e’lon qilingan massiv elementlarini sonini qaysi funksia orqali topiladi? A)Strlen B)Length C) sizof D)sizeof 9.Massiv chegarasi qanday tipdagi sonda beriladi ? A)float B)bool C) char D)int 10. Dev c++ dasturlash tilida matematik kutubxona qaysi? A)include B)math C)Iostream D)cmath Download 321.14 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling