Javob= 3 Задание #285 Вопрос: Quyidagi surov natijasi nimaga teng:
List list = new List() { 10, 12, 5, 14, 15, 16, 27, 18, 14, 18 };
var surov = from obj in list
where obj % 3 == 0 || obj % 4 == 0
where obj + 2 < 20
select obj;
Console.Write("soni" + surov.Count());
Javob= soni3 Задание #286 Вопрос: Quyidagi surov bajarilishi uchun qaysi nomlar fazosini kiritish yetarli:
List list = new List() { 1, 2, -3, 14, 5, 16, 27, 18, 14, 10 };
var surov = from obj in list
where obj > 2 || obj % 3 == 0 && obj % 2 == 0
select obj;
foreach (var item in surov) {Console.WriteLine(item);}
Javob= 14,5,16,27,18,14,10 Задание #287 Вопрос: Quyidagi Dictionary metodining vazifasini aniqlang
bool ContainsKey(K key)
Javob= Bu metod lug’atda kalitni qidirib topadi va uni bor yoki yo’qligini true yoki false qiymatida qaytaradi Задание #288 Вопрос: Quyidagi Dictionary metodining vazifasini aniqlang
bool ContainsValue(V value)
Javob= Bu metod lug’atda qiymatni qidirib topadi va uni bor yoki yo’qligini true yoki false qiymatida qaytaradi Задание #289 Вопрос: Natijani aniqlang:
var phoneBook = new Dictionary();
phoneBook.Add("+123456", "Tom");
var phoneExists1 = phoneBook.ContainsKey("+123456");
Console.WriteLine($"+123456: {phoneExists1}");
Javob= +123456: True Задание #290 Вопрос: Natijani aniqlang:
var phoneBook = new Dictionary();
phoneBook.Add("+123456", "Tom");
var abonentExists1 = phoneBook.ContainsValue("Tom");
Console.WriteLine($"Tom: {abonentExists1}");
Javob= Tom: True Задание #291 Вопрос: Fayl tizimining nomini olish uchun qaysi xossa yoki metoddan foydalaniladi?