1-Ma’ruza Mavzu: Mobil operatsion tizimlarning rivojlanish tarixi
Download 140.08 Kb.
|
DT 12-mavzu
6-Ma`ruza:C# tilida umumlashtirish (12-dars, 2/8-soat)Reja:
Takrorlash uchun test savollar 1. interface IMovable { const int minSpeed = 0; static int maxSpeed = 60; void Move(); string Name { get; set; } } Statik maydonni aniqlang. A) minSpeed B) maxSpeed C) Move D) Name 2. Interfeys deklaratsiyasidagi yana bir nuqta: agar uning a'zolari - usullari va xususiyatlarida kirish modifikatorlari bo'lmasa, u holda aslida standart kirish … modifikatori hisoblanadi, chunki interfeysning maqsadi uning sinfi tomonidan amalga oshirish uchun funksionallikni aniqlashdir. A) private B) protected C) internal D) public 3. C# da: Interfeyslardan bir nechta meros olish usulini ko`rsating. A) class sinf1: Interface1, Interface2, Interface3, ... { … } B) class sinf1; Interface1, Interface2, Interface3, ... { … } C) class sinf1.Interface1->Interface2->Interface3->, ... { … } D) class sinf1: Interface1: Interface2: Interface3: ... { … } 4. C# da: Umuman olganda, interfeyslar quyidagi ob'ektlarni belgilashi mumkin: A) Usullari B) Xususiyatlari C) Indeksatorlar D) Ishlanmalar E) Statik maydonlar va konstantalar 5. Interfeys e’lon qilingan faylni kengaytmasini aniqlang. A) *.ifs B) *.sln C) *.cs D) *.config E) *.cache 6. throw istisno operatori to`g`ri bayon etilgan javobni aniqlang. A) throw new Exception(); B) throw new NullReferenceException(); C) throw; D) throw ex;// bu yerda: Exception ex ga teng E) throw new IndexOutOfRangeException() 7. C# da object turli ma’lumotni to`g`ri e’lon qilingan javobni aniqlang. A) object a = 22; B) object b = 3.14; C) object c = "hello code"; D) object k = true; E) to`g`ri javob yo`q 8. C#: int i = 1, j = -1; while( i >= j ) { ++i; j += 2; } Takrorlanishlar sonini aniqlang A) 1 B) 0 C) 2 D) cheksiz E) 3 9. C#: Ishorasiz sonlar t urini aniqlang. A) sbyte, short, int, long B) byte, ushort, ulong, uint C) sbyte, ushort, uint, long D) var, uvar, float, decimal E) double, udouble, UInt64, Int32 Download 140.08 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling