Question 1 C# dasturlash tilida berilgan satrdagi belgilar sonini aniqlash uchun qanday metoddan foydalaniladi? Correct answer selected


Download 17.22 Kb.
bet3/6
Sana17.06.2023
Hajmi17.22 Kb.
#1530320
1   2   3   4   5   6
Bog'liq
20230503T1138 - Burhonova Zilolaxon 1908 - Attestatsiyaga tayyorlov (1–qism)

Incorrect answer selected:
–1
Correct answer:
parvar


Question 19
int a=0; for(;;){a=(a==13) ? 0 : a+1;}ushbu dastur qismida takrorlanish necha marta amalga oshmoqda?
Correct answer selected:
cheksiz marta


Question 20
C# dasturlash tilida decimal tipidagi identifikatorlar hotirada qancha joy egallaydi?
Correct answer selected:
16 Bayt


Question 21
Quyidagi dastur qismi ishlashi natijasida konsol oynasida qanday natija hosil bo’ladi: string s = "vatanparvarlik"; Console.WriteLine(s.LastIndexOf('v'));
Correct answer selected:
8


Question 22
C# dasturlash tili kompilyatori berilgan qatorni toping?
Correct answer selected:
csc.exe


Question 23
Quyidagi dastur qismi ishlashi natijasida konsol oynasida qanday natija hosil bo’ladi: char [] ch = {'h','i','s','o','b'}; string s = "davlat"; Console.WriteLine(s.LastIndexOfAny(ch));
Correct answer selected:
–1


Question 24
Quyidagi dastur qismi ishlashi natijasida konsol oynasida qanday natija hosil bo’ladi: string s = "Qorbobo"; Console.WriteLine(s.Substring(9));
Correct answer selected:
ArgumentOutOfRangeException tipidagi xatolik sodir bo’ladi.


Question 25
C# dasturlash tilida ? operatori strukturasi qanday?
Correct answer selected:
nom = (shart) ? ifoda_1 : ifoda_2;


Question 26
Quyidagi dastur qismi ishlashi natijasida konsol oynasida qanday natija hosil bo’ladi: string s = "Matematika"; Console.WriteLine(s.IndexOf('h'));
Incorrect answer selected:
4
Correct answer:
–1


Question 27
Quyidagi massiv xotiradan qancha joy egallaydi: int [] a = new int [13];

Download 17.22 Kb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6




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