Quyidagi dastur ishlashi natijasida ekranda qanday natija paydo bo’ladi ?


Download 14.58 Kb.
Sana20.06.2023
Hajmi14.58 Kb.
#1627631

  1. Quyidagi dastur ishlashi natijasida ekranda qanday natija paydo bo’ladi ?

Public static void Main ()
{
Action DoSomething = => Console.WriteLine (“Hello !”);
DoSomething();
}

  1. Hello !

  2. Blank output

  3. Compile-time error

  4. Runtime error

  1. Ushbu dasturda T qachon haqiqiy turga almashtiriladi ?

class ValueProcessor
{
//Amalga oshirish
}

  1. Compile-Time

  2. Run time

  3. Debugging time

  4. Never

  1. Quyidagi umumiy cheklovlardan qaysi biri IEnumerable interfeysini amalga oshiradigan sinf ob'ekti uchun umumiy turdagi parametrni cheklaydi

  1. class Processor where T: IEnumerable

  2. class Processor where T: class: IEnumerable

  3. class Processor where T: interface: IEnumerable

  4. class Processor where T: new()

  1. Ushbu dastur ishlashi natijasida ekranda qanday natija hosil bo’ladi?

ValueTuple person = (1, “Tom”);
Console.Write(person.Item2);

  1. Tom

  2. 1

  3. Compile-time error

  4. Runtime error

  1. Quyidagi turlardan qaysi biri interfeyslarni amalga oshirishi mumkin

  1. A va B

  2. Class

  3. Struct

  4. Event

  1. Interfeysda himoyalangan a'zoni e'lon qila olamizmi?

  1. Yo’q

  2. Ha

  3. A va B

  4. To’g’ri javob yoq’


Download 14.58 Kb.

Do'stlaringiz bilan baham:




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