• Quyidagi kodning kompilyatsiya va ijro natijasi qanday bo‘ladi
  • 6-mavzu. Sikl operatorlari Reja
  •  Console.WriteLine("Exclusive OR: "+ ((2 < 3) ^ (4 > 3))); mantiqiy ifoda




    Download 6,33 Mb.
    Pdf ko'rish
    bet75/194
    Sana20.02.2024
    Hajmi6,33 Mb.
    #159185
    1   ...   71   72   73   74   75   76   77   78   ...   194
    44. Console.WriteLine("Exclusive OR: "+ ((2 < 3) ^ (4 > 3))); mantiqiy ifoda 
    natijasi berilgan javobni belgilang? 
    a) Exclusive OR: False 
    b) Exclusive : True 
    c) True 
    d) Exclusive OR: True 
    45. Quyidagi kodning kompilyatsiya va ijro natijasi qanday bo‘ladi: 
    using
    System; 
    public
    class
    Test

    public
    static
    void
    Main() 

    bool value = !(7 == 5);
    Console.WriteLine(value);



    a) true 
    b) Kompilyatsiya xatoligi vujudga keladi 
    s) false 
    d) 0 
    46. Quyidagi kodning kompilyatsiya va ijro natijasi qanday bo‘ladi: 
    int
    number = 6; 
    switch
    (number) 

    case
    1: 
    case
    4: 


    Dasturlash tillari va axborot-kommunikatsiya texnologiyalari 1-semestr
    126 
    case
    6: 
    case
    8: 
    case
    10: 
    Console
    .WriteLine(
    "The number is not 
    prime!"
    );
    case
    2: 
    case
    3: 
    case
    5: 
    case
    7: 
    Console
    .WriteLine(
    "The number is prime!"
    );
    default

    Console
    .WriteLine(
    "Unknown number!"
    ); 
    break


    a) The number is not prime! 
    b) Kompilyatsiya xatoligi vujudga keladi
    s) The number is prime! 
    d) Unknown number!


    Dasturlash tillari va axborot-kommunikatsiya texnologiyalari 1-semestr
    127 
    6-mavzu. Sikl operatorlari 
    Reja 
    1. 
    Kirish ([2] 211-212-betlar)
     
    2. 
    While sikli ([2] 212-214- betlar)
     
    3. 
    "break" operatori ([2] 215-betlar)
     
    4. 
    Do-While sikli ([2] 216-bet)
      
    5. 
    For sikli ([2] 221-bet)
      
    6. 
    Ichma – ich joylashgan sikllar ([2] 227-bet)
     

    Download 6,33 Mb.
    1   ...   71   72   73   74   75   76   77   78   ...   194




    Download 6,33 Mb.
    Pdf ko'rish

    Bosh sahifa
    Aloqalar

        Bosh sahifa



     Console.WriteLine("Exclusive OR: "+ ((2 < 3) ^ (4 > 3))); mantiqiy ifoda

    Download 6,33 Mb.
    Pdf ko'rish