Dastur ishlash natijasida ekranda dastlab qanday yozuv chiqadi?
Download 21.28 Kb.
|
20 ta C# testlar Kariboyev Davron
Dastur ishlash natijasida ekranda dastlab qanday yozuv chiqadi? A hello world B hello * C wellcome D home 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 Read metodi. Birinchi kiritiluvchi kod qaysi? A int i = console. Read B console C write (I) D yo'q C# dasturlash tilida nechta literal mavjud? A 5 ta * B 2 ta C 4 ta D 6 ta C# da to'g'ri ko'rsatilgan A !?= Tenglik B =+- teng C =+- tenglik* D=== teng C# dasturlash tili qaysi markaziy operatorga ega? A) If
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.*
8. C# da qaysi loops (sikl, do-while, for-loop, foreach-loop), bitta yoki undan ko'p shart bilan ishlaydi? A) Sikl
9. Qaysi C# dasturlash tilidagi funksiya, sonlarni yig'indisini hisoblaydi? A) Math.Floor()
10. Qaysi C# dasturlash tilidagi funksiya, satrni teskari tartibda qaytaradi? A) String.Reverse()*
11. Qaysi C# dasturlash tilidagi sinf, boshqa sinfdan xususiyatlarni olib tashiydi? A) Abstrakt sinf
12. Qaysi C# dasturlash tilidagi "try-catch" operatori, xatoliklarni tekshirish vaqti ishlatiladi? A) If-else 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.
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) functionname(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) variabletype variablename = value; c) var variablename = new variabletype(value); d) variabletype variablename; 18. C# tilida qanday sintaksisda massivlar aniqlanadi? a) arraytype[] arrayname = new arraytype[length];* b) arraytype arrayname[length]; c) array(arraytype,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: defaultstatement; break;} d) switch (value) { case expression1: statement1;} Download 21.28 Kb. Do'stlaringiz bilan baham: |
ma'muriyatiga murojaat qiling