You are on page 1of 18

Ti

me20mi
ns

1.Whi
chist hedefaul
tbasecl
assf
oral
lcl
asses?
A.System.object
B.System.Object
C.SystemObject
D.Object
Syst em

2.Howdoyouspeci f
yt hatacl asscannotbeusedasabasecl
ass?
A.markitasast ruct
(structclassMyCl ass{}
)
B.changeitsaccessspecifi
erfrompubl i
ct oanyot
her accessspeci
fi
er(i
nter
nalcl
ass
MyClass{}
)
C.mak ei
tabstract(abstractclassMyCl ass{]
)
D.makeitsealed(sealedcl assMyCl ass{})

3.Thisist
hecor rectsyntaxforover l
oadingthe+operat
orf
orMyCl
assandai
nt
A.publi
cMyCl assoper at
or+(
inta){.
.
.}
B.publi
cstat
icMyCl assoperator+(i
nta){.
..
}
C.publi
cMyClassoper ator+(
MyCl assx,i
nta){
..
.}
D.publi
cstati
cMyCl assoperator+(MyClassx,i
nta)
{.
..
}

4.Thisisthecorrectsymtaxf orwr iti


nganext ensi
onmet
hodf
orast
ring
A.publi
cvoi dDoSomet hi
ng(
stri
nga) {
..
.}
B.publi
cIExtensi
onvoidDoSomet hi
ng(str
inga){..
.}
C.publi
cs tat
icvoidDoSomet hing(stri
nga){ .
.
.}
D.publi
cst ati
cvoidDoSomet hi ng(t
hisstringa){.
..
}

5.WhatdoesAr
ray.
I
ndexOf
()r
etur
nift
hei
tembei
ngsear
chedi
snotf
ound?
A.null
B.error
C.Indexoft
hel
asti
tem+1
D.-1

6.GivetheCTS(CommonTypeSys
tem)t
ypef
orf
loat
A.System.Fl
oat
B.System.
Decimal
C.System.Si
ngle
D.System.Doubl
e

7.charvar
iabl
esoccupy___byt
es
A.1
B.2
C.0
D.4

8.Whatisthecor
rectsyn
taxf
oral
ambdat
hatt
akesnopar
amet
ersandhasmul
ti
plel
i
ne
ofcode
a.()=>{
code}
b. =>code
c.delegat
e( )
{}
d Notpossibletodoso

9.Foraclasstobeseri
ali
zedusi
ngt heBinaryFor matter,
A.Theclassneedstobemar kedwithanat tributeISeriali
zable
B.Theassemblyneedstobemar k
edwi t
hanat t
ribut
eI Serial
izabl
e
C.Theclassneedstobemarkedwi t
hanat t
ributeSer i
alizable
D.Theassemblyneedstobemar kedwithanat tr
ibuteSer ial
i
zable

10.Whichoftheseiscorrectfortheexpli
citi
mpl
ement
ati
onofani
nter
face?
A.publi
cvoidMet hod1
(){
}
B.voidMethod1(
){}
C.publi
cvoidInterf
aceName.Method1
(){
}
D.voidInt
erfaceName.Method1()
{}

11
.Howdoyoudecl ar
eanul
labl
eint?
A.Null
abl
einta;
B.i
nta=null;
C.int
?a; OR Null
abl
e<T>i=null
;
D.int
??a;

12.Whichint
erf
acedoesArrayLi
sti
mpl
ement
?
A.ILi
st
B.ILi
st<T>
C.IDicti
onar
y
D.IDicti
onar
y<TKey,
TValue>

13.Whichofthesei
sthecor rectsynt
axf
oranobj
ecti
ni
ti
ali
zer
?
a.Class1o=newClass1{
a=1 0};
b.Class1o=newClass1(
){a=10};
c.Class1o=newClass1(
20){a=10};
d.Alloftheabove

14.Howdoyoucallafunct
ionusi
ngThr
eadPool
?
a.Start
b.Begin
c.Invoke
d.QueueUser
WorkI
tem

15.Whi
choft hefoll
owingstatement sisfal
se?
A.Astructdoesnotallowinheri
t ance.
B.Astructcannothaveanopar amet erconst
ruct
or
C.Astructisavaluetype
D.Astructisstor
edont hestacki nmemor y.
E.Astructcannothavemet hods.

16.I
nFormsAuthenti
cati
on,thefoll
owingmet
hoddel
etest
heaut
hent
icat
ioncook
ie.
A.FormsAuthent
icati
on.
Cook i
e.Del
ete
B FormsAut
henticat
ion.
Logout
C.For
msAuthent
icati
on.
SignOut
D.For
msAut
henticat
ion.
Cookie.
Remove

17.Togenerat
eapr
oxycl
assf
oraWCFser
viceweuset
hef
oll
owi
ngcommandl
i
neut
il
it
y
a.genprox
b.svcutil
c.wsdl
d.csc

18.Howdoyouover ridethebundl
ingset
tingofweb.confi
g?
a.writecodeinBundleConfig.
csandsett heEnableOpti
mizati
onspropertyofthe
BundleTableclass
b.writecodeinBundleConfi
g.conf
igandsettheEnableOptimi
zati
onspropert
yoft he
BundleTablecl
ass
c.writecodeinBundleConfi
g.csandsettheEnableOpti
mizati
onspropert
yoft he
BundleColl
ecti
onclass
d.writecodeinBundleConfi
g.conf
igandsettheEn abl
eOptimi
zati
onspropert
yoft he
BundleColl
ecti
onclass

19.ToachieveMi nif
icat i
on(
Minif
icati
onremovesallwhi tespaceandr
enamesvar
iabl
est
o
thei
rshort
estpossi blename)i nasp.n
etmvc
a.Setmini
ficat
ion=t rueincompi l
ati
onsecti
oninweb. conf i
g
b.Setmini
ficat
ion=f alseincompilat
ionsect
ioninweb. config
c.Setdebug=t ruei ncompi l
ati
ons ecti
oninweb.confi
g
d.Setdebug=f alseincompi l
ationsectioni
nweb. config

20.Toshowapar tialvi
ewi
nasp.
netmvcwi
thamet
hodt
hatr
etur
nsaht
mlst
ringweuse
a.Html
.Parti
al(
)
b.Html
.
Render Parti
al()
c.Html
.RenderAction()
d.Html
.RenderView( )

==================================================================

.
NetMi
dmodul
etest

1.Oncompi
lat
ionofCShar
psour
cecode,t
heout
putwegeti
s
A.bytecode
B.assembl
y
C.IL
D.MSIL

2.Ji
tcompil
ati
onconvert
s
A.ILtoMSIL
B.MSILtoIL
C.sourcecodetoIL
D.sourcecodetonati
vecode
E.noneoftheabove
3.Garbagecollecti
onhappensat
A.regul
arint
erval s
B.whenanobj ectgoesoutofscope
C.whent heCLRdeci des
D.attheendoft hecodeexecuti
on

4.Appdomainsare
A.Theareainmemor ywhereanappli
cati
onruns
B.Theareainsi
deapr ocesswhereanappli
cati
onr
uns
C.Theareawher etheappli
cat
ionhasi
tsdomain
D.Ontheheap

5.CLSis
A.asetofrulesthatal
l.netcompiler
sfoll
ow
B.asetofrulest
hatareal l
owedf ora.netlanguage
C.asetofr ul
esthatall.
netlanguagesmustf oll
owt obeabl
etobecal
ledf
romot
her
l
anguages
D.usedfordatatypes

6.GivetheCTSt ypef
orf
loat
A.System.Fl
oat
B.System.
Decimal
C.System.Si
ngle
D.System.Doubl
e

7.charvar
iabl
esoccupy___byt
es
A.1
B.2
C.0
D.4

8.Whichoft hefol
lowingstatementsisTrue?
A.Funcisusedt ocallmethodswi thavoidretur
nt ype,Act i
onfornonvoi
dreturntype
methodsandPr edi
cat eformethodswi t
haboolpar amet er
B.Funcisusedt ocallmethodswi t
havoi dret
urnt ype,Act ionfornonvoi
dret
urnt ype
methodsandPr edi
cat eformethodswi t
haboolr etur nvalue
C.Actioni
susedt ocal lmethodswi t
havoidreturnt ype,Funcfornonvoi
dretur
nt ype
methodsandPr edi
cat eformethodswi t
haboolpar amet er
D.Actionisusedtocal lmethodswi thavoidreturnt ype,Funcfornonvoi
dreturntype
methodsandPr edicateformet hodswithaboolr et urnvalue

9.Whenisthestat
icconst
ruct
orcalled?
A.wheneveranobjecti
screated
B.whentheclassi
sloaded
C.whenMainiscal
led
D.wheneverastati
cmethodiscall
ed

10.Whichofthefoll
owi
ngi
str
uef orast
ati
ccl
ass?
A.Itcanonlycontai
nst
ati
cmethods
B.I
tcannotbei nst
ant
iat
ed
C.Itcannotbeusedasabasecl
ass
D.Alloftheabove
E.Noneoft heabove

11
.Whati sthedef
aul
taccessspeci
fi
erf
ormember
sinacl
ass?
A.int
ernal
B.publ
ic
C.pri
vat e
D.protected

12.Whatisthedef
aul
taccessspeci
fi
erf
oracl
assdecl
aredi
nanamespace?
A.inter
nal
B.publi
c
C.pri
vat e
D.protected

13.
classBaseCl ass
{inta;
publicBaseCl ass(inta)
{t hi
s.a=a; }
}
classDer ivedClass:BaseClass
{intb;
publicDer i
vedCl ass(i
ntb)
{t hi
s.b=b; }
}
classPr ogram{
staticvoidMai n()
{Der i
vedCl asso=newDeri
vedCl
ass(
10)
;}
}

Whatisthevalueino.
aafterr
unni
ngt
hiscode?
A.0
B.10
C.null
D.codewillnotcompi
le.

14.Whichofthesest atement
si str
ue?
A.Toover l
oadaf uncti
ondefinedint
hebasecl
assfr
omtheder
ivedcl
assweusethe
overl
oadsk eyword
B.Toover l
oadaf unctiondefi
nedinthebasecl
assf
romt
hederi
vedclassweuset
henew
(ForMethodHiddi
ng) keyword
C.Toover l
oadaf unct i
ondefinedint
hebasecl
assfr
omtheder
ivedcl
assweusethe
overr
idekeywor d
D.Noneoft heabove

1
5.Whi
choft
hesest
atement
sist
rue?
A.Tohideaf unct
iondef
inedi
nthebasecl
assfromt
hederi
vedclassweusethe
overl
oadskeyword
B.Tohideafunctiondefi
nedi
nthebaseclassf
romtheder
ivedclassweusethenew
keyword
C.Tohideafunctiondef
inedi
nthebasecl
assfromt
hederi
vedclassweusetheoverr
ide
keyword
D.Tohideafunctiondef
inedi
nthebasecl
assfromt
hederi
vedclassweusetheseal
ed
keyword
E.Noneoftheabove

16.Whi choft hesest atement


sisfalse?
A.Toover r
ideaf unct i
ondefi
nedinthebasecl
assfr
omtheder
ivedcl
assthebaseclass
met hodmustbeavi rtualmet
hod
B.Toover ri
deaf unctiondef
inedi
nt hebasecl
assf
romt
hederi
vedclassweuset he
over ri
dek eywor d
C.Toover r
ideaf unct i
ondefi
nedinthebasecl
assfr
omtheder
ivedcl
assthemethod
signaturesmustbet hesame
D.Noneoft heabove

17.Whi
choft hesest atementsisfalse?
A.Anabstractcl assneednothaveanyabst ractmethods
B.Anabstractcl asscannotbei nstantiated
C.Aclasst hatcont ainsatleastoneabst r
actmethodneedstobemar k
edasabstr
act
D.Aderivedcl assmusti mplemental labstractmethodsofanabst
ractbasecl
assort
he
deri
vedclassmustbemar kedasabs tract
E.Noneoft heabove

18.Whi
chofthesest
atementsisf al
se?
A.Asealedcl
asscannotbeusedasa basecl ass
B.Asealedcl
asscanbeinstant
iated
C.Asealedcl
asscannothavevi r
tualmet
hods
D.Asealedcl
asscannothaveabst r
actmethods
E.Noneoftheabove

19.Whichoft hesestat
ementsistr
ue?
A.Inlatebi nding,wedeclar
eanobj ectofthebasecl assandall
ocatememoryfora
derivedclass
B.Inlat
ebi nding,wedeclareanobjectofthederivedclassandall
ocatememoryfora
baseclass
C.Inlatebinding,wecannotdeclar
eanobj ectoft hebaseclassandall
ocat
ememoryfora
sub-der
ivedcl ass
D.Inlatebinding,weneednothaveanyvi rtualmethodsinthebaseclass
E.Noneoft heabove

20.Whichofthesei scorr
ectf ortheexpli
citi
mpl
ement
ati
onofani
nter
face?
A.publi
cvoidMet hod1(
){}
B.voidMethod1(
){}
C.publi
cvoidInt
er f
aceName. Method1
(){
}
D.voidInt
erfaceName.Met hod1(
){}
21.Howdoyoudeclar
eanul
labl
eint
?
A.Nul l
abl
einta;
B.inta=null;
C.int?a;
D.int??a;

22.Whichstat ementi
sf alse?
A.outvari
abl esneednothaveani ni
ti
alval
ue
B.outvari
ablesl osetheirini
ti
alvaluewhent heyent erthefunction
C.youmusti niti
ali
seanoutvar i
blebeforecontrolleavesthef uncti
on
D.outvari
abl escannotbeusedi nthefuncti
onbef oretheyar einit
ial
ised
E.Noneoft heabove

23.Whichstatementistrue?
A.refvari
ablesneednothaveani niti
alval
ue
B.refvari
ableslosetheiri
ni
ti
alvaluewhent heyentert
hefunction
C.youmusti ni
ti
ali
sear efvari
blebeforecontroll
eavesthefuncti
on
D.refvari
ablescannotbeusedi nthefunct
ionbeforetheyareinit
ial
i
sed
E.Noneoft heabove

24.
i
nt[,]ar
r=newi nt
[4,
3];
Whatwi l
lbethevaluesfor:
arr
.Rank,ar
r.
GetLength(
1),ar
r.
Get
Upper
Bound(
0)
A.2,3,3
B.2,4,3
C.2,3,4
D.1,3,3
E.1,4,3

25.WhatdoesArray.
IndexOf
()r
etur
nift
hei
tembei
ngsear
chedi
snotf
ound?
A.null
B.error
C.Indexoft
helastit
em+1
D.-1

26.Whichclassi
susedtoiteratethr
uaSor
tedLi
st<TKey,
TVal
ue>?
A.Dict
ionaryEnt
r y
B.Di
cti
onaryEntry<TKey,
TVal ue>
C.KeyValuePair
D.KeyValuePair<TKey,
TValue>

27.WhichinterfacedoesI
Col
lect
ion<T>i
nher
itf
rom?
A.IEnumerable
B.IEnumerable<T>
C.ILi
st<T>
D.IDict
ionary<T>
E.Noneoft heabove
28.I
ngener
ics,whatcons
trai
ntmean
sthatTcanonl
ybeaval
uet
ype?
A.whereT:value
B.wher
eT:val ueType
C.whereT:struct
D.wher
eT:cl ass

29.Whatisthebasecl
assofal
lcl
assesi
fnocl
asshasbeenspeci
fi
edast
hebasecl
ass?
A.Nothi
ng
B.ToStri
ng(
)
C.base
D.Object

30.Whi
choft hefoll
owingstatementsisfalse?
A.Astructdoesnotallowinheri
tance.
B.Astr
uctcannothaveanopar amet erconstr
uct
or
C.Astructi
saval uetype
D.Astr
uctisstoredont hestackinmemor y.
E.Astr
uctcannothavemet hods.

31.Howdoyouspeci fythatathreadshoul
dgetahi
ghert
imesl
i
ce?
a.setthePri
orit
ypr oper
ty
b.settheThreadPri
ori
typropert
y
c.settheTi
meSl i
ceinmill
i
seconds
d.Cannotbedone

32.Howcanyouk
eepwai
ti
ngt
il
lanot
hert
hread(
cal
ledt
)fi
ni
shes?
a.t.
Join
b.t.
WaitOne
c.t.
Wait
d.t.
Sleep

33.Whichofthesei
sthecorrectsynt
axf
oranobj
ecti
ni
ti
ali
zer
?
a.Cl
ass1o=newCl ass1
{a=10};
b.Cl
ass1o=newCl ass1
(){
a=10};
c.Cl
ass1o=newCl ass1
(20){
a=10};
d.Alloftheabove

34.Howdoyoucallafunct
ionusi
ngThr
eadPool
?
a.Star
t
b.Begi
n
c.I
nvoke
d.QueueUser
Wor
kItem

35.Whatist hecor
rectsynt
axf
oral
ambdat
hatt
akesnopar
amet
ersandhasmul
ti
plel
i
ne
ofcode
a.()=>{code}
b. =>code
c.delegate(){
}
d Notpossi
blet
odoso

======================================================================

1.Whi
choft hefol
lowingstatementsisfal
se?
a.TheGar bageCollectorusestheconceptofgenerati
onstofr
eememory.
b.Generati
on0i scheckedf i
rst.
c.I
fanobj ectisnotf r
eed,itispromotedtoGener
ationN+1whereNi
sit
scurr
ent
gener
ation.
d.Thereareamaxi mumof3gener at
ions0,
1,
and2.
e.Noneoft heabove.

2.Whyshoul dweimplementIDisposable?
a.I
tisbetterthannondeterminist
icfi
nali
zation
b.Di
sposeget scal
ledautomat i
call
yf orallobj
ect
sinausi
ngbl
ock
c.Towr i
tecodet ofreeresources
d.Alloftheabove
e.Noneoft heabove

3.Whichofthefol
lowingstatementsi
sf al
se?
a.TheAssemblycontainsMetadataandcode.
b.Theassemblyi
sinMSI Lformat.
c.Theassemblymaycont ai
noneormor emodul
es.
d.Theassemblyhasanent r
ypoint(Main()
).
e.Noneoftheabove.

4.AutomaticProper tyhast hefoll


owingsyntax
a.publ
icpropertypr opertyname{ get{
}set{}
}
b.publ
ici
ntproper tyname{ get{}set{}
}
c.publ
icpropertyname{ get;set ;
}
d.publ
icintpropertyname{ get;set;
}

5.Whichofthefol
lowi
ngstatement
sisfal
se?
a.arefer
encetypecannotbepassedasar ef
b.avaluetypecanbepassedasar ef
c.r
efandoutcanbot hchangethevalueofthevar
iabl
eint
hecal
li
ngcode
d.avaluetypecanbepassedasout

6.Howcanyouk
eepwai
ti
ngt
il
lanot
hert
hread(
cal
ledt
)fi
ni
shes?
a.t.
Join
b.t.
WaitOne
c.t.
Wait
d.t.
Sleep

7.Whi
chstat
ementistr
uef oranExtensi
onmethod?
a.Ext
ensi
onmethodscanbewr i
tteni
nanyclass.
b.Ext
ensi
onmethodscannothaveparameter
s.
c.Ext
ensi
onmet
hodscanbeoverri
dden.
d.Ext
ensi
onmethodsmustbest
ati
c.

8.Whichofthesemet
hodscannotbeover
ri
dden?
a.stati
c
b.overri
de
c.vi
rtual
d.abstr
act

9.Whi choft hefol


lowi
ngt
ypescanbeusedasabasecl
ass?
a.Abst ractClass
b.Struct
c.Seal edclass
d.Enum
e.Noneoft heabove

10.Whichdelegateclassi
susedt ospeci
fyaf uncti
ontobecal
ledaut
omat
ical
lyaf
tert
he
functi
onthatisinvok
edbydel egateobj
ect.
BeginI
nvoke?
a.IAsyncResult
b.AsyncCallback
c.AsyncResult
d.Action
e.Noneoft heabove

11
.Howdoyouspeci fythatat hreadshoul
dgetahi
ghert
imesl
i
ce?
a.setthePri
orit
ypr operty
b.settheThreadPri
ori
typr opert
y
c.settheTi
meSl i
ceinmill
iseconds
d.Cannotbedone

12.Whichofthesecl
assesisusedf
orsynchr
oni
zat
ioni
nThr
eadi
ng?
a.ThreadPool
b.ThreadStar
t
c.Monitor
d.Par
amet eri
zedThr
eadStart

13.
WhatdoesaLI NQquer
yret
urn?
a.var
b.I
Collect
ion<T>
c.I
List
<T>
d.I
Enumerable<T>

14.Whatisthecorrectsynt
axf
oral
ambdat
hatt
akesnopar
amet
ersandhasmul
ti
plel
i
ne
ofcode
a.()=>{code}
b. =>code
c.delegate()
{}
d Notpossibletodoso
15.Howdoyouconver tLi
nqquerytoPLI
NQ?
a.cannotbedone
b.justaddtheletterPbef or
eit
c.UseAsPar al
lel
()fort hecoll
ecti
onobj
ect
d.implementI
Enumer abl
e<Pli
nq>

16.Whichofthefol
lowi
ngi
saVal
uet
ype?
a.Array
b.Int
erface
c.Delegate
d.Class
e.Noneoft heabove

17.Howcanyoucal lafuncti
onusingTask?
a.Createat askobjectandcalltheStartmet
hod
b.UseTask.Run
c.UseTask.Factory.St
artNew
d.Alloftheabove

18.Whichoft hesei scor


rectf
oraf
unct
iont
hatr
etur
nsani
ntandt
akesast
ringasa
parameter?
a.Action<i
nt,st ri
ng>
b.Action<string,i
nt>
c.Func<int
,str i
ng>
d.Func<st r
ing,int>

19.Whatisthecorrectsynt axforoperatorover
loadi
ng?
a.publ
i
cintoper at
or+(Class1o,inti)
{}
b.publ
icstati
cintoperat or
+(Class1o,inti
){
}
c.publ
i
cintoper at
or+(inti)
{}
d.publ
i
cst ati
cintoperator+(inti)
{}

20.Howdoyoucallafunct
ionusi
ngThr
eadPool
?
a.Star
t
b.Begi
n
c.I
nvoke
d.QueueUser
Wor
kItem

1. Whi
chofthef
oll
owingst
at ement
siscorrect
A.C#datatypebool-CTSt ypeBoolean,C#datat
ypef
loat–CTSt
ypeFl
oat
B.C#dat
atypebool-CTSt
ypeBool,C#dat atypefl
oat–CTStypeFl
oat
C.C#dat
atypebool-CTStypeBoolean,C#datatypefl
oat–CTStypeSingl
e
D.C#dat
atypebool-CTSt
ypeBool,C#dat atypefl
oat–CTStypeSi
ngl
e

2.Whi
chofthefol
lowingstatementsisfalse?
A.Assembl
ymet adatacanber eadusingRefl
ect
ion
B.Assembl
yisi
nI Lform
C.Assembl
ycont ai
nsmetadat aandcode
D.Assembl
ycanhaveat t
ribut
es
E.Noneoftheabove

3.Thedef aul
tdat
atypeofanenumi
s
A.Int32
B.Int16
C.Int64
D.String

4.Tomakeanassembl yshared,weneedt
o…
A.Giveitastrongname
B.Si
gnitwithak eypair
C.I
nstal
liti
nt heGAC
D.Alloftheabove
E.Noneoft heabove

5. i
)Stori
ngavaluet ypeintoar eferencetyperesult
sinBoxing
ii
)St
or i
ngaref
er encetypei n
toaval uetyperesul
tsinBoxing
ii
i
)St ori
ngavaluet ypeint
oar eferencetyperesul
tsinUnBoxing
i
v)St
ori
ngar
efer
encet
ypei
ntoaval
uet
yper
esul
tsi
nUnBoxi
ng
A.Allar
ef alse
B.Allar
et rue
C.i
)andii
i)aretrue
D.i
i)
andiv)ar etrue
E.i
)andiv)ar etrue
F.i
)andii
)ar etrue

6.Whi
choft hefoll
owingst at
ement sisfalse?
A.AllGeneri
cCol l
ectionsimplementIEnumerabl
e<T>
B.I
List
<T>i nheri
tsfromI Coll
ection<T>
C.I
Dicti
onaryinheri
tsf r
omI Coll
ection
D.I
Collecti
oninheri
tsf r
omI Enumerable
E.Noneoft heabove
7.Tocal
lamet hodasynchronousl
yusingadel
egat
eobj
ect
,weuse
A.obj
Del.I
nvoke(…)
B.objDel
.Begi
nInvoke(…)
C.obj
Del.EndI
nvoke(…)
D.System.Del
egate.I
nvokeAsync(
…)

8.Whati
st heerrorinthefoll
owingsni
ppet
?
voi
dDoSomet hing(
)
{
tr
y
{
…..
}
catch(
Except i
onex){…}
catch(
NullRefer
enceExcepti
onex){…}
catch(
DivideByZeroExcepti
onex){…}
}

A.Nofinall
ywri
tten
B.Noer r
ors
C.exobjectisre-
decl
aredmult
ipl
et i
mes
D.Baseclassexcepti
onisgi
venfirst

9.Whichproper
tymustbeseti nWCFConf i
gurati
ont oal
lowuser
stoseeExcept
ion
Detai
lsofaWCFMet hods?
A.servi
ceDebugallowExcept i
ons
B.ser
viceDebugincludeExcept ionDet
ail
InFault
s
C.servi
ceDebugincludeCust omExcepti
onDet ai
ls
D.servi
ceMetadatai ncludeCustomExcepti
onDet ai
l
s

1
0.Torai
seaneventdef i
nedbyyou,
A.RaiseEventEventName
B.RaiseEventEventName(…)
C.EventName( …)
D.DelegateClassName(…)

1
1.Whichoft hef
oll
owi
ngi
snotaval
i
dThr
eadst
ateasdef
inedi
ntheThr
eadSt
ate
enum?
A.Abor ted
B.Running
C.St opped
D.Sleep
E.Suspended
F.Backgr
ound

1
2.Whatistr
uef oraback
groundthread?
A.Backgroundthr
eadcannotbecal l
eddirect
ly
B.Backgroundthr
eadgetsalesserprior
ity
C.Backgroundthr
eadisUnmanagedcode
D.Backgroundthr
eadrunsonl
ywhent heCPUi si
dle
E.Alloftheabove
F.Noneoft heabove

1
3.Whatisthedi f
f er
encebetweenoutandr efvari
ables?
A.outvariablescan’tchanget hecall
ingcodevariabl
evaluebutrefcan
B. outvariablescanchanget hecalli
ngcodevar i
ableval
uebutrefcan’t
C.outvar i
ablesmustbei nit
iali
zedbef orethefuncti
onends.Notrequi
redf
orr
ef
variabl
es
D.outvariablescan’tbeusedf orr
eferencetypesbutrefcan.
E.Noneoft heabove

1
4.Whatisfalseforast aticconst
ruct
or?
A.Paramet erl
ess
B.Cantbeover loaded
C.Impli
cit
lypr i
vate
D.Calledwhent heclassi
sloadedint
omemor
y
E.Calledjustonce
F.Noneoft heabove

1
5.Forpr
opertyaccessors,whi choft hefoll
owi
ngisnotal
lowed?
A.Publi
cpr oper
ty,pri
vat eaccessor
B.Protectedinter
nalproper ty,pr
ivat
eaccessor
C.Protectedproperty,internalaccessor
D.Int
ernalpropert
y,pri
vat eaccessor

1
6.Whi
chclasscanbeusedasabaseclass?
A.Abstract
B.Seal
ed
C.Stat
ic
D.i
nter
nalclassdef
inedi
nanot
herassembl
y

1
7.Whi
choft hefol
lowingstat
ement si
sf al
se?
A.Anabst r
actclasshasatleastoneabst ractmethod
B.Allabstr
actmet hodsar
epur evi
rtualfuncti
ons
C.Anabst r
actmet hodcanonlyexistinanabstractcl
ass
D.Thederi
vedclassmusti
mpl
emental
ltheabst
ractmet
hodsorbemar
kedasan
abst
ractcl
ass
E.Noneoftheabove

1
8.i
nt?a=100;
Whati
sfalsef orthi
sstatement?
A.aisanullabletypevariabl
e
B.Compi
lerconver tsthi
st oNul
labl
e<i
nt>a=1
00?
C.Thi
sli
nei saner ror
D.a=nullisvalid

1
9.Whatisfalse?
A.AllArraysinheritf
romtheAr r
ayclass
B.Wecani ter
ateusingaforeachloop
C.Arraysar ear efer
encetype
D.Doubledi mensionarr
ayscanbesor tedusi
ngAr
ray.
Sor
t

20.Whichisnotval i
dLINQ?
i
) f r
omai nbwher ea.i>0sel ecta.j
i
i) b.
Select(a=>a.j
).
Wher e(a=>a.
i>0)
i
ii
)b.Wher e(a=>a.
i>0).Select(
a=>a.j
)
A.Onlyi
B.Onl yii
C.Onlyi i
i
D.iiandiii

21
.I nFormsAuthenti
cati
on,thef oll
owingmet
hoddel
etest
heaut
hent
icat
ioncook
ie.
A.FormsAuthent
icat
ion.Cook i
e.Del
ete
BFormsAuthenti
cati
on.Logout
C.FormsAuthenti
cati
on.SignOut
D.For
msAut hent
icat
ion.Cookie.
Remove

22.Whichoftheseisavail
abl
einaRedi
rectbutnoti
nsubsequentr
equest
s?
a.ViewBag
b.ViewData
c.TempData
d.Sessi
onvariabl
e

23.Howdoyouoverr
idethebundl
ingsett
ingofweb.
confi
g?
a.wri
tecodei
nBundleConfi
g.csandsettheEnabl
eOpti
mizati
onspropert
yofthe
Bundl
eTabl
eclass
b.wri
tecodei
nBundleConf
ig.
confi
gandsettheEnabl
eOptimi
zati
onspropert
yofthe
Bundl
eTabl
ecl
ass
c.wri
tecodeinBundleConf
ig.
csandsettheEnabl
eOpti
mizati
onsproper
tyofthe
Bundl
eColl
ect
ionclass
d.wri
tecodeinBundleConf
ig.
conf
igandsettheEnabl
eOptimi
zati
onsproper
tyof
theBundl
eCol
lect
ionclass

24.ToachieveMini
fi
cati
oninasp. netmvc
a.Setmini
fi
cati
on=t rueincompi l
ati
onsecti
oninweb. confi
g
b.Setmini
fi
cati
on=f alseincompilat
ionsect
ioninweb. conf
ig
c.Setdebug=trueincompi lati
onsecti
oninweb.confi
g
d.Setdebug=f al
seincompi l
ati
onsectioni
nweb. config

25.Toshowaparti
alviewi nasp.
netmvcwi
thamet
hodt
hatr
etur
nsaht
mlst
ringweuse
a.Ht
ml.
Parti
al(
)
b.Ht
ml.
RenderParti
al()
c.Ht
ml.
RenderAction()
d.Ht
ml.
RenderView()

26. Toall
owamethodtobecall
edfromaWebservi
ce,dot hefol
lowi
ng 
A. Keepi
tasapubl
icmethod
B. Keepi
tasapubl
icst
aticmet
hod
C. Keepi
tasapubl
icmethodwithaWebMet
hodat t
ribut
e
D. Keepi
tasapubl
icst
aticmet
hodwithaWebMethodattri
but
e
 
27. Whichclassdowei
nher
itf
romwhi
l
eint
eract
ingwi
tht
heEnt
ityFr
amewor

A. Enti
ty
B. Framework
C. DbContext
D. DataContext

28. Whi
choft hefoll
owingstatement
sist r
ue?
A. Acommandcanbeexecut edfromacl osedconnect
ion
B. ADatareadercannotcontainmorethanonesetofdata
C. ADataSetcanonl yhaveonedat aTable
D. ADataAdapterneednothaveanopenconnect iontocal
lit
sfi
llmet
hod
 
29. WhatdoestheSoapFor matterser
iali
ze
A. methodsofaclass
B. publ
icvari
abl
esandpr opert
iesofacl ass
C. publ
icandpri
vatevariablesofacl ass
D. publ
icandpri
vateproperti
esofacl ass
 
30. ToaddaPr i
marykeyconst
raintontheDataTable
A. passaDat
aColumnarr
ayobjectt ot
hePrimaryKeypr opert
yf ortheDat aSet 
B. passaDat
aColumnobjectt
ot hePri
maryKeypr oper
tyf ortheDat aSet
 
C. passaDataCol
umnarrayobjecttothePri
mar yKeypr oper
tyf ortheDat aTable 
D. passaDat aColumnobj ectt othePr i
mar yKeypr opertyf ortheDat atable
 
31. Toseer ecor dsf romaDat aTablei nasor t
edmanneruse…
A. Sor tproper t
yofDat aTabl e
B. Sor tpr oper tyofDat aView
C. Sor tproper t
yofDat aSet
D. Sor tproper t
yofDat aCol umn
  
32.Howdoyour unamet hodinanewt hread
a.Creat eat hreadobj ectandpassamet hodasapar amet ert otheconst ructor
b.callthr ead.Run( )
c.callt hread.St art()
d.callthr ead.Begi nI
nvok e()
 
33.Whi choft hesepr ovidesar eadonly,f orwar donlywayofr eadingrecords
a.Dat aTabl e
b.Dat aView
c.Dat aSet
d.SqlDat aReader
 
34.Whi choft hesedoesnotr equir
et ypecast ingwhi l
eaccessi ngi t
a.ViewBag
b.ViewDat a
c.TempDat a
d.Sessionvar iable
 
35.Whi chmet hodoft heDat aSetr et
urnst her ecordswhoseRowSt ateisnotUnchanged
a.Accept Changes
b.Reject Changes
c.Get Changes
d.Updat e
 
 36.I naWCFser vicet hefollowingdescr ibest heWCFser viceindet ail
a.ProxyCl ass
b.WSDL
c.Mexendpoi nt
d.Discof il
e
 
37.Whatat tri
but eisusedt omar kamet hodi naSer viceContract ?
a.ServiceCont r
act
b.Dat aCont r
act
c.Dat aMember
d.Oper ationCont act

38.Dupl
exWCFser
viceusest
hef
oll
owi
ngbi
ndi
ng
a.WsDupl exHt tpBinding
b.WsDual Ht tpBi nding
c.WebHt tpBi nding
d.BasicHtt pBinding
 
39.  Toaddanewr owt oaDat atable…
a.
  cal ltheAddmet hodoftheRowscol lecti
onoft heDataSet
b.
  cal ltheAddmet hodoftheDat aTabl
e
c.  calltheAddmet hodoft heRowscol lecti
onoft heDataTabl
e
d.
  cal ltheAddmet hodoftheDat aSet
 
40.Rest f
ulWCFser viceusesthefoll
owingbinding
a.WsDupl exHt tpBinding
b.WsDual Ht tpBinding
c.WebHt t pBinding
d.BasicHtt pBinding

You might also like