SlideShare uma empresa Scribd logo
1 de 103
Baixar para ler offline
hirist 
.com 
www.hirist.com 
.NET 
TOP 100 
INTERVIEW QUESTIONS & ANSWERS
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatis.NET? 
2 
QUESTION 
.NETisessentiallyaframeworkforsoftwaredevelopment.Itissimilarinnaturetoanyothersoftwaredevelopmentframework(J2EEetc)inthatitprovidesasetofruntimecontainers/capabilities,andarichsetofpre-builtfunctionalityintheformofclasslibrariesandAPIs 
The.NETFrameworkisanenvironmentforbuilding,deploying,andrunningWebServicesandotherapplications.Itconsistsofthreemainparts:theCommonLanguageRuntime,theFrameworkclasses,andASP.NET. 
ANSWER 
QUESTION 1
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Howmanylanguages.NETissupportingnow? 
3 
QUESTION 
When.NETwasintroduceditcamewithseverallanguages.VB.NET,C#,COBOLandPerl,etc.ThesiteDotNetLanguages.Netsays44languagesaresupported. 
ANSWER 
QUESTION 2
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Howis.NETabletosupportmultiplelanguages? 
4 
QUESTION 
AlanguageshouldcomplywiththeCommonLanguageRuntimestandardtobecomea.NETlanguage.In.NET, codeiscompiledtoMicrosoftIntermediateLanguage(MSILforshort).ThisiscalledasManagedCode.ThisManagedcodeisrunin.NETenvironment.SoaftercompilationtothisILthelanguageisnotabarrier.Acodecancalloruseafunctionwritteninanotherlanguage. 
ANSWER 
QUESTION 3
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
HowdoyouvalidatethecontrolsinanASP.NETpage? 
5 
QUESTION 
Usingspecialvalidationcontrolsthataremeantforthis.WehaveRangeValidator,EmailValidator. 
ANSWER 
QUESTION 4
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Canthevalidationbedoneintheserverside?OrthiscanbedoneonlyintheClientside? 
6 
QUESTION 
Clientsideisdonebydefault.Serversidevalidationisalsopossible.Wecanswitchofftheclientsideandserversidecanbedone. 
ANSWER 
QUESTION 5
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatareAttributes? 
7 
QUESTION 
Attributesaredeclarativetagsincodethatinsertadditionalmetadataintoanassembly.Thereexisttwotypesofattributesinthe.NETFramework:PredefinedattributessuchasAssemblyVersion,whichalreadyexistandareaccessedthroughtheRuntimeClasses;andcustomattributes,whichyouwriteyourselfbyextendingtheSystem.Attributeclass. 
ANSWER 
QUESTION 6
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisWeb.config? 
8 
QUESTION 
InclassicASPallWebsiterelatedinformationwasstoredinthemetadataofIIS.ThishadthedisadvantagethatremoteWebdeveloperscouldn'teasilymakeWeb-siteconfigurationchanges.Forexample,ifyouwanttoaddacustom404errorpage,asettingneedstobemadethroughtheIISadmintool,andyou'reWebhostwilllikelychargeyouaflatfeetodothisforyou.WithASP.NET,however,thesesettingsaremovedintoanXML-formattedtextfile(Web.config)thatresidesintheWebsite'srootdirectory.ThroughWeb.configyoucanspecifysettingslikecustom404errorpages,authenticationandauthorizationsettingsfortheWebsitempilationoptionsfortheASP.NETWebpages,iftracingshouldbeenabled,etc. 
TheWeb.configfileisanXML-formattedfile.Attherootlevelisthetag.Insidethistagyoucanaddanumberofothertags,themostcommonandusefulonebeingthesystem.webtag,whereyouwillspecifymostoftheWebsiteconfigurationparameters.However,tospecifyapplication-widesettingsyouusethetag. 
Forexample,ifwewantedtoaddadatabaseconnectionstringparameterwecouldhaveaWeb.configfilelikeso. 
ANSWER 
QUESTION 7
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
ExplainwhatrelationshipisbetweenaProcess,ApplicationDomain,andApplication? 
9 
QUESTION 
EachprocessisallocateditsownblockofavailableRAMspace,noprocesscanaccessanotherprocess‟codeordata.Iftheprocesscrashes,itdiesalonewithouttakingtheentireOSorabunchofotherapplicationsdown. 
Aprocessisaninstanceofarunningapplication.Anapplicationisanexecutableontheharddriveornetwork. Therecanbenumerousprocesseslaunchedofthesameapplication(5copiesofWordrunning),but1processcanrunjust1application. 
ANSWER 
QUESTION 8
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatisaformatter? 
10 
QUESTION 
Aformatterisanobjectthatisresponsibleforencodingandserializingdataintomessagesononeend,anddeserializinganddecodingmessagesintodataontheotherend. 
ANSWER 
QUESTION 9
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisDelegation? 
11 
QUESTION 
Adelegateactslikeastronglytypefunctionpointer.Delegatescaninvokethemethodsthattheyreferencewithoutmakingexplicitcallstothosemethods. 
Delegateisanentitythatisentrustedwiththetaskofrepresentation,assignorpassingoninformation.Incodesense,itmeansaDelegateisentrustedwithaMethodtoreportinformationbacktoitwhenacertaintask(whichtheMethodexpects)isaccomplishedoutsidetheMethod'sclass. 
ANSWER 
QUESTION 10
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Writeaquerytofindthetotalnumberofrowsinatable? 
12 
QUESTION 
Selectcount(*)fromt_employee; 
ANSWER 
QUESTION 11
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Writeaquerytoeliminateduplicaterecordsintheresultsofatable? 
13 
QUESTION 
Selectdistinct*fromt_employee; 
ANSWER 
QUESTION 12
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Writeaquerytoinsertarecordintoatable? 
14 
QUESTION 
Insertintot_employeevalues('empid35','Barack','Obama'); 
ANSWER 
QUESTION 13
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Writeaquerytodeletearecordfromatable? 
15 
QUESTION 
deletefromt_employeewhereid='empid35'; 
ANSWER 
QUESTION 14
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Writeaquerytodisplayarowusingindex? 
16 
QUESTION 
Forthis,theindexedcolumnofthetableneedstobesetasaparameterinthe 
whereclause 
select*fromt_employeewhereid='43'; 
ANSWER 
QUESTION 15
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Writeaquerytofetchthehighestrecordinatable,basedonarecord,saysalaryfieldinthet_salarytable? 
17 
QUESTION 
Selectmax(salary)fromt_salary; 
ANSWER 
QUESTION 16
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Writeaquerytofetchthefirst3charactersofthefielddesignationfromthetablet_employee? 
18 
QUESTION 
Selectsubstr(designation,1,3)fromt_employee;--Noteherethatthesubstrfunctionhasbeenused. 
ANSWER 
QUESTION 17
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Writeaquerytoconcatenatetwofields,sayDesignationandDepartmentbelongingtoatablet_employee? 
19 
QUESTION 
SelectDesignation+„„+Departmentfromt_employee; 
ANSWER 
QUESTION 18
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisthedifferencebetweenUNIONandUNIONALLinSQL? 
20 
QUESTION 
UNIONisanSQLkeywordusedtomergetheresultsoftwoormoretablesusingaSelectstatement,containingthesamefields,withremovedduplicatevalues.UNIONALLdoesthesame,howeveritpersistsduplicatevalues. 
ANSWER 
QUESTION 19
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Ifthereare4SQLSelectstatementsjoinedusingUnionandUnionAll,howmanytimesshouldaUnionbeusedtoremoveduplicaterows? 
21 
QUESTION 
Onetime. 
ANSWER 
QUESTION 20
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
ExplainthedifferencesbetweenServer-sideandClient-sidecode? 
22 
QUESTION 
Serversidecodewillexecuteatserver(wherethewebsiteishosted)end,&allthebusinesslogicwillexecuteatserverendwhereasclientsidecodewillexecuteatclientside(usuallywritteninjavascript,vbscript,jscript)atbrowserend. 
ANSWER 
QUESTION 21
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whattypeofcode(serverorclient)isfoundinaCode-Behindclass? 
23 
QUESTION 
Serversidecode. 
ANSWER 
QUESTION 22
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Howtomakesurethatvalueisenteredinanasp:Textboxcontrol? 
24 
QUESTION 
UseaRequiredFieldValidatorcontrol. 
ANSWER 
QUESTION 23
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whichpropertyofavalidationcontrolisusedtoassociateitwithaservercontrolonthatpage? 
25 
QUESTION 
ControlToValidateproperty. 
ANSWER 
QUESTION 24
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
HowwouldyouimplementinheritanceusingVB.NET&C#? 
26 
QUESTION 
C#DerivedClass:Baseclass 
VB.NEt:DerivedClassInheritsBaseclass 
ANSWER 
QUESTION 25
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhichmethodisinvokedontheDataAdaptercontroltoloadthegenerateddatasetwithdata? 
27 
QUESTION 
Fill()method. 
ANSWER 
QUESTION 26
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Howmanywayscanwemaintainthestateofapage? 
28 
QUESTION 
1.ClientSide-Querystring,hiddenvariables,viewstate,cookies 
2.Serverside-application,cache,context,session,database 
ANSWER 
QUESTION 27
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatistheuseofamulticastdelegate? 
29 
QUESTION 
Amulticastdelegatemaybeusedtocallmorethanonemethod. 
ANSWER 
QUESTION 28
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatistheuseofSingletonpattern? 
30 
QUESTION 
ASingletonpattern.isusedtomakesurethatonlyoneinstanceofaclassexists. 
ANSWER 
QUESTION 29
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatisencapsulation? 
31 
QUESTION 
EncapsulationistheOOPsconceptofbindingtheattributesandbehaviorsinaclass,hidingtheimplementationoftheclassandexposingthefunctionality. 
ANSWER 
QUESTION 30
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatisadatatype?Howmanytypesofdatatypesaretherein.NET? 
32 
QUESTION 
Adatatypeisadatastorageformatthatcancontainaspecifictypeorrangeofvalues.Wheneveryoudeclarevariables, eachvariablemustbeassignedaspecificdatatype.Somecommondatatypesincludeintegers,floatingpoint, characters,andstrings.Thefollowingarethetwotypesofdatatypesavailablein.NET: 
Valuetype-Referstothedatatypethatcontainsthedata.Inotherwords,theexactvalueorthedataisdirectlystoredinthisdatatype.Itmeansthatwhenyouassignavaluetypevariabletoanothervariable,thenitcopiesthevalueratherthancopyingthereferenceofthatvariable.Whenyoucreateavaluetypevariable,asinglespaceinmemoryisallocatedtostorethevalue(stackmemory).Primitivedatatypes,suchasint,float,andcharareexamplesofvaluetypevariables. 
Referencetype-Referstoadatatypethatcanaccessdatabyreference.Referenceisavalueoranaddressthataccessesaparticulardatabyaddress,whichisstoredelsewhereinmemory(heapmemory).Youcansaythatreferenceisthephysicaladdressofdata,wherethedataisstoredinmemoryorinthestoragedevice.Somebuilt-inreferencetypesvariablesin.Netarestring,array,andobject. 
ANSWER 
QUESTION 31
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
IsStringaReferenceTypeorValueTypein.NET? 
33 
QUESTION 
StringisaReferenceTypeobject. 
ANSWER 
QUESTION 32
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Canasingle.NETDLLcontainmultipleclasses? 
34 
QUESTION 
Yes,asingle.NETDLLmaycontainanynumberofclasseswithinit. 
ANSWER 
QUESTION 33
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisaCompositeControlin.NET? 
35 
QUESTION 
CompositeControlisanabstractclassin.NETthatisinheritedbythosewebcontrolsthatcontainchildcontrolswithinthem. 
ANSWER 
QUESTION 34
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatarethenewfeaturesin.NET2.0? 
36 
QUESTION 
Plentyofnewcontrols,Generics,anonymousmethods,partialclasses,iterators,propertyvisibility(separatevisibilityforgetandset)andstaticclasses. 
ANSWER 
QUESTION 35
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatarePartialClassesinAsp.Net2.0? 
37 
QUESTION 
In.NET2.0,aclassdefinitionmaybesplitintomultiplephysicalfilesbutpartialclassesdonotmakeanydifferencetothecompilerasduringcompiletime,thecompilergroupsallthepartialclassesandtreatsthemasasingleclass. 
ANSWER 
QUESTION 36
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisaIL? 
38 
QUESTION 
(IL)IntermediateLanguageisalsoknownasMSIL(MicrosoftIntermediateLanguage)orCIL(CommonIntermediateLanguage).All.NETsourcecodeiscompiledtoIL.ThisIListhenconvertedtomachinecodeatthepointwherethesoftwareisinstalled,oratrun-timebyaJust-In-Time(JIT)compiler. 
ANSWER 
QUESTION 37
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisaCTS? 
39 
QUESTION 
CTSdefinesallofthebasictypesthatcanbeusedinthe.NETFrameworkandtheoperationsperformedonthosetype. 
Allthistimewehavebeentalkingaboutlanguageinteroperability,and.NETClassFramework.Noneofthisispossiblewithoutallthelanguagesharingthesamedatatypes.WhatthismeansisthatanintshouldmeanthesameinVB,VC++,C#andallother.NETcompliantlanguages.ThisisachievedthroughintroductionofCommonTypeSystem(CTS). 
ANSWER 
QUESTION 38
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatis"CommonLanguageSpecification"(CLS)? 
40 
QUESTION 
CLSisthecollectionoftherulesandconstraintsthateverylanguage(thatseekstoachieve.NETcompatibility) mustfollow.ItisasubsectionofCTSanditspecifieshowitsharesandextendsoneanotherlibraries. 
ANSWER 
QUESTION 39
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatis"CommonLanguageRuntime"(CLR)? 
41 
QUESTION 
CLRis.NETequivalentofJavaVirtualMachine(JVM).ItistheruntimethatconvertsaMSILcodeintothehostmachinelanguagecode,whichisthenexecutedappropriately.TheCLRistheexecutionenginefor.NETFrameworkapplications.Itprovidesanumberofservices,including: 
ANSWER 
QUESTION 40 
-Codemanagement(loadingandexecution) 
-Applicationmemoryisolation 
-Verificationoftypesafety 
-ConversionofILtonativecode. 
-Accesstometadata(enhancedtypeinformation) 
-Managingmemoryformanagedobjects 
-Enforcementofcodeaccesssecurity 
-Exceptionhandling,includingcross-languageexceptions 
-Interoperationbetweenmanagedcode,COMobjects,andpre- existingDLL's(unmanagedcodeanddata) 
-Automationofobjectlayout 
-Supportfordeveloperservices(profiling,debugging,andsoon).
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisaManagedCode? 
42 
QUESTION 
ManagedcoderunsinsidetheenvironmentofCLRi.e..NETruntime.InshortallILaremanagedcode.ButifyouareusingsomethirdpartysoftwareexampleVB6orVC++componenttheyareunmanagedcodeas.NETruntime(CLR)doesnothavecontroloverthesourcecodeexecutionofthelanguage. 
ANSWER 
QUESTION 41
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatisanassembly? 
43 
QUESTION 
Anassemblyisacollectionofoneormore.exeordll‟s.Anassemblyisthefundamentalunitforapplicationdevelopmentanddeploymentinthe.NETFramework.Anassemblycontainsacollectionoftypesandresourcesthatarebuilttoworktogetherandformalogicalunitoffunctionality.AnassemblyprovidestheCLRwiththeinformationitneedstobeawareoftypeimplementations. 
ANSWER 
QUESTION 42
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatarethedifferenttypesofAssembly? 
44 
QUESTION 
TherearetwotypesofassemblyPrivateandPublicassembly.Aprivateassemblyisnormallyusedbyasingleapplication,andisstoredintheapplication'sdirectory,orasub-directorybeneath.Asharedassemblyisnormallystoredintheglobalassemblycache,whichisarepositoryofassembliesmaintainedbythe.NETruntime.Sharedassembliesareusuallylibrariesofcodewhichmanyapplicationswillfinduseful,e.g.CrystalreportclasseswhichwillbeusedbyallapplicationforReports. 
ANSWER 
QUESTION 43
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisDifferencebetweenNameSpaceandAssembly? 
45 
QUESTION 
Followingarethedifferencesbetweennamespaceandassembly: 
Assemblyisphysicalgroupingoflogicalunits.Namespacelogicallygroupsclasses. 
Namespacecanspanmultipleassembly. 
ANSWER 
QUESTION 44
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisManifest? 
46 
QUESTION 
AssemblymetadataisstoredinManifest.Manifestcontainsallthemetadataneededtodothefollowingthings: 
Versionofassembly 
Securityidentity 
Scopeoftheassembly 
Resolvereferencestoresourcesandclasses. 
TheassemblymanifestcanbestoredineitheraPEfile(an.exeor.dll)withMicrosoftintermediatelanguage(MSIL)codeorinastand-alonePEfilethatcontainsonlyassemblymanifestinformation. 
ANSWER 
QUESTION 45
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatisgarbagecollection? 
47QUESTION 
GarbagecollectionisaCLRfeaturewhichautomaticallymanagesmemory.Programmersforgettoreleasetheobjectswhilecoding.....Laziness(RememberinVB6whereoneofthegoodpracticesistosetobjecttonothing). CLRautomaticallyreleasesobjectswhentheyarenolongerinuseandrefernced.CLRrunsonnon-deterministictoseetheunusedobjectsandcleansthem.Onesideeffectofthisnon-deterministicfeatureisthatwecannotassumeanobjectisdestroyedwhenitgoesoutofthescopeofafunction.Therefore,weshouldnotputcodeintoaclassdestructortoreleaseresources. 
ANSWER 
QUESTION 46
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisconceptofBoxingandUnboxing? 
48QUESTION 
Boxingisusedtoconvertvaluetypestoobject. 
E.g.intx=1; 
objectobj=x; 
Unboxingisusedtoconverttheobjectbacktothevaluetype. 
E.g.inty=(int)obj; 
Boxing/unboxingisquietanexpensiveoperation. 
ANSWER 
QUESTION 47
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
DefineOverriding? 
49 
QUESTION 
Overridingisaconceptwhereamethodinaderivedclassusesthesamename,returntype,andargumentsasamethodinitsbaseclass.Inotherwords,ifthederivedclasscontainsitsownimplementationofthemethodratherthanusingthemethodinthebaseclass,theprocessiscalledoverriding. 
ANSWER 
QUESTION 48
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Canyouusemultipleinheritancein.NET? 
50 
QUESTION 
.NETsupportsonlysingleinheritance.Howeverthepurposeisaccomplishedusingmultipleinterfaces. 
ANSWER 
QUESTION 49
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatareeventsanddelegates? 
51 
QUESTION 
Aneventisamessagesentbyacontroltonotifytheoccurrenceofanaction.Howeveritisnotknownwhichobjectreceivestheevent.Forthisreason,.NETprovidesaspecialtypecalledDelegatewhichactsasanintermediarybetweenthesenderobjectandreceiverobject. 
ANSWER 
QUESTION 51
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatisaconnectionpool? 
52 
QUESTION 
Aconnectionpoolisa„collectionofconnections‟whicharesharedbetweentheclientsrequestingone.Oncetheconnectionisclosed,itreturnsbacktothepool.Thisallowstheconnectionstobereused. 
ANSWER 
QUESTION 51
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatiscodereview? 
53 
QUESTION 
Theprocessofexaminingthesourcecodegenerallythroughapeer,toverifyitagainstbestpractices. 
ANSWER 
QUESTION 52
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisBLOB? 
54 
QUESTION 
ABLOB(binarylargeobject)isalargeitemsuchasanimageoranexerepresentedinbinaryform. 
ANSWER 
QUESTION 53
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisaCOMCallableWrapper(CCW)? 
55 
QUESTION 
CCWisawrappercreatedbythecommonlanguageruntime(CLR)thatenablesCOMcomponentstoaccess.NETobjects. 
ANSWER 
QUESTION 54
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisaRuntimeCallableWrapper(RCW)? 
56 
QUESTION 
RCWisawrappercreatedbythecommonlanguageruntime(CLR)toenable.NETcomponentstocallCOMcomponents. 
ANSWER 
QUESTION 55
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisMSIL? 
57 
QUESTION 
Whenthecodeiscompiled,thecompilertranslatesyourcodeintoMicrosoftintermediatelanguage(MSIL).ThecommonlanguageruntimeincludesaJITcompilerforconvertingthisMSILthentonativecode. 
MSILcontainsmetadatathatisthekeytocrosslanguageinteroperability.Sincethismetadataisstandardizedacrossall.NETlanguages,aprogramwritteninonelanguagecanunderstandthemetadataandexecutecode, writteninadifferentlanguage.MSILincludesinstructionsforloading,storing,initializing,andcallingmethodsonobjects,aswellasinstructionsforarithmeticandlogicaloperations,controlflow,directmemoryaccess,exceptionhandling,andotheroperations. 
ANSWER 
QUESTION 56
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisJIT? 
58 
QUESTION 
JITisacompilerthatconvertsMSILtonativecode.ThenativecodeconsistsofhardwarespecificinstructionsthatcanbeexecutedbytheCPU. 
RatherthanconvertingtheentireMSIL(inaportableexecutable[PE]file)tonativecode,theJITconvertstheMSILasitisneededduringexecution.Thisconvertednativecodeisstoredsothatitisaccessibleforsubsequentcalls. 
ANSWER 
QUESTION 57
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisGAC?WhatarethestepstocreateanassemblyandaddittotheGAC? 
59 
QUESTION 
Theglobalassemblycache(GAC)isamachine-widecodecachethatstoresassembliesspecificallydesignatedtobesharedbyseveralapplicationsonthecomputer.Youshouldshareassembliesbyinstallingthemintotheglobalassemblycacheonlywhenyouneedto. 
Steps 
-Createastrongnameusingsn.exetooleg:sn-kmykey.snk 
-inAssemblyInfo.cs,addthestrongnameeg:[assembly:AssemblyKeyFile("mykey.snk")] 
-recompileproject,andtheninstallittoGACintwoways: 
•drag&dropittoassemblyfolder(C:WINDOWSassemblyORC:WINNTassembly)(shfusion.dlltool) 
•gacutil-iabc.dll 
ANSWER 
QUESTION 58
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatisthecaspol.exetoolusedfor? 
60 
QUESTION 
Thecaspoltoolgrantsandmodifiespermissionstocodegroupsattheuserpolicy,machinepolicy,andenterprisepolicylevels. 
ANSWER 
QUESTION 59
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisIlasm.exeusedfor? 
61 
QUESTION 
Ilasm.exeisatoolthatgeneratesPEfilesfromMSILcode.YoucanruntheresultingexecutabletodeterminewhethertheMSILcodeperformsasexpected. 
ANSWER 
QUESTION 60
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisIldasm.exeusedfor? 
62 
QUESTION 
Ildasm.exeisatoolthattakesaPEfilecontainingtheMSILcodeasaparameterandcreatesatextfilethatcontainsmanagedcode. 
ANSWER 
QUESTION 61
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatistheResGen.exetoolusedfor? 
63 
QUESTION 
ResGen.exeisatoolthatisusedtoconvertresourcefilesintheformof.txtor.resxfilestocommonlanguageruntimebinary.resourcesfilesthatcanbecompiledintosatelliteassemblies. 
ANSWER 
QUESTION 62
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatisadigitalsignature? 
64 
QUESTION 
Adigitalsignatureisanelectronicsignatureusedtoverify/guaranteetheidentityoftheindividualwhoissendingthemessage. 
ANSWER 
QUESTION 63
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
NametheclassesthatareintroducedintheSystem.Numericsnamespace. 
65 
QUESTION 
ThefollowingtwonewclassesareintroducedintheSystem.Numericsnamespace: 
•BigInteger-Referstoanon-primitiveintegraltype,whichisusedtoholdavalueofanysize.Ithasnolowerandupperlimit,makingitpossibleforyoutoperformarithmeticcalculationswithverylargenumbers,evenwiththenumberswhichcannotholdbydoubleorlong. 
•Complex-Representscomplexnumbersandenablesdifferentarithmeticoperationswithcomplexnumbers.Anumberrepresentedintheforma+bi,whereaistherealpart,andbistheimaginarypart,isacomplexnumber. 
ANSWER 
QUESTION 64
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Explainmemory-mappedfiles. 
66 
QUESTION 
Memory-mappedfiles(MMFs)allowyoumapthecontentofafiletothelogicaladdressofanapplication.ThesefilesenablethemultipleprocessesrunningonthesamemachinetosharedatawitheachOther.TheMemoryMappedFile.CreateFromFile()methodisusedtoobtainaMemoryMappedFileobjectthatrepresentsapersistedmemory-mappedfilefromafileondisk. 
ThesefilesareincludedintheSystem.IO.MemoryMappedFilesnamespace.Thisnamespacecontainsfourclassesandthreeenumerationstohelpyouaccessandsecureyourfilemappings 
ANSWER 
QUESTION 65
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whichmethoddoyouusetoenforcegarbagecollectionin.NET? 
67 
QUESTION 
TheSystem.GC.Collect()method. 
ANSWER 
QUESTION 66
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
StatethedifferencesbetweentheDispose()andFinalize(). 
68 
QUESTION 
CLRusestheDisposeandFinalizemethodstoperformgarbagecollectionofrun-timeobjectsof.NETapplications. 
TheFinalizemethodiscalledautomaticallybytheruntime.CLRhasagarbagecollector(GC),whichperiodicallychecksforobjectsinheapthatarenolongerreferencedbyanyobjectorprogram.ItcallstheFinalizemethodtofreethememoryusedbysuchobjects.TheDisposemethodiscalledbytheprogrammer.Disposeisanothermethodtoreleasethememoryusedbyanobject.TheDisposemethodneedstobeexplicitlycalledincodetodereferenceanobjectfromtheheap.TheDisposemethodcanbeinvokedonlybytheclassesthatimplementtheIDisposableinterface. 
ANSWER 
QUESTION 67
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whataretuples? 
69 
QUESTION 
Tupleisafixed-sizecollectionthatcanhaveelementsofeithersameordifferentdatatypes.Similartoarrays,ausermusthavetospecifythesizeofatupleatthetimeofdeclaration.Tuplesareallowedtoholdupfrom1to8elementsandiftherearemorethan8elements,thenthe8thelementcanbedefinedasanothertuple.Tuplescanbespecifiedasparameterorreturntypeofamethod. 
ANSWER 
QUESTION 68
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whichistherootnamespaceforfundamentaltypesin.NETFramework? 
70 
QUESTION 
System.Objectistherootnamespaceforfundamentaltypesin.NETFramework. 
ANSWER 
QUESTION 69
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Definevariableandconstant. 
71 
QUESTION 
Avariablecanbedefinedasameaningfulnamethatisgiventoadatastoragelocationinthecomputermemorythatcontainsavalue.Everyvariableassociatedwithadatatypedetermineswhattypeofvaluecanbestoredinthevariable,forexampleaninteger,suchas100,adecimal,suchas30.05,oracharacter,suchas'A'. 
Youcandeclarevariablesbyusingthefollowingsyntax: 
<Data_type><variable_name>; 
Aconstantissimilartoavariableexceptthatthevalue,whichyouassigntoaconstant,cannotbechanged,asincaseofavariable.Constantsmustbeinitializedatthesametimetheyaredeclared.Youcandeclareconstantsbyusingthefollowingsyntax: 
constintinterestRate=10; 
ANSWER 
QUESTION 70
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whichstatementisusedtoreplacemultipleif-elsestatementsincode? 
72 
QUESTION 
InVisualBasic,theSelect-CasestatementisusedtoreplacemultipleIf-ElsestatementsandinC#,theswitch- casestatementisusedtoreplacemultipleif-elsestatements. 
ANSWER 
QUESTION 71
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatisanidentifier? 
73 
QUESTION 
Identifiersarenorthingbutnamesgiventovariousentitiesuniquelyidentifiedinaprogram.Thenameofidentifiersmustdifferinspellingorcasing.Forexample,MyProgandmyProgaretwodifferentidentifiers.Programminglanguages,suchasC#andVisualBasic,strictlyrestricttheprogrammersfromusinganykeywordasidentifiers. Programmerscannotdevelopaclasswhosenameispublic,because,publicisakeywordusedtospecifytheaccessibilityofdatainprograms. 
ANSWER 
QUESTION 72
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
CanoneDLLfilecontainthecompiledcodeofmorethanone.NETlanguage? 
74 
QUESTION 
No,aDLLfilecancontainthecompiledcodeofonlyoneprogramminglanguage. 
ANSWER 
QUESTION 73
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisNativeImageGenerator? 
75 
QUESTION 
TheNativeImageGenerator(Ngen.exe)isatoolthatcreatesanativeimagefromanassemblyandstoresthatimagetonativeimagecacheonthecomputer.Whenever,anassemblyisrun,thisnativeimageisautomaticallyusedtocompiletheoriginalassembly.Inthisway,thistoolimprovestheperformanceofthemanagedapplicationbyloadingandexecutinganassemblyfaster. 
Notethatnativeimagesarefilesthatconsistofcompiledprocessor-specificmachinecode.TheNgen.exetoolinstallsthesefilesontothelocalcomputer. 
ANSWER 
QUESTION 74
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
NametheMSILDisassemblerutilitythatparsesany.NETFrameworkassemblyandshowstheinformationinhumanreadableformat 
76 
QUESTION 
TheIldasm.exeutility. 
ANSWER 
QUESTION 75
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisthesignificanceoftheStrongNametool? 
77 
QUESTION 
TheStrongNameutility(sn.exe)helpsincreatinguniquepublic-privatekeypairfilesthatarecalledstrongnamefilesandsigningassemblieswiththem.Italsoallowskeymanagement,signaturegeneration,andsignatureverification. 
ANSWER 
QUESTION 76
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Discusstheconceptofstrongnames. 
78 
QUESTION 
Whenever,anassemblyisdeployedinGACtomakeitshared,astrongnameneedstobeassignedtoitforitsuniqueidentification.Astrongnamecontainsanassembly'scompleteidentity-theassemblyname,versionnumber,andcultureinformationofanassembly.Apublickeyandadigitalsignature,generatedovertheassembly,arealsocontainedinastrongname.AstrongnamemakesanassemblyidenticalinGAC. 
ANSWER 
QUESTION 77
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatisthedifferencebetween.EXEand.DLLfiles? 
79 
QUESTION 
EXE 
1.Itisanexecutablefile,whichcanberunindependently. 
2.EXEisanout-processcomponent,whichmeansthatitrunsinaseparateprocess. 
3.Itcannotbereusedinanapplication. 
4.Ithasamainfunction. 
DLL 
1.ItisDynamicLinkLibrarythatisusedasapartofEXEorotherDLLs.Itcannotberunindependently. 
2.Itrunsintheapplicationprocessmemory,soitiscalledasin-processcomponent. 
3.Itcanbereusedinanapplication. 
4.Itdoesnothaveamainfunction. 
ANSWER 
QUESTION 78
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whichutilityallowsyoutoreferenceanassemblyinanapplication? 
80 
QUESTION 
Anassemblycanbereferencedbyusingthegacutil.exeutilitywiththe/roption.The/roptionrequiresareferencetype,areferenceID,andadescription. 
ANSWER 
QUESTION 79
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
TheAssemblyInfo.csfilestorestheassemblyconfigurationinformationandotherinformation,suchastheassemblyname,version,companyname,andtrademarkinformation.(True/False). 
81 
QUESTION 
True. 
ANSWER 
QUESTION 80
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatarecodecontracts? 
82 
QUESTION 
Codecontractshelpyoutoexpressthecodeassumptionsandstatementsstatingthebehaviorofyourcodeinalanguage-neutralway.Thecontractsareincludedintheformofpre-conditions,post-conditionsandobject- invariants.Thecontractshelpyoutoimprove-testingbyenablingrun-timechecking,staticcontractverification, anddocumentationgeneration. 
TheSystem.Diagnostics.Contractsnamespacecontainsstaticclassesthatareusedtoexpresscontractsinyourcode. 
ANSWER 
QUESTION 81
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatareMergeModuleprojects? 
83 
QUESTION 
MergeModuleprojectsenablecreationanddeploymentofcodethatcanbesharedbymultipleapplications.ThismayincludeDll‟s,resourcefiles,registrybasedentriesetc.TheWindowsdatabasealsokeepstrackofareferencecountforthoseprojects. 
ANSWER 
QUESTION 82
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisaServicedcomponent? 
84 
QUESTION 
AservicedcomponentisaclassthatisinsidealltheCLS-complaintlanguages.ItderivesdirectlyorindirectlyfromtheSystem.EnterpriseServices.ServicedComponentclass.ThiswayofconfiguringtheclassesallowstobehostedinaCOM+applicationandisabletouseCOM+services. 
ANSWER 
QUESTION 83
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatisaflatfile? 
85 
QUESTION 
Aflatfileisthenamegiventotext,whichcanbereadorwrittenonlysequentially. 
ANSWER 
QUESTION 84
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisanXMLWebservice? 
86 
QUESTION 
XMLWebServiceisaunitofcodethatcanbeaccessedindependentofplatformsandsystems.TheyareusedtointerchangedatabetweendifferentsystemsindifferentmachinesforinteroperabilityusingHTTPprotocols. RequestsaremadeandresponsesarereturnedintheformofXMLasXMLislanguageandplatformindependent. 
ANSWER 
QUESTION 85
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Describethestepstodeployawebservice. 
87 
QUESTION 
a.UsingxcopyorPublishwizardcopythefiletothedestinationserver. 
b.MakethedestinationdirectoryavirtualdirectoryinIIS. 
ANSWER 
QUESTION 86
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisMIME? 
88 
QUESTION 
ThedefinitionofMIMEorMultipurposeInternetMailExtensionsasstatedinMSDNis“MIMEisastandardthatcanbeusedtoincludecontentofvarioustypesinasinglemessage.MIMEextendstheSimpleMailTransferProtocol(SMTP)formatofmailmessagestoincludemultiplecontent,bothtextualandnon-textual.Partsofthemessagemaybeimages,audio,ortextindifferentcharactersets.TheMIMEstandardderivesfromRFCssuchas2821and2822” 
ANSWER 
QUESTION 87
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whataremock-ups? 
89 
QUESTION 
Mock-upsareasetofdesignsintheformofscreens,diagrams,snapshotsetc.,thathelpsverifythedesignandacquirefeedbackabouttheapplication‟srequirementsandusecases,atanearlystageofthedesignprocess. 
ANSWER 
QUESTION 88
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatislogging? 
90 
QUESTION 
Loggingistheprocessofpersistinginformationaboutthestatusofanapplication. 
ANSWER 
QUESTION 89
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
What’saWindowsprocessin.NET? 
91 
QUESTION 
WindowsProcessisanapplicationthat‟srunningandhadbeenallocatedmemoryin.NET 
ANSWER 
QUESTION 90
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Howtomanagepaginationinapage? 
92 
QUESTION 
UsingpaginationoptioninDataGridcontrol.Wehavetosetthenumberofrecordsforapage,thenittakescareofpaginationbyitself. 
ANSWER 
QUESTION 91
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatissmartnavigation? 
93 
QUESTION 
Thecursorpositionismaintainedwhenthepagegetsrefreshedduetotheserversidevalidationandthepagegetsrefreshed. 
ANSWER 
QUESTION 92
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
HowdoyoutriggerthePainteventinSystem.Drawing? 
94 
QUESTION 
Invalidatethecurrentform,theOSwilltakecareofrepainting.TheUpdatemethodforcestherepaint. 
ANSWER 
QUESTION 93
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
HowdoyouassignRGBcolortoaSystem.Drawing.Coloronject? 
95 
QUESTION 
CallthestaticmethodFromArgbofthisclassandpassittheRGBvaluesin.NET 
ANSWER 
QUESTION 94
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
What’saproxyoftheserverobjectin.NETRemoting? 
96 
QUESTION 
It‟safakecopyoftheserverobjectthatresidesontheclientsideandbehavesasifitwastheserver.Ithandlesthecommunicationbetweenrealserverobjectandtheclientobject.Thisprocessisalsoknownasthemarshaling. 
ANSWER 
QUESTION 95
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatareChannelsin.NETRemoting? 
97 
QUESTION 
Channelsrepresenttheobjectsthattransfertheotherserializedobjectsfromoneapplicationdomaintoanotherandfromonecomputertoanother,aswellasoneprocesstoanotheronthesamebox.AChannelmustexistbeforeanobjectcanbetransferred. 
ANSWER 
QUESTION 96
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
What’ssinglecallactivationmodeusedforin.NET? 
98 
QUESTION 
Iftheserverobjectisinstantiatedforrespondingtojustonesinglerequest,therequestshouldbemadeinSingleCallmodein.NET 
ANSWER 
QUESTION 97
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
What’sSingletonactivationmodein.NET? 
99 
QUESTION 
ASingleobjectisinstantiatedofthenumberofclientsaccessingit.Lifetimeofthisobjectisdeterminedbylifetimelease. 
ANSWER 
QUESTION 98
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Howdoyoudefinetheleaseoftheobjectin.NET? 
100 
QUESTION 
ByImplementingIleaseinterfacewhenwritingtheclasscodein.NET 
ANSWER 
QUESTION 99
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Canyouconfigurea.NETRemotingobjectviaXMLfile? 
101 
QUESTION 
Yes,viamachine.configandapplicationlevel.configfile(orweb.configinASP.NET).Application-levelXMLsettingstakeprecedenceovermachine.config. 
ANSWER 
QUESTION 100
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Resources 
102 
http://www.slideshare.net/vineetkumarsaini/net-interview-questions-and-answer 
http://vijaybalajithecitizen.blogspot.com/2011/06/100-net-interview-questions-and- answers.html 
http://prsu.ac.in:8010/Admin_1/Upload_Data/Data/1470.pdf 
http://www.dotnetcurry.com/showarticle.aspx?ID=64 
http://www.dotnetcurry.com/showarticle.aspx?ID=70 
http://techpreparation.com/dotnet-questions-answers1.htm#.U_8SHvldVK0 
http://www.indiabix.com/technical/dotnet/dot-net-framework/3 
http://www.indiabix.com/technical/dotnet/dot-net-programming-concepts/ 
http://www.indiabix.com/technical/dotnet/dot-net-assemblies/4 
http://careerride.com/NET-what-are-merge-module-projects.aspx 
http://www.blendinfotech.com/dot-net-interview-questions-and-answers-for-Fresher 
http://www.globalguideline.com/interview_questions/Questions.php?sc=Basic_Dot_Net_Programming_Interview_Questions_and_Answers
www.hirist.com 
.NET 
TOP 100 
INTERVIEW QUESTIONS & ANSWERS

Mais conteúdo relacionado

Último

Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptMadan Karki
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
National Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdfNational Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdfRajuKanojiya4
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxRomil Mishra
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgsaravananr517913
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxsiddharthjain2303
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdfCaalaaAbdulkerim
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substationstephanwindworld
 
The SRE Report 2024 - Great Findings for the teams
The SRE Report 2024 - Great Findings for the teamsThe SRE Report 2024 - Great Findings for the teams
The SRE Report 2024 - Great Findings for the teamsDILIPKUMARMONDAL6
 
welding defects observed during the welding
welding defects observed during the weldingwelding defects observed during the welding
welding defects observed during the weldingMuhammadUzairLiaqat
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Industrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptIndustrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptNarmatha D
 
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm Systemirfanmechengr
 
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...Amil Baba Dawood bangali
 

Último (20)

Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.ppt
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
National Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdfNational Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdf
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptx
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptx
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdf
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substation
 
The SRE Report 2024 - Great Findings for the teams
The SRE Report 2024 - Great Findings for the teamsThe SRE Report 2024 - Great Findings for the teams
The SRE Report 2024 - Great Findings for the teams
 
welding defects observed during the welding
welding defects observed during the weldingwelding defects observed during the welding
welding defects observed during the welding
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
Industrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptIndustrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.ppt
 
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm System
 
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
 

Destaque

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Destaque (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

Top 100 .NET Interview Questions and Answers

  • 1. hirist .com www.hirist.com .NET TOP 100 INTERVIEW QUESTIONS & ANSWERS
  • 2. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatis.NET? 2 QUESTION .NETisessentiallyaframeworkforsoftwaredevelopment.Itissimilarinnaturetoanyothersoftwaredevelopmentframework(J2EEetc)inthatitprovidesasetofruntimecontainers/capabilities,andarichsetofpre-builtfunctionalityintheformofclasslibrariesandAPIs The.NETFrameworkisanenvironmentforbuilding,deploying,andrunningWebServicesandotherapplications.Itconsistsofthreemainparts:theCommonLanguageRuntime,theFrameworkclasses,andASP.NET. ANSWER QUESTION 1
  • 3. For the hottest .NET jobs, please visit www.hirist.com hirist .com Howmanylanguages.NETissupportingnow? 3 QUESTION When.NETwasintroduceditcamewithseverallanguages.VB.NET,C#,COBOLandPerl,etc.ThesiteDotNetLanguages.Netsays44languagesaresupported. ANSWER QUESTION 2
  • 4. For the hottest .NET jobs, please visit www.hirist.com hirist .com Howis.NETabletosupportmultiplelanguages? 4 QUESTION AlanguageshouldcomplywiththeCommonLanguageRuntimestandardtobecomea.NETlanguage.In.NET, codeiscompiledtoMicrosoftIntermediateLanguage(MSILforshort).ThisiscalledasManagedCode.ThisManagedcodeisrunin.NETenvironment.SoaftercompilationtothisILthelanguageisnotabarrier.Acodecancalloruseafunctionwritteninanotherlanguage. ANSWER QUESTION 3
  • 5. For the hottest .NET jobs, please visit www.hirist.com hirist .com HowdoyouvalidatethecontrolsinanASP.NETpage? 5 QUESTION Usingspecialvalidationcontrolsthataremeantforthis.WehaveRangeValidator,EmailValidator. ANSWER QUESTION 4
  • 6. For the hottest .NET jobs, please visit www.hirist.com hirist .com Canthevalidationbedoneintheserverside?OrthiscanbedoneonlyintheClientside? 6 QUESTION Clientsideisdonebydefault.Serversidevalidationisalsopossible.Wecanswitchofftheclientsideandserversidecanbedone. ANSWER QUESTION 5
  • 7. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatareAttributes? 7 QUESTION Attributesaredeclarativetagsincodethatinsertadditionalmetadataintoanassembly.Thereexisttwotypesofattributesinthe.NETFramework:PredefinedattributessuchasAssemblyVersion,whichalreadyexistandareaccessedthroughtheRuntimeClasses;andcustomattributes,whichyouwriteyourselfbyextendingtheSystem.Attributeclass. ANSWER QUESTION 6
  • 8. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisWeb.config? 8 QUESTION InclassicASPallWebsiterelatedinformationwasstoredinthemetadataofIIS.ThishadthedisadvantagethatremoteWebdeveloperscouldn'teasilymakeWeb-siteconfigurationchanges.Forexample,ifyouwanttoaddacustom404errorpage,asettingneedstobemadethroughtheIISadmintool,andyou'reWebhostwilllikelychargeyouaflatfeetodothisforyou.WithASP.NET,however,thesesettingsaremovedintoanXML-formattedtextfile(Web.config)thatresidesintheWebsite'srootdirectory.ThroughWeb.configyoucanspecifysettingslikecustom404errorpages,authenticationandauthorizationsettingsfortheWebsitempilationoptionsfortheASP.NETWebpages,iftracingshouldbeenabled,etc. TheWeb.configfileisanXML-formattedfile.Attherootlevelisthetag.Insidethistagyoucanaddanumberofothertags,themostcommonandusefulonebeingthesystem.webtag,whereyouwillspecifymostoftheWebsiteconfigurationparameters.However,tospecifyapplication-widesettingsyouusethetag. Forexample,ifwewantedtoaddadatabaseconnectionstringparameterwecouldhaveaWeb.configfilelikeso. ANSWER QUESTION 7
  • 9. For the hottest .NET jobs, please visit www.hirist.com hirist .com ExplainwhatrelationshipisbetweenaProcess,ApplicationDomain,andApplication? 9 QUESTION EachprocessisallocateditsownblockofavailableRAMspace,noprocesscanaccessanotherprocess‟codeordata.Iftheprocesscrashes,itdiesalonewithouttakingtheentireOSorabunchofotherapplicationsdown. Aprocessisaninstanceofarunningapplication.Anapplicationisanexecutableontheharddriveornetwork. Therecanbenumerousprocesseslaunchedofthesameapplication(5copiesofWordrunning),but1processcanrunjust1application. ANSWER QUESTION 8
  • 10. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatisaformatter? 10 QUESTION Aformatterisanobjectthatisresponsibleforencodingandserializingdataintomessagesononeend,anddeserializinganddecodingmessagesintodataontheotherend. ANSWER QUESTION 9
  • 11. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisDelegation? 11 QUESTION Adelegateactslikeastronglytypefunctionpointer.Delegatescaninvokethemethodsthattheyreferencewithoutmakingexplicitcallstothosemethods. Delegateisanentitythatisentrustedwiththetaskofrepresentation,assignorpassingoninformation.Incodesense,itmeansaDelegateisentrustedwithaMethodtoreportinformationbacktoitwhenacertaintask(whichtheMethodexpects)isaccomplishedoutsidetheMethod'sclass. ANSWER QUESTION 10
  • 12. For the hottest .NET jobs, please visit www.hirist.com hirist .com Writeaquerytofindthetotalnumberofrowsinatable? 12 QUESTION Selectcount(*)fromt_employee; ANSWER QUESTION 11
  • 13. For the hottest .NET jobs, please visit www.hirist.com hirist .com Writeaquerytoeliminateduplicaterecordsintheresultsofatable? 13 QUESTION Selectdistinct*fromt_employee; ANSWER QUESTION 12
  • 14. For the hottest .NET jobs, please visit www.hirist.com hirist .com Writeaquerytoinsertarecordintoatable? 14 QUESTION Insertintot_employeevalues('empid35','Barack','Obama'); ANSWER QUESTION 13
  • 15. For the hottest .NET jobs, please visit www.hirist.com hirist .com Writeaquerytodeletearecordfromatable? 15 QUESTION deletefromt_employeewhereid='empid35'; ANSWER QUESTION 14
  • 16. For the hottest .NET jobs, please visit www.hirist.com hirist .com Writeaquerytodisplayarowusingindex? 16 QUESTION Forthis,theindexedcolumnofthetableneedstobesetasaparameterinthe whereclause select*fromt_employeewhereid='43'; ANSWER QUESTION 15
  • 17. For the hottest .NET jobs, please visit www.hirist.com hirist .com Writeaquerytofetchthehighestrecordinatable,basedonarecord,saysalaryfieldinthet_salarytable? 17 QUESTION Selectmax(salary)fromt_salary; ANSWER QUESTION 16
  • 18. For the hottest .NET jobs, please visit www.hirist.com hirist .com Writeaquerytofetchthefirst3charactersofthefielddesignationfromthetablet_employee? 18 QUESTION Selectsubstr(designation,1,3)fromt_employee;--Noteherethatthesubstrfunctionhasbeenused. ANSWER QUESTION 17
  • 19. For the hottest .NET jobs, please visit www.hirist.com hirist .com Writeaquerytoconcatenatetwofields,sayDesignationandDepartmentbelongingtoatablet_employee? 19 QUESTION SelectDesignation+„„+Departmentfromt_employee; ANSWER QUESTION 18
  • 20. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisthedifferencebetweenUNIONandUNIONALLinSQL? 20 QUESTION UNIONisanSQLkeywordusedtomergetheresultsoftwoormoretablesusingaSelectstatement,containingthesamefields,withremovedduplicatevalues.UNIONALLdoesthesame,howeveritpersistsduplicatevalues. ANSWER QUESTION 19
  • 21. For the hottest .NET jobs, please visit www.hirist.com hirist .com Ifthereare4SQLSelectstatementsjoinedusingUnionandUnionAll,howmanytimesshouldaUnionbeusedtoremoveduplicaterows? 21 QUESTION Onetime. ANSWER QUESTION 20
  • 22. For the hottest .NET jobs, please visit www.hirist.com hirist .com ExplainthedifferencesbetweenServer-sideandClient-sidecode? 22 QUESTION Serversidecodewillexecuteatserver(wherethewebsiteishosted)end,&allthebusinesslogicwillexecuteatserverendwhereasclientsidecodewillexecuteatclientside(usuallywritteninjavascript,vbscript,jscript)atbrowserend. ANSWER QUESTION 21
  • 23. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whattypeofcode(serverorclient)isfoundinaCode-Behindclass? 23 QUESTION Serversidecode. ANSWER QUESTION 22
  • 24. For the hottest .NET jobs, please visit www.hirist.com hirist .com Howtomakesurethatvalueisenteredinanasp:Textboxcontrol? 24 QUESTION UseaRequiredFieldValidatorcontrol. ANSWER QUESTION 23
  • 25. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whichpropertyofavalidationcontrolisusedtoassociateitwithaservercontrolonthatpage? 25 QUESTION ControlToValidateproperty. ANSWER QUESTION 24
  • 26. For the hottest .NET jobs, please visit www.hirist.com hirist .com HowwouldyouimplementinheritanceusingVB.NET&C#? 26 QUESTION C#DerivedClass:Baseclass VB.NEt:DerivedClassInheritsBaseclass ANSWER QUESTION 25
  • 27. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhichmethodisinvokedontheDataAdaptercontroltoloadthegenerateddatasetwithdata? 27 QUESTION Fill()method. ANSWER QUESTION 26
  • 28. For the hottest .NET jobs, please visit www.hirist.com hirist .com Howmanywayscanwemaintainthestateofapage? 28 QUESTION 1.ClientSide-Querystring,hiddenvariables,viewstate,cookies 2.Serverside-application,cache,context,session,database ANSWER QUESTION 27
  • 29. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatistheuseofamulticastdelegate? 29 QUESTION Amulticastdelegatemaybeusedtocallmorethanonemethod. ANSWER QUESTION 28
  • 30. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatistheuseofSingletonpattern? 30 QUESTION ASingletonpattern.isusedtomakesurethatonlyoneinstanceofaclassexists. ANSWER QUESTION 29
  • 31. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatisencapsulation? 31 QUESTION EncapsulationistheOOPsconceptofbindingtheattributesandbehaviorsinaclass,hidingtheimplementationoftheclassandexposingthefunctionality. ANSWER QUESTION 30
  • 32. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatisadatatype?Howmanytypesofdatatypesaretherein.NET? 32 QUESTION Adatatypeisadatastorageformatthatcancontainaspecifictypeorrangeofvalues.Wheneveryoudeclarevariables, eachvariablemustbeassignedaspecificdatatype.Somecommondatatypesincludeintegers,floatingpoint, characters,andstrings.Thefollowingarethetwotypesofdatatypesavailablein.NET: Valuetype-Referstothedatatypethatcontainsthedata.Inotherwords,theexactvalueorthedataisdirectlystoredinthisdatatype.Itmeansthatwhenyouassignavaluetypevariabletoanothervariable,thenitcopiesthevalueratherthancopyingthereferenceofthatvariable.Whenyoucreateavaluetypevariable,asinglespaceinmemoryisallocatedtostorethevalue(stackmemory).Primitivedatatypes,suchasint,float,andcharareexamplesofvaluetypevariables. Referencetype-Referstoadatatypethatcanaccessdatabyreference.Referenceisavalueoranaddressthataccessesaparticulardatabyaddress,whichisstoredelsewhereinmemory(heapmemory).Youcansaythatreferenceisthephysicaladdressofdata,wherethedataisstoredinmemoryorinthestoragedevice.Somebuilt-inreferencetypesvariablesin.Netarestring,array,andobject. ANSWER QUESTION 31
  • 33. For the hottest .NET jobs, please visit www.hirist.com hirist .com IsStringaReferenceTypeorValueTypein.NET? 33 QUESTION StringisaReferenceTypeobject. ANSWER QUESTION 32
  • 34. For the hottest .NET jobs, please visit www.hirist.com hirist .com Canasingle.NETDLLcontainmultipleclasses? 34 QUESTION Yes,asingle.NETDLLmaycontainanynumberofclasseswithinit. ANSWER QUESTION 33
  • 35. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisaCompositeControlin.NET? 35 QUESTION CompositeControlisanabstractclassin.NETthatisinheritedbythosewebcontrolsthatcontainchildcontrolswithinthem. ANSWER QUESTION 34
  • 36. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatarethenewfeaturesin.NET2.0? 36 QUESTION Plentyofnewcontrols,Generics,anonymousmethods,partialclasses,iterators,propertyvisibility(separatevisibilityforgetandset)andstaticclasses. ANSWER QUESTION 35
  • 37. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatarePartialClassesinAsp.Net2.0? 37 QUESTION In.NET2.0,aclassdefinitionmaybesplitintomultiplephysicalfilesbutpartialclassesdonotmakeanydifferencetothecompilerasduringcompiletime,thecompilergroupsallthepartialclassesandtreatsthemasasingleclass. ANSWER QUESTION 36
  • 38. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisaIL? 38 QUESTION (IL)IntermediateLanguageisalsoknownasMSIL(MicrosoftIntermediateLanguage)orCIL(CommonIntermediateLanguage).All.NETsourcecodeiscompiledtoIL.ThisIListhenconvertedtomachinecodeatthepointwherethesoftwareisinstalled,oratrun-timebyaJust-In-Time(JIT)compiler. ANSWER QUESTION 37
  • 39. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisaCTS? 39 QUESTION CTSdefinesallofthebasictypesthatcanbeusedinthe.NETFrameworkandtheoperationsperformedonthosetype. Allthistimewehavebeentalkingaboutlanguageinteroperability,and.NETClassFramework.Noneofthisispossiblewithoutallthelanguagesharingthesamedatatypes.WhatthismeansisthatanintshouldmeanthesameinVB,VC++,C#andallother.NETcompliantlanguages.ThisisachievedthroughintroductionofCommonTypeSystem(CTS). ANSWER QUESTION 38
  • 40. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatis"CommonLanguageSpecification"(CLS)? 40 QUESTION CLSisthecollectionoftherulesandconstraintsthateverylanguage(thatseekstoachieve.NETcompatibility) mustfollow.ItisasubsectionofCTSanditspecifieshowitsharesandextendsoneanotherlibraries. ANSWER QUESTION 39
  • 41. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatis"CommonLanguageRuntime"(CLR)? 41 QUESTION CLRis.NETequivalentofJavaVirtualMachine(JVM).ItistheruntimethatconvertsaMSILcodeintothehostmachinelanguagecode,whichisthenexecutedappropriately.TheCLRistheexecutionenginefor.NETFrameworkapplications.Itprovidesanumberofservices,including: ANSWER QUESTION 40 -Codemanagement(loadingandexecution) -Applicationmemoryisolation -Verificationoftypesafety -ConversionofILtonativecode. -Accesstometadata(enhancedtypeinformation) -Managingmemoryformanagedobjects -Enforcementofcodeaccesssecurity -Exceptionhandling,includingcross-languageexceptions -Interoperationbetweenmanagedcode,COMobjects,andpre- existingDLL's(unmanagedcodeanddata) -Automationofobjectlayout -Supportfordeveloperservices(profiling,debugging,andsoon).
  • 42. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisaManagedCode? 42 QUESTION ManagedcoderunsinsidetheenvironmentofCLRi.e..NETruntime.InshortallILaremanagedcode.ButifyouareusingsomethirdpartysoftwareexampleVB6orVC++componenttheyareunmanagedcodeas.NETruntime(CLR)doesnothavecontroloverthesourcecodeexecutionofthelanguage. ANSWER QUESTION 41
  • 43. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatisanassembly? 43 QUESTION Anassemblyisacollectionofoneormore.exeordll‟s.Anassemblyisthefundamentalunitforapplicationdevelopmentanddeploymentinthe.NETFramework.Anassemblycontainsacollectionoftypesandresourcesthatarebuilttoworktogetherandformalogicalunitoffunctionality.AnassemblyprovidestheCLRwiththeinformationitneedstobeawareoftypeimplementations. ANSWER QUESTION 42
  • 44. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatarethedifferenttypesofAssembly? 44 QUESTION TherearetwotypesofassemblyPrivateandPublicassembly.Aprivateassemblyisnormallyusedbyasingleapplication,andisstoredintheapplication'sdirectory,orasub-directorybeneath.Asharedassemblyisnormallystoredintheglobalassemblycache,whichisarepositoryofassembliesmaintainedbythe.NETruntime.Sharedassembliesareusuallylibrariesofcodewhichmanyapplicationswillfinduseful,e.g.CrystalreportclasseswhichwillbeusedbyallapplicationforReports. ANSWER QUESTION 43
  • 45. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisDifferencebetweenNameSpaceandAssembly? 45 QUESTION Followingarethedifferencesbetweennamespaceandassembly: Assemblyisphysicalgroupingoflogicalunits.Namespacelogicallygroupsclasses. Namespacecanspanmultipleassembly. ANSWER QUESTION 44
  • 46. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisManifest? 46 QUESTION AssemblymetadataisstoredinManifest.Manifestcontainsallthemetadataneededtodothefollowingthings: Versionofassembly Securityidentity Scopeoftheassembly Resolvereferencestoresourcesandclasses. TheassemblymanifestcanbestoredineitheraPEfile(an.exeor.dll)withMicrosoftintermediatelanguage(MSIL)codeorinastand-alonePEfilethatcontainsonlyassemblymanifestinformation. ANSWER QUESTION 45
  • 47. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatisgarbagecollection? 47QUESTION GarbagecollectionisaCLRfeaturewhichautomaticallymanagesmemory.Programmersforgettoreleasetheobjectswhilecoding.....Laziness(RememberinVB6whereoneofthegoodpracticesistosetobjecttonothing). CLRautomaticallyreleasesobjectswhentheyarenolongerinuseandrefernced.CLRrunsonnon-deterministictoseetheunusedobjectsandcleansthem.Onesideeffectofthisnon-deterministicfeatureisthatwecannotassumeanobjectisdestroyedwhenitgoesoutofthescopeofafunction.Therefore,weshouldnotputcodeintoaclassdestructortoreleaseresources. ANSWER QUESTION 46
  • 48. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisconceptofBoxingandUnboxing? 48QUESTION Boxingisusedtoconvertvaluetypestoobject. E.g.intx=1; objectobj=x; Unboxingisusedtoconverttheobjectbacktothevaluetype. E.g.inty=(int)obj; Boxing/unboxingisquietanexpensiveoperation. ANSWER QUESTION 47
  • 49. For the hottest .NET jobs, please visit www.hirist.com hirist .com DefineOverriding? 49 QUESTION Overridingisaconceptwhereamethodinaderivedclassusesthesamename,returntype,andargumentsasamethodinitsbaseclass.Inotherwords,ifthederivedclasscontainsitsownimplementationofthemethodratherthanusingthemethodinthebaseclass,theprocessiscalledoverriding. ANSWER QUESTION 48
  • 50. For the hottest .NET jobs, please visit www.hirist.com hirist .com Canyouusemultipleinheritancein.NET? 50 QUESTION .NETsupportsonlysingleinheritance.Howeverthepurposeisaccomplishedusingmultipleinterfaces. ANSWER QUESTION 49
  • 51. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatareeventsanddelegates? 51 QUESTION Aneventisamessagesentbyacontroltonotifytheoccurrenceofanaction.Howeveritisnotknownwhichobjectreceivestheevent.Forthisreason,.NETprovidesaspecialtypecalledDelegatewhichactsasanintermediarybetweenthesenderobjectandreceiverobject. ANSWER QUESTION 51
  • 52. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatisaconnectionpool? 52 QUESTION Aconnectionpoolisa„collectionofconnections‟whicharesharedbetweentheclientsrequestingone.Oncetheconnectionisclosed,itreturnsbacktothepool.Thisallowstheconnectionstobereused. ANSWER QUESTION 51
  • 53. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatiscodereview? 53 QUESTION Theprocessofexaminingthesourcecodegenerallythroughapeer,toverifyitagainstbestpractices. ANSWER QUESTION 52
  • 54. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisBLOB? 54 QUESTION ABLOB(binarylargeobject)isalargeitemsuchasanimageoranexerepresentedinbinaryform. ANSWER QUESTION 53
  • 55. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisaCOMCallableWrapper(CCW)? 55 QUESTION CCWisawrappercreatedbythecommonlanguageruntime(CLR)thatenablesCOMcomponentstoaccess.NETobjects. ANSWER QUESTION 54
  • 56. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisaRuntimeCallableWrapper(RCW)? 56 QUESTION RCWisawrappercreatedbythecommonlanguageruntime(CLR)toenable.NETcomponentstocallCOMcomponents. ANSWER QUESTION 55
  • 57. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisMSIL? 57 QUESTION Whenthecodeiscompiled,thecompilertranslatesyourcodeintoMicrosoftintermediatelanguage(MSIL).ThecommonlanguageruntimeincludesaJITcompilerforconvertingthisMSILthentonativecode. MSILcontainsmetadatathatisthekeytocrosslanguageinteroperability.Sincethismetadataisstandardizedacrossall.NETlanguages,aprogramwritteninonelanguagecanunderstandthemetadataandexecutecode, writteninadifferentlanguage.MSILincludesinstructionsforloading,storing,initializing,andcallingmethodsonobjects,aswellasinstructionsforarithmeticandlogicaloperations,controlflow,directmemoryaccess,exceptionhandling,andotheroperations. ANSWER QUESTION 56
  • 58. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisJIT? 58 QUESTION JITisacompilerthatconvertsMSILtonativecode.ThenativecodeconsistsofhardwarespecificinstructionsthatcanbeexecutedbytheCPU. RatherthanconvertingtheentireMSIL(inaportableexecutable[PE]file)tonativecode,theJITconvertstheMSILasitisneededduringexecution.Thisconvertednativecodeisstoredsothatitisaccessibleforsubsequentcalls. ANSWER QUESTION 57
  • 59. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisGAC?WhatarethestepstocreateanassemblyandaddittotheGAC? 59 QUESTION Theglobalassemblycache(GAC)isamachine-widecodecachethatstoresassembliesspecificallydesignatedtobesharedbyseveralapplicationsonthecomputer.Youshouldshareassembliesbyinstallingthemintotheglobalassemblycacheonlywhenyouneedto. Steps -Createastrongnameusingsn.exetooleg:sn-kmykey.snk -inAssemblyInfo.cs,addthestrongnameeg:[assembly:AssemblyKeyFile("mykey.snk")] -recompileproject,andtheninstallittoGACintwoways: •drag&dropittoassemblyfolder(C:WINDOWSassemblyORC:WINNTassembly)(shfusion.dlltool) •gacutil-iabc.dll ANSWER QUESTION 58
  • 60. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatisthecaspol.exetoolusedfor? 60 QUESTION Thecaspoltoolgrantsandmodifiespermissionstocodegroupsattheuserpolicy,machinepolicy,andenterprisepolicylevels. ANSWER QUESTION 59
  • 61. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisIlasm.exeusedfor? 61 QUESTION Ilasm.exeisatoolthatgeneratesPEfilesfromMSILcode.YoucanruntheresultingexecutabletodeterminewhethertheMSILcodeperformsasexpected. ANSWER QUESTION 60
  • 62. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisIldasm.exeusedfor? 62 QUESTION Ildasm.exeisatoolthattakesaPEfilecontainingtheMSILcodeasaparameterandcreatesatextfilethatcontainsmanagedcode. ANSWER QUESTION 61
  • 63. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatistheResGen.exetoolusedfor? 63 QUESTION ResGen.exeisatoolthatisusedtoconvertresourcefilesintheformof.txtor.resxfilestocommonlanguageruntimebinary.resourcesfilesthatcanbecompiledintosatelliteassemblies. ANSWER QUESTION 62
  • 64. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatisadigitalsignature? 64 QUESTION Adigitalsignatureisanelectronicsignatureusedtoverify/guaranteetheidentityoftheindividualwhoissendingthemessage. ANSWER QUESTION 63
  • 65. For the hottest .NET jobs, please visit www.hirist.com hirist .com NametheclassesthatareintroducedintheSystem.Numericsnamespace. 65 QUESTION ThefollowingtwonewclassesareintroducedintheSystem.Numericsnamespace: •BigInteger-Referstoanon-primitiveintegraltype,whichisusedtoholdavalueofanysize.Ithasnolowerandupperlimit,makingitpossibleforyoutoperformarithmeticcalculationswithverylargenumbers,evenwiththenumberswhichcannotholdbydoubleorlong. •Complex-Representscomplexnumbersandenablesdifferentarithmeticoperationswithcomplexnumbers.Anumberrepresentedintheforma+bi,whereaistherealpart,andbistheimaginarypart,isacomplexnumber. ANSWER QUESTION 64
  • 66. For the hottest .NET jobs, please visit www.hirist.com hirist .com Explainmemory-mappedfiles. 66 QUESTION Memory-mappedfiles(MMFs)allowyoumapthecontentofafiletothelogicaladdressofanapplication.ThesefilesenablethemultipleprocessesrunningonthesamemachinetosharedatawitheachOther.TheMemoryMappedFile.CreateFromFile()methodisusedtoobtainaMemoryMappedFileobjectthatrepresentsapersistedmemory-mappedfilefromafileondisk. ThesefilesareincludedintheSystem.IO.MemoryMappedFilesnamespace.Thisnamespacecontainsfourclassesandthreeenumerationstohelpyouaccessandsecureyourfilemappings ANSWER QUESTION 65
  • 67. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whichmethoddoyouusetoenforcegarbagecollectionin.NET? 67 QUESTION TheSystem.GC.Collect()method. ANSWER QUESTION 66
  • 68. For the hottest .NET jobs, please visit www.hirist.com hirist .com StatethedifferencesbetweentheDispose()andFinalize(). 68 QUESTION CLRusestheDisposeandFinalizemethodstoperformgarbagecollectionofrun-timeobjectsof.NETapplications. TheFinalizemethodiscalledautomaticallybytheruntime.CLRhasagarbagecollector(GC),whichperiodicallychecksforobjectsinheapthatarenolongerreferencedbyanyobjectorprogram.ItcallstheFinalizemethodtofreethememoryusedbysuchobjects.TheDisposemethodiscalledbytheprogrammer.Disposeisanothermethodtoreleasethememoryusedbyanobject.TheDisposemethodneedstobeexplicitlycalledincodetodereferenceanobjectfromtheheap.TheDisposemethodcanbeinvokedonlybytheclassesthatimplementtheIDisposableinterface. ANSWER QUESTION 67
  • 69. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whataretuples? 69 QUESTION Tupleisafixed-sizecollectionthatcanhaveelementsofeithersameordifferentdatatypes.Similartoarrays,ausermusthavetospecifythesizeofatupleatthetimeofdeclaration.Tuplesareallowedtoholdupfrom1to8elementsandiftherearemorethan8elements,thenthe8thelementcanbedefinedasanothertuple.Tuplescanbespecifiedasparameterorreturntypeofamethod. ANSWER QUESTION 68
  • 70. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whichistherootnamespaceforfundamentaltypesin.NETFramework? 70 QUESTION System.Objectistherootnamespaceforfundamentaltypesin.NETFramework. ANSWER QUESTION 69
  • 71. For the hottest .NET jobs, please visit www.hirist.com hirist .com Definevariableandconstant. 71 QUESTION Avariablecanbedefinedasameaningfulnamethatisgiventoadatastoragelocationinthecomputermemorythatcontainsavalue.Everyvariableassociatedwithadatatypedetermineswhattypeofvaluecanbestoredinthevariable,forexampleaninteger,suchas100,adecimal,suchas30.05,oracharacter,suchas'A'. Youcandeclarevariablesbyusingthefollowingsyntax: <Data_type><variable_name>; Aconstantissimilartoavariableexceptthatthevalue,whichyouassigntoaconstant,cannotbechanged,asincaseofavariable.Constantsmustbeinitializedatthesametimetheyaredeclared.Youcandeclareconstantsbyusingthefollowingsyntax: constintinterestRate=10; ANSWER QUESTION 70
  • 72. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whichstatementisusedtoreplacemultipleif-elsestatementsincode? 72 QUESTION InVisualBasic,theSelect-CasestatementisusedtoreplacemultipleIf-ElsestatementsandinC#,theswitch- casestatementisusedtoreplacemultipleif-elsestatements. ANSWER QUESTION 71
  • 73. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatisanidentifier? 73 QUESTION Identifiersarenorthingbutnamesgiventovariousentitiesuniquelyidentifiedinaprogram.Thenameofidentifiersmustdifferinspellingorcasing.Forexample,MyProgandmyProgaretwodifferentidentifiers.Programminglanguages,suchasC#andVisualBasic,strictlyrestricttheprogrammersfromusinganykeywordasidentifiers. Programmerscannotdevelopaclasswhosenameispublic,because,publicisakeywordusedtospecifytheaccessibilityofdatainprograms. ANSWER QUESTION 72
  • 74. For the hottest .NET jobs, please visit www.hirist.com hirist .com CanoneDLLfilecontainthecompiledcodeofmorethanone.NETlanguage? 74 QUESTION No,aDLLfilecancontainthecompiledcodeofonlyoneprogramminglanguage. ANSWER QUESTION 73
  • 75. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisNativeImageGenerator? 75 QUESTION TheNativeImageGenerator(Ngen.exe)isatoolthatcreatesanativeimagefromanassemblyandstoresthatimagetonativeimagecacheonthecomputer.Whenever,anassemblyisrun,thisnativeimageisautomaticallyusedtocompiletheoriginalassembly.Inthisway,thistoolimprovestheperformanceofthemanagedapplicationbyloadingandexecutinganassemblyfaster. Notethatnativeimagesarefilesthatconsistofcompiledprocessor-specificmachinecode.TheNgen.exetoolinstallsthesefilesontothelocalcomputer. ANSWER QUESTION 74
  • 76. For the hottest .NET jobs, please visit www.hirist.com hirist .com NametheMSILDisassemblerutilitythatparsesany.NETFrameworkassemblyandshowstheinformationinhumanreadableformat 76 QUESTION TheIldasm.exeutility. ANSWER QUESTION 75
  • 77. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisthesignificanceoftheStrongNametool? 77 QUESTION TheStrongNameutility(sn.exe)helpsincreatinguniquepublic-privatekeypairfilesthatarecalledstrongnamefilesandsigningassemblieswiththem.Italsoallowskeymanagement,signaturegeneration,andsignatureverification. ANSWER QUESTION 76
  • 78. For the hottest .NET jobs, please visit www.hirist.com hirist .com Discusstheconceptofstrongnames. 78 QUESTION Whenever,anassemblyisdeployedinGACtomakeitshared,astrongnameneedstobeassignedtoitforitsuniqueidentification.Astrongnamecontainsanassembly'scompleteidentity-theassemblyname,versionnumber,andcultureinformationofanassembly.Apublickeyandadigitalsignature,generatedovertheassembly,arealsocontainedinastrongname.AstrongnamemakesanassemblyidenticalinGAC. ANSWER QUESTION 77
  • 79. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatisthedifferencebetween.EXEand.DLLfiles? 79 QUESTION EXE 1.Itisanexecutablefile,whichcanberunindependently. 2.EXEisanout-processcomponent,whichmeansthatitrunsinaseparateprocess. 3.Itcannotbereusedinanapplication. 4.Ithasamainfunction. DLL 1.ItisDynamicLinkLibrarythatisusedasapartofEXEorotherDLLs.Itcannotberunindependently. 2.Itrunsintheapplicationprocessmemory,soitiscalledasin-processcomponent. 3.Itcanbereusedinanapplication. 4.Itdoesnothaveamainfunction. ANSWER QUESTION 78
  • 80. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whichutilityallowsyoutoreferenceanassemblyinanapplication? 80 QUESTION Anassemblycanbereferencedbyusingthegacutil.exeutilitywiththe/roption.The/roptionrequiresareferencetype,areferenceID,andadescription. ANSWER QUESTION 79
  • 81. For the hottest .NET jobs, please visit www.hirist.com hirist .com TheAssemblyInfo.csfilestorestheassemblyconfigurationinformationandotherinformation,suchastheassemblyname,version,companyname,andtrademarkinformation.(True/False). 81 QUESTION True. ANSWER QUESTION 80
  • 82. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatarecodecontracts? 82 QUESTION Codecontractshelpyoutoexpressthecodeassumptionsandstatementsstatingthebehaviorofyourcodeinalanguage-neutralway.Thecontractsareincludedintheformofpre-conditions,post-conditionsandobject- invariants.Thecontractshelpyoutoimprove-testingbyenablingrun-timechecking,staticcontractverification, anddocumentationgeneration. TheSystem.Diagnostics.Contractsnamespacecontainsstaticclassesthatareusedtoexpresscontractsinyourcode. ANSWER QUESTION 81
  • 83. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatareMergeModuleprojects? 83 QUESTION MergeModuleprojectsenablecreationanddeploymentofcodethatcanbesharedbymultipleapplications.ThismayincludeDll‟s,resourcefiles,registrybasedentriesetc.TheWindowsdatabasealsokeepstrackofareferencecountforthoseprojects. ANSWER QUESTION 82
  • 84. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisaServicedcomponent? 84 QUESTION AservicedcomponentisaclassthatisinsidealltheCLS-complaintlanguages.ItderivesdirectlyorindirectlyfromtheSystem.EnterpriseServices.ServicedComponentclass.ThiswayofconfiguringtheclassesallowstobehostedinaCOM+applicationandisabletouseCOM+services. ANSWER QUESTION 83
  • 85. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatisaflatfile? 85 QUESTION Aflatfileisthenamegiventotext,whichcanbereadorwrittenonlysequentially. ANSWER QUESTION 84
  • 86. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisanXMLWebservice? 86 QUESTION XMLWebServiceisaunitofcodethatcanbeaccessedindependentofplatformsandsystems.TheyareusedtointerchangedatabetweendifferentsystemsindifferentmachinesforinteroperabilityusingHTTPprotocols. RequestsaremadeandresponsesarereturnedintheformofXMLasXMLislanguageandplatformindependent. ANSWER QUESTION 85
  • 87. For the hottest .NET jobs, please visit www.hirist.com hirist .com Describethestepstodeployawebservice. 87 QUESTION a.UsingxcopyorPublishwizardcopythefiletothedestinationserver. b.MakethedestinationdirectoryavirtualdirectoryinIIS. ANSWER QUESTION 86
  • 88. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisMIME? 88 QUESTION ThedefinitionofMIMEorMultipurposeInternetMailExtensionsasstatedinMSDNis“MIMEisastandardthatcanbeusedtoincludecontentofvarioustypesinasinglemessage.MIMEextendstheSimpleMailTransferProtocol(SMTP)formatofmailmessagestoincludemultiplecontent,bothtextualandnon-textual.Partsofthemessagemaybeimages,audio,ortextindifferentcharactersets.TheMIMEstandardderivesfromRFCssuchas2821and2822” ANSWER QUESTION 87
  • 89. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whataremock-ups? 89 QUESTION Mock-upsareasetofdesignsintheformofscreens,diagrams,snapshotsetc.,thathelpsverifythedesignandacquirefeedbackabouttheapplication‟srequirementsandusecases,atanearlystageofthedesignprocess. ANSWER QUESTION 88
  • 90. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatislogging? 90 QUESTION Loggingistheprocessofpersistinginformationaboutthestatusofanapplication. ANSWER QUESTION 89
  • 91. For the hottest .NET jobs, please visit www.hirist.com hirist .com What’saWindowsprocessin.NET? 91 QUESTION WindowsProcessisanapplicationthat‟srunningandhadbeenallocatedmemoryin.NET ANSWER QUESTION 90
  • 92. For the hottest .NET jobs, please visit www.hirist.com hirist .com Howtomanagepaginationinapage? 92 QUESTION UsingpaginationoptioninDataGridcontrol.Wehavetosetthenumberofrecordsforapage,thenittakescareofpaginationbyitself. ANSWER QUESTION 91
  • 93. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatissmartnavigation? 93 QUESTION Thecursorpositionismaintainedwhenthepagegetsrefreshedduetotheserversidevalidationandthepagegetsrefreshed. ANSWER QUESTION 92
  • 94. For the hottest .NET jobs, please visit www.hirist.com hirist .com HowdoyoutriggerthePainteventinSystem.Drawing? 94 QUESTION Invalidatethecurrentform,theOSwilltakecareofrepainting.TheUpdatemethodforcestherepaint. ANSWER QUESTION 93
  • 95. For the hottest .NET jobs, please visit www.hirist.com hirist .com HowdoyouassignRGBcolortoaSystem.Drawing.Coloronject? 95 QUESTION CallthestaticmethodFromArgbofthisclassandpassittheRGBvaluesin.NET ANSWER QUESTION 94
  • 96. For the hottest .NET jobs, please visit www.hirist.com hirist .com What’saproxyoftheserverobjectin.NETRemoting? 96 QUESTION It‟safakecopyoftheserverobjectthatresidesontheclientsideandbehavesasifitwastheserver.Ithandlesthecommunicationbetweenrealserverobjectandtheclientobject.Thisprocessisalsoknownasthemarshaling. ANSWER QUESTION 95
  • 97. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatareChannelsin.NETRemoting? 97 QUESTION Channelsrepresenttheobjectsthattransfertheotherserializedobjectsfromoneapplicationdomaintoanotherandfromonecomputertoanother,aswellasoneprocesstoanotheronthesamebox.AChannelmustexistbeforeanobjectcanbetransferred. ANSWER QUESTION 96
  • 98. For the hottest .NET jobs, please visit www.hirist.com hirist .com What’ssinglecallactivationmodeusedforin.NET? 98 QUESTION Iftheserverobjectisinstantiatedforrespondingtojustonesinglerequest,therequestshouldbemadeinSingleCallmodein.NET ANSWER QUESTION 97
  • 99. For the hottest .NET jobs, please visit www.hirist.com hirist .com What’sSingletonactivationmodein.NET? 99 QUESTION ASingleobjectisinstantiatedofthenumberofclientsaccessingit.Lifetimeofthisobjectisdeterminedbylifetimelease. ANSWER QUESTION 98
  • 100. For the hottest .NET jobs, please visit www.hirist.com hirist .com Howdoyoudefinetheleaseoftheobjectin.NET? 100 QUESTION ByImplementingIleaseinterfacewhenwritingtheclasscodein.NET ANSWER QUESTION 99
  • 101. For the hottest .NET jobs, please visit www.hirist.com hirist .com Canyouconfigurea.NETRemotingobjectviaXMLfile? 101 QUESTION Yes,viamachine.configandapplicationlevel.configfile(orweb.configinASP.NET).Application-levelXMLsettingstakeprecedenceovermachine.config. ANSWER QUESTION 100
  • 102. For the hottest .NET jobs, please visit www.hirist.com hirist .com Resources 102 http://www.slideshare.net/vineetkumarsaini/net-interview-questions-and-answer http://vijaybalajithecitizen.blogspot.com/2011/06/100-net-interview-questions-and- answers.html http://prsu.ac.in:8010/Admin_1/Upload_Data/Data/1470.pdf http://www.dotnetcurry.com/showarticle.aspx?ID=64 http://www.dotnetcurry.com/showarticle.aspx?ID=70 http://techpreparation.com/dotnet-questions-answers1.htm#.U_8SHvldVK0 http://www.indiabix.com/technical/dotnet/dot-net-framework/3 http://www.indiabix.com/technical/dotnet/dot-net-programming-concepts/ http://www.indiabix.com/technical/dotnet/dot-net-assemblies/4 http://careerride.com/NET-what-are-merge-module-projects.aspx http://www.blendinfotech.com/dot-net-interview-questions-and-answers-for-Fresher http://www.globalguideline.com/interview_questions/Questions.php?sc=Basic_Dot_Net_Programming_Interview_Questions_and_Answers
  • 103. www.hirist.com .NET TOP 100 INTERVIEW QUESTIONS & ANSWERS