Dastur ishlash natijasida ekranda dastlab qanday yozuv chiqadi?


Download 21.28 Kb.
Sana17.06.2023
Hajmi21.28 Kb.
#1527363
Bog'liq
20 ta C# testlar Kariboyev Davron


  1. Dastur ishlash natijasida ekranda dastlab qanday yozuv chiqadi?

A hello world
B hello *
C wellcome
D home

  1. C# dasturlash tilida, consol rejimida dastur tuzish. Yangi loyihalar nomini kiriting

A File new project c# concole applecation *
B Fil
C Console
D Console c

  1. Read metodi. Birinchi kiritiluvchi kod qaysi?

A int i = console. Read
B console
C write (I)
D yo'q

  1. C# dasturlash tilida nechta literal mavjud?

A 5 ta *
B 2 ta
C 4 ta
D 6 ta

  1. C# da to'g'ri ko'rsatilgan

A !?= Tenglik
B =+- teng
C =+- tenglik*
D=== teng


  1. C# dasturlash tili qaysi markaziy operatorga ega?

    A) If
    B) Switch*


    C) For
    D) While

    7. C# dasturlash tilida, "public" va "private" kalit so'zlar nima ma'noga keladi?

    A) "Public" dastur ichidan yoki sinfdan foydalana oladi, "private" esa faqat sinfdan foydalana oladi.*
    B) "Public" sinfdan foydalana oladi, "private" esa dastur ichidan yoki sinfdan foydalana oladi.
    C) "Public" va "private" bir xil ma'noga keladi.
    D) C# da bunday kalit so'zlar yo'q.

    8. C# da qaysi loops (sikl, do-while, for-loop, foreach-loop), bitta yoki undan ko'p shart bilan ishlaydi?

    A) Sikl
    B) Do-while
    C) For-loop*
    D) Foreach-loop

    9. Qaysi C# dasturlash tilidagi funksiya, sonlarni yig'indisini hisoblaydi?

    A) Math.Floor()
    B) Math.Ceiling()
    C) Math.Round()
    D) Math.Sum()*

    10. Qaysi C# dasturlash tilidagi funksiya, satrni teskari tartibda qaytaradi?

    A) String.Reverse()*
    B) String.Length()
    C) String.Substring()
    D) String.ToUpper()

    11. Qaysi C# dasturlash tilidagi sinf, boshqa sinfdan xususiyatlarni olib tashiydi?

    A) Abstrakt sinf
    B) Interfeys*
    C) Kalit so'zlar
    D) Sintaksis

    12. Qaysi C# dasturlash tilidagi "try-catch" operatori, xatoliklarni tekshirish vaqti ishlatiladi?

    A) If-else operatori
    B) Do-while sikli
    C) For-loop sikli
    D) Try-catch operatori*

    13. Qaysi C# dasturlash tilidagi "using" operatori, o'zgaruvchilar va sinflarni to'g'ridan-to'g'ri ishlatish uchun ishlatiladi?

    A) C# da bunday kalit so'z yo'q.
    B) Java
    C) Python
    D) C# *


14. C# dasturlash tili qaysi kompyuter operatsion tizimlarida ishlatiladi?
a) Windows, Linux va Android*
b) MacOS, iOS va Windows
c) Android, MacOS va Linux
d) Windows, MacOS va Linux

15. C# tilida qanday sintaksisda funksiya chaqiriladi?


a) functionname(arguments)
b) function
name(arguments);
c) functionName(arguments)
d) functionName(arguments);*

16. C# tilida qanday operatorlar andishasini yozish uchun ishlatiladi?


a) &&*
b) ||
c) &
d) |

17. C# tilida qanday sintaksisda o'zgaruvchilar aniqlanadi?


a) var variablename = value;*
b) variable
type variablename = value;
c) var variable
name = new variabletype(value);
d) variable
type variablename;

18. C# tilida qanday sintaksisda massivlar aniqlanadi?


a) arraytype[] arrayname = new arraytype[length];*
b) array
type arrayname[length];
c) array(array
type,length);
d) array(arraytype[]);

19. C# tilida qanday sintaksisda for tsikli yoziladi?


a) for (initialization; condition; increment/decrement)*
b) for (condition; initialization; increment/decrement)
c) for (increment/decrement; initialization; condition)
d )for (increment/decrement; condition; initialization)

20. C# tilida qanday sintaksisda switch-operatori yoziladi?


a) switch (expression) { case value1: statement1; break; case value2: statement2;* break; default: defaultstatement; break;}
b) switch (value1) { case expression1: statement1; break; case expression2: statement2; break;}
c) switch (expression) { case default: default
statement; break;}
d) switch (value) { case expression1: statement1;}



Download 21.28 Kb.

Do'stlaringiz bilan baham:




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