Correct
Marks for this submission: 1.00/1.00.
Question 6
Correct
Mark 1.00 out of 1.00
Flag question
Question text
To’plam elementlarini kamayish tartibida saralash operatori berilgan qatorni aniqlang.
Birini tanlang:
OrderBy
Reverse
ElementAtOrDefault
OrderByDescending
Fikr-mulohaza
Correct
Marks for this submission: 1.00/1.00.
Question 7
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Metodni e’lon qilish qaysi qatorda to’g’ri ko’rsatilgan?
Birini tanlang:
modifikator tip Nom(tip){//metod tanasi}
modifikator tip Nom(parametrlar){//metod tanasi}
modifikator Nom(parametrlar){//metod tanasi}
modifikator Nom[parametrlar]{//metod tanasi}
Fikr-mulohaza
Correct_Marks_for_this_submission:_1.00/1.00._Question_9'>Correct
Marks for this submission: 1.00/1.00.
Question 8
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Quyidagi dastur natijasi berilgan qatorni aniqlang: int[] a = { -5,2, 7, 0, -1, 5 }; var b = from n in a where n > 0select n; int p=0;foreach(int i in b) p+=i; Console.Write(p);
Birini tanlang:
8
-6
0
14
Fikr-mulohaza
Correct
Marks for this submission: 1.00/1.00.
Question 9
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Quyidagi dastur natijasi berilgan qatorni aniqlang: uint[] a = { 1,12, 7, 0, 6, 5 }; var b = from n in a where n%2!=0select n; int p=1; foreach(int i in b) p*=i; Console.Write(p);
Birini tanlang:
35
18
13
0
Fikr-mulohaza
Correct
Marks for this submission: 1.00/1.00.
Question 10
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Biror sinfda interfeysni aniqlashning umumiy formasi qaysi qatorda ko’rsatilgan:
Birini tanlang:
class interfeys_nomi : sinf_nomi { // sinf tanasi }
interface sinf_nomi : interfeys_nomi { // interfeys tanasi }
interface interfeys_nomi : sinf_nomi { // interfeys tanasi }
class sinf_nomi : interfeys_nomi { // sinf tanasi }
Fikr-mulohaza
Correct
Marks for this submission: 1.00/1.00.
Question 11
Correct
Mark 1.00 out of 1.00
Flag question
Question text
System.Object sinfining Equals metodi qanday vazifani bajaradi?
Birini tanlang:
berilgan ob’yektning xesh kodini ifodalovchi sonli qiymatni qaytarish;
berilgan ikkita ob’yektning tengligini aniqlash;
berilgan ob’yektning tipini anqlash;
berilgan ob’yektning satrli qiymatini aniqlash;
Fikr-mulohaza
Correct
Marks for this submission: 1.00/1.00.
Question 12
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Quyidagi dastur natijasi berilgan qatorni aniqlang: int[] a = { 11,0, -9, -4, 7, 5 }; var b = from n in a orderby n select n; foreach(int i in b)Console.Write(i + " ");
Birini tanlang:
-4 -9 0 5 7 11
-9 -4 0 5 7 11
5 7 11
11 7 5 0 -4 -9
Fikr-mulohaza
Correct
Marks for this submission: 1.00/1.00.
Question 13
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Qiymat qaytaruvchi metod tanasida qanday xizmatchi so’z bo’lishi shart?
Birini tanlang:
return
value
base
void
Fikr-mulohaza
Do'stlaringiz bilan baham: |