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


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


Quiz: Attestatsiyaga tayyorlov (1–qism)
Burhonova Zilolaxon 1908
Quiz started on 3 May 2023 at 11:38:45
Elapsed time 18 min 51 sec out of 25 min
50 questions were presented of 50 planned.
Correct answers: 40 (80 %)
40 points out of 50


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


Question 2
C# dasturlash tilida Bitwise AND (bitli "VA") amali berilgan qatorni aniqlang?
Correct answer selected:
&


Question 3
Quyidagi dastur qismi ishlashi natijasida konsol oynasida qanday natija hosil bo’ladi: string s = "Qorbobo"; Console.WriteLine(s.Substring(3));
Incorrect answer selected:
20 Bayt
Correct answer:
10 Bayt


Question 4
C# dasturlash tilida Console oynasida qo’shtirnoq belgisini chiqarish uchun qaysi belgidan foydalaniladi?
Correct answer selected:
\''


Question 5
Quyidagi dastur qismi ishlashi natijasida konsol oynasida qanday natija hosil bo’ladi: char [] ch = {'e','z','g','u','l','i','k'}; string s = "Vatanparvar"; Console.WriteLine(s.IndexOfAny(ch));
Incorrect answer selected:
–1
Correct answer:
10


Question 6
Quyidagi matritsaning elementlar sonini aniqlang: int [,] a = new int[3,4];
Correct answer selected:
12


Question 7
Quyidagi dastur qismi ishlashi natijasida konsol oynasida qanday natija hosil bo’ladi: string s = "O'zbekiston"; Console.WriteLine(s.Substring(5));
Correct answer selected:
kiston


Question 8
Matnlar bilan ishlashda Split qanday vazifani bajaradi?
Correct answer selected:
matnni ko'rsatilgan belgilar asosida qismlarga bo'lish


Question 9
Quyidagi dastur qismi ishlashi natijasida konsol oynasida qanday natija hosil bo’ladi: char [] ch = {'y','o','s','h','l','i','k'}; string s = "Traktor"; Console.WriteLine(s.IndexOfAny(ch));

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