Test interview



Download 238,62 Kb.
Pdf ko'rish
bet3/15
Sana21.06.2022
Hajmi238,62 Kb.
#689239
1   2   3   4   5   6   7   8   9   ...   15
Bog'liq
Interwiew

Ref
and 
out
keywords in C# are used to pass arguments within a method or function. 
Both indicate that a parameter is passed by reference. By default parameters are 
passed to a method by value. By using these keywords (ref and out) we can pass a 
parameter by reference. 
In simple terms, the 
in
keyword specifies that you are passing a parameter by 
reference, but also that you will not modify the value inside a method. 
The "
params
" keyword in C# allows a method to accept a variable number of 
arguments. C# params works as an array of objects. By using params keyword in a 
method argument definition, we can pass a number of arguments. Note: There can't 
be anymore parameters after a params. 
18.
Transfer input data by value and by link, difference? 
The main difference between pass by value and pass by reference is that, in a 
pass by value, the parameter value copies to another variable while, in a pass 
by reference, the actual parameter passes to the function. 
19.
What's the recursion? 
A recursive function is a function that calls itself. A function that calls another 
function is normal but when a function calls itself then that is a recursive function. 
20.
What is a namespace? Why are they needed? 
Namespaces are 
used to organize the classes
. It helps to control the scope of 
methods and classes in larger . Net programming projects. ... The biggest advantage 
of using namespace is that the class names which are declared in one namespace will 
not clash with the same class names declared in another namespace. 
21.
What is reflection? 
22.
How do you work with possible errors in the code? 


C# exception is a response to an exceptional circumstance that arises while a program is
running, such as an attempt to divide by zero. 
C# exception handling is performed using the following keywords −

try
A try block ide
ntifies a block of code for which particular exceptions is activated. 
It is followed by one or more catch blocks. 

catch
− A program catches an exception with an exception handler at the place in a 
program where you want to handle the problem. The catch keyword indicates the 
catching of an exception. 

finally
− The finally block is used to execute a given set of statements
whether an 
exception is thrown or not thrown. For example, if you open a file, it must be closed 
whether an exception is raised or not. 
23.
What is a class? How is it different from the object? 
A class in C# is a definition that can be used to create instances of that class. Classes 
are created using the class keyword. C# classes are always reference types. 
A class is a template for creating objects in program whereas the object is an instance 
of a class. A class is a logical entity while object is a physical entity. ... You can declare 
class only once but you can create more than one object using a class. Classes can't 
be manipulated while objects can be manipulated. 
24.
What do all classes in C# inherit from? 
System.Object 
25.
Class and structure differences? 

Download 238,62 Kb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   ...   15




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

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish