Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
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 
.NETisessentiallyaframewor...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Howmanylanguages.NETissupportingnow? 
3 
QUESTION 
W...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Howis.NETabletosupportmultiplelanguages? 
4 
QUESTIO...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
HowdoyouvalidatethecontrolsinanASP.NETpage? 
5 
QUES...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Canthevalidationbedoneintheserverside?Orthiscanbedon...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatareAttributes? 
7 
QUESTION 
Attributesaredeclar...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisWeb.config? 
8 
QUESTION 
InclassicASPallWebsi...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
ExplainwhatrelationshipisbetweenaProcess,Application...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatisaformatter? 
10 
QUESTION 
Aformatterisanobjec...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisDelegation? 
11 
QUESTION 
Adelegateactslikeas...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Writeaquerytofindthetotalnumberofrowsinatable? 
12 
...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Writeaquerytoeliminateduplicaterecordsintheresultsof...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Writeaquerytoinsertarecordintoatable? 
14 
QUESTION ...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Writeaquerytodeletearecordfromatable? 
15 
QUESTION ...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Writeaquerytodisplayarowusingindex? 
16 
QUESTION 
F...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Writeaquerytofetchthehighestrecordinatable,basedonar...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Writeaquerytofetchthefirst3charactersofthefielddesig...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Writeaquerytoconcatenatetwofields,sayDesignationandD...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisthedifferencebetweenUNIONandUNIONALLinSQL? 
20...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Ifthereare4SQLSelectstatementsjoinedusingUnionandUni...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
ExplainthedifferencesbetweenServer-sideandClient-sid...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whattypeofcode(serverorclient)isfoundinaCode-Behindc...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Howtomakesurethatvalueisenteredinanasp:Textboxcontro...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whichpropertyofavalidationcontrolisusedtoassociateit...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
HowwouldyouimplementinheritanceusingVB.NET&C#? 
26 
...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhichmethodisinvokedontheDataAdaptercontroltoloadthe...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Howmanywayscanwemaintainthestateofapage? 
28 
QUESTI...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatistheuseofamulticastdelegate? 
29 
QUESTION 
Amu...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatistheuseofSingletonpattern? 
30 
QUESTION 
ASing...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatisencapsulation? 
31 
QUESTION 
Encapsulationist...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatisadatatype?Howmanytypesofdatatypesaretherein.NE...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
IsStringaReferenceTypeorValueTypein.NET? 
33 
QUESTI...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Canasingle.NETDLLcontainmultipleclasses? 
34 
QUESTI...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisaCompositeControlin.NET? 
35 
QUESTION 
Compos...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatarethenewfeaturesin.NET2.0? 
36 
QUESTION 
Plent...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatarePartialClassesinAsp.Net2.0? 
37 
QUESTION 
In...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisaIL? 
38 
QUESTION 
(IL)IntermediateLanguageis...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisaCTS? 
39 
QUESTION 
CTSdefinesallofthebasicty...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatis"CommonLanguageSpecification"(CLS)? 
40 
QUEST...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatis"CommonLanguageRuntime"(CLR)? 
41 
QUESTION 
C...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisaManagedCode? 
42 
QUESTION 
Managedcoderunsin...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatisanassembly? 
43 
QUESTION 
Anassemblyisacollec...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatarethedifferenttypesofAssembly? 
44 
QUESTION 
T...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisDifferencebetweenNameSpaceandAssembly? 
45 
QU...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisManifest? 
46 
QUESTION 
Assemblymetadataissto...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatisgarbagecollection? 
47QUESTION 
Garbagecollect...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisconceptofBoxingandUnboxing? 
48QUESTION 
Boxin...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
DefineOverriding? 
49 
QUESTION 
Overridingisaconcep...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Canyouusemultipleinheritancein.NET? 
50 
QUESTION 
....
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatareeventsanddelegates? 
51 
QUESTION 
Aneventisa...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatisaconnectionpool? 
52 
QUESTION 
Aconnectionpoo...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatiscodereview? 
53 
QUESTION 
Theprocessofexamini...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisBLOB? 
54 
QUESTION 
ABLOB(binarylargeobject)i...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisaCOMCallableWrapper(CCW)? 
55 
QUESTION 
CCWis...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisaRuntimeCallableWrapper(RCW)? 
56 
QUESTION 
R...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisMSIL? 
57 
QUESTION 
Whenthecodeiscompiled,the...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisJIT? 
58 
QUESTION 
JITisacompilerthatconverts...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisGAC?Whatarethestepstocreateanassemblyandadditt...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatisthecaspol.exetoolusedfor? 
60 
QUESTION 
Theca...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisIlasm.exeusedfor? 
61 
QUESTION 
Ilasm.exeisat...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisIldasm.exeusedfor? 
62 
QUESTION 
Ildasm.exeis...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatistheResGen.exetoolusedfor? 
63 
QUESTION 
ResGe...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatisadigitalsignature? 
64 
QUESTION 
Adigitalsign...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
NametheclassesthatareintroducedintheSystem.Numericsn...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Explainmemory-mappedfiles. 
66 
QUESTION 
Memory-map...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whichmethoddoyouusetoenforcegarbagecollectionin.NET?...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
StatethedifferencesbetweentheDispose()andFinalize()....
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whataretuples? 
69 
QUESTION 
Tupleisafixed-sizecoll...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whichistherootnamespaceforfundamentaltypesin.NETFram...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Definevariableandconstant. 
71 
QUESTION 
Avariablec...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whichstatementisusedtoreplacemultipleif-elsestatemen...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatisanidentifier? 
73 
QUESTION 
Identifiersarenor...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
CanoneDLLfilecontainthecompiledcodeofmorethanone.NET...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisNativeImageGenerator? 
75 
QUESTION 
TheNative...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
NametheMSILDisassemblerutilitythatparsesany.NETFrame...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisthesignificanceoftheStrongNametool? 
77 
QUEST...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Discusstheconceptofstrongnames. 
78 
QUESTION 
Whene...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatisthedifferencebetween.EXEand.DLLfiles? 
79 
QUE...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whichutilityallowsyoutoreferenceanassemblyinanapplic...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
TheAssemblyInfo.csfilestorestheassemblyconfiguration...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatarecodecontracts? 
82 
QUESTION 
Codecontractshe...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatareMergeModuleprojects? 
83 
QUESTION 
MergeModu...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisaServicedcomponent? 
84 
QUESTION 
Aservicedco...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatisaflatfile? 
85 
QUESTION 
Aflatfileisthenamegi...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisanXMLWebservice? 
86 
QUESTION 
XMLWebServicei...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Describethestepstodeployawebservice. 
87 
QUESTION 
...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatisMIME? 
88 
QUESTION 
ThedefinitionofMIMEorMult...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whataremock-ups? 
89 
QUESTION 
Mock-upsareasetofdes...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatislogging? 
90 
QUESTION 
Loggingistheprocessofp...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
What’saWindowsprocessin.NET? 
91 
QUESTION 
WindowsP...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Howtomanagepaginationinapage? 
92 
QUESTION 
Usingpa...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Whatissmartnavigation? 
93 
QUESTION 
Thecursorposit...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
HowdoyoutriggerthePainteventinSystem.Drawing? 
94 
Q...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
HowdoyouassignRGBcolortoaSystem.Drawing.Coloronject?...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
What’saproxyoftheserverobjectin.NETRemoting? 
96 
QU...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
WhatareChannelsin.NETRemoting? 
97 
QUESTION 
Channe...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
What’ssinglecallactivationmodeusedforin.NET? 
98 
QU...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
What’sSingletonactivationmodein.NET? 
99 
QUESTION 
...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Howdoyoudefinetheleaseoftheobjectin.NET? 
100 
QUEST...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Canyouconfigurea.NETRemotingobjectviaXMLfile? 
101 
...
For the hottest .NET jobs, please visit www.hirist.com 
hirist 
.com 
Resources 
102 
http://www.slideshare.net/vineetkuma...
www.hirist.com 
.NET 
TOP 100 
INTERVIEW QUESTIONS & ANSWERS
Upcoming SlideShare
Loading in …5
×

Top 100 .NET Interview Questions and Answers

29,316 views

Published on

Are you looking for the Top 100 .NET Interview Questions and Answers in 2014? Based on the most popular .NET technical questions asked in interviews, we've compiled a list of the 100 most popular .NET interview questions in 2014.

If you download this.net questions pdf and brush up your concepts, you'll have no problem in cracking a .NET technical interview. The 100 questions contained in this pdf and doc are some of the most popular ASP.NET interview questions asked by major companies like TCS, HCL, Cognizant, Microsoft etc

This list includes ASP.NET interview questions in the below categories:

.net interview questions
.NET Interview Questions and Answers
.net interview questions and answers for freshers
.net interview questions and answers for experienced
asp.net interview questions
.net interview questions and answers pdf
.net interview questions with answers
.net interview questions pdf
.net interview questions asked in tcs
.net interview questions asked in hcl
.net interview questions asked in microsoft
top 10 .net interview questions
top 10 asp net interview questions
top 100 .net interview questions
top 100 .net interview questions and answers
Top 50 ASP.Net interview questions with answers
Top 100 .Net Interview Questions and Answer Document
100 .NET Interview Questions and Answers
Basic .NET and ASP.NET interview questions

Published in: Engineering
  • DOWNLOAD FULL BOOKS, INTO AVAILABLE FORMAT ......................................................................................................................... ......................................................................................................................... 1.DOWNLOAD FULL. PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... 1.DOWNLOAD FULL. EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... 1.DOWNLOAD FULL. doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... 1.DOWNLOAD FULL. PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... 1.DOWNLOAD FULL. EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... 1.DOWNLOAD FULL. doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD FULL BOOKS, INTO AVAILABLE FORMAT ......................................................................................................................... ......................................................................................................................... 1.DOWNLOAD FULL. PDF EBOOK here { https://tinyurl.com/yxufevpm } ......................................................................................................................... 1.DOWNLOAD FULL. EPUB Ebook here { https://tinyurl.com/yxufevpm } ......................................................................................................................... 1.DOWNLOAD FULL. doc Ebook here { https://tinyurl.com/yxufevpm } ......................................................................................................................... 1.DOWNLOAD FULL. PDF EBOOK here { https://tinyurl.com/yxufevpm } ......................................................................................................................... 1.DOWNLOAD FULL. EPUB Ebook here { https://tinyurl.com/yxufevpm } ......................................................................................................................... 1.DOWNLOAD FULL. doc Ebook here { https://tinyurl.com/yxufevpm } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD FULL BOOKS, INTO AVAILABLE FORMAT ......................................................................................................................... ......................................................................................................................... 1.DOWNLOAD FULL. PDF EBOOK here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL. EPUB Ebook here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL. doc Ebook here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL. PDF EBOOK here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL. EPUB Ebook here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL. doc Ebook here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD FULL BOOKS INTO AVAILABLE FORMAT ......................................................................................................................... ......................................................................................................................... 1.DOWNLOAD FULL PDF EBOOK here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL EPUB Ebook here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL doc Ebook here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL PDF EBOOK here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL EPUB Ebook here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL doc Ebook here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD FULL BOOKS INTO AVAILABLE FORMAT ......................................................................................................................... ......................................................................................................................... 1.DOWNLOAD FULL PDF EBOOK here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL EPUB Ebook here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL doc Ebook here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL PDF EBOOK here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL EPUB Ebook here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL doc Ebook here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Top 100 .NET Interview Questions and Answers

  1. 1. hirist .com www.hirist.com .NET TOP 100 INTERVIEW QUESTIONS & ANSWERS
  2. 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. 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. 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. 5. For the hottest .NET jobs, please visit www.hirist.com hirist .com HowdoyouvalidatethecontrolsinanASP.NETpage? 5 QUESTION Usingspecialvalidationcontrolsthataremeantforthis.WehaveRangeValidator,EmailValidator. ANSWER QUESTION 4
  6. 6. For the hottest .NET jobs, please visit www.hirist.com hirist .com Canthevalidationbedoneintheserverside?OrthiscanbedoneonlyintheClientside? 6 QUESTION Clientsideisdonebydefault.Serversidevalidationisalsopossible.Wecanswitchofftheclientsideandserversidecanbedone. ANSWER QUESTION 5
  7. 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. 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. 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. 10. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatisaformatter? 10 QUESTION Aformatterisanobjectthatisresponsibleforencodingandserializingdataintomessagesononeend,anddeserializinganddecodingmessagesintodataontheotherend. ANSWER QUESTION 9
  11. 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. 12. For the hottest .NET jobs, please visit www.hirist.com hirist .com Writeaquerytofindthetotalnumberofrowsinatable? 12 QUESTION Selectcount(*)fromt_employee; ANSWER QUESTION 11
  13. 13. For the hottest .NET jobs, please visit www.hirist.com hirist .com Writeaquerytoeliminateduplicaterecordsintheresultsofatable? 13 QUESTION Selectdistinct*fromt_employee; ANSWER QUESTION 12
  14. 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. 15. For the hottest .NET jobs, please visit www.hirist.com hirist .com Writeaquerytodeletearecordfromatable? 15 QUESTION deletefromt_employeewhereid='empid35'; ANSWER QUESTION 14
  16. 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. 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. 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. 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. 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. 21. For the hottest .NET jobs, please visit www.hirist.com hirist .com Ifthereare4SQLSelectstatementsjoinedusingUnionandUnionAll,howmanytimesshouldaUnionbeusedtoremoveduplicaterows? 21 QUESTION Onetime. ANSWER QUESTION 20
  22. 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. 23. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whattypeofcode(serverorclient)isfoundinaCode-Behindclass? 23 QUESTION Serversidecode. ANSWER QUESTION 22
  24. 24. For the hottest .NET jobs, please visit www.hirist.com hirist .com Howtomakesurethatvalueisenteredinanasp:Textboxcontrol? 24 QUESTION UseaRequiredFieldValidatorcontrol. ANSWER QUESTION 23
  25. 25. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whichpropertyofavalidationcontrolisusedtoassociateitwithaservercontrolonthatpage? 25 QUESTION ControlToValidateproperty. ANSWER QUESTION 24
  26. 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. 27. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhichmethodisinvokedontheDataAdaptercontroltoloadthegenerateddatasetwithdata? 27 QUESTION Fill()method. ANSWER QUESTION 26
  28. 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. 29. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatistheuseofamulticastdelegate? 29 QUESTION Amulticastdelegatemaybeusedtocallmorethanonemethod. ANSWER QUESTION 28
  30. 30. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatistheuseofSingletonpattern? 30 QUESTION ASingletonpattern.isusedtomakesurethatonlyoneinstanceofaclassexists. ANSWER QUESTION 29
  31. 31. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatisencapsulation? 31 QUESTION EncapsulationistheOOPsconceptofbindingtheattributesandbehaviorsinaclass,hidingtheimplementationoftheclassandexposingthefunctionality. ANSWER QUESTION 30
  32. 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. 33. For the hottest .NET jobs, please visit www.hirist.com hirist .com IsStringaReferenceTypeorValueTypein.NET? 33 QUESTION StringisaReferenceTypeobject. ANSWER QUESTION 32
  34. 34. For the hottest .NET jobs, please visit www.hirist.com hirist .com Canasingle.NETDLLcontainmultipleclasses? 34 QUESTION Yes,asingle.NETDLLmaycontainanynumberofclasseswithinit. ANSWER QUESTION 33
  35. 35. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisaCompositeControlin.NET? 35 QUESTION CompositeControlisanabstractclassin.NETthatisinheritedbythosewebcontrolsthatcontainchildcontrolswithinthem. ANSWER QUESTION 34
  36. 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. 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. 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. 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. 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. 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. 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. 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. 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. 45. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisDifferencebetweenNameSpaceandAssembly? 45 QUESTION Followingarethedifferencesbetweennamespaceandassembly: Assemblyisphysicalgroupingoflogicalunits.Namespacelogicallygroupsclasses. Namespacecanspanmultipleassembly. ANSWER QUESTION 44
  46. 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. 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. 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. 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. 50. For the hottest .NET jobs, please visit www.hirist.com hirist .com Canyouusemultipleinheritancein.NET? 50 QUESTION .NETsupportsonlysingleinheritance.Howeverthepurposeisaccomplishedusingmultipleinterfaces. ANSWER QUESTION 49
  51. 51. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatareeventsanddelegates? 51 QUESTION Aneventisamessagesentbyacontroltonotifytheoccurrenceofanaction.Howeveritisnotknownwhichobjectreceivestheevent.Forthisreason,.NETprovidesaspecialtypecalledDelegatewhichactsasanintermediarybetweenthesenderobjectandreceiverobject. ANSWER QUESTION 51
  52. 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. 53. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatiscodereview? 53 QUESTION Theprocessofexaminingthesourcecodegenerallythroughapeer,toverifyitagainstbestpractices. ANSWER QUESTION 52
  54. 54. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisBLOB? 54 QUESTION ABLOB(binarylargeobject)isalargeitemsuchasanimageoranexerepresentedinbinaryform. ANSWER QUESTION 53
  55. 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. 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. 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. 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. 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. 60. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatisthecaspol.exetoolusedfor? 60 QUESTION Thecaspoltoolgrantsandmodifiespermissionstocodegroupsattheuserpolicy,machinepolicy,andenterprisepolicylevels. ANSWER QUESTION 59
  61. 61. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisIlasm.exeusedfor? 61 QUESTION Ilasm.exeisatoolthatgeneratesPEfilesfromMSILcode.YoucanruntheresultingexecutabletodeterminewhethertheMSILcodeperformsasexpected. ANSWER QUESTION 60
  62. 62. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisIldasm.exeusedfor? 62 QUESTION Ildasm.exeisatoolthattakesaPEfilecontainingtheMSILcodeasaparameterandcreatesatextfilethatcontainsmanagedcode. ANSWER QUESTION 61
  63. 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. 64. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatisadigitalsignature? 64 QUESTION Adigitalsignatureisanelectronicsignatureusedtoverify/guaranteetheidentityoftheindividualwhoissendingthemessage. ANSWER QUESTION 63
  65. 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. 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. 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. 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. 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. 70. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whichistherootnamespaceforfundamentaltypesin.NETFramework? 70 QUESTION System.Objectistherootnamespaceforfundamentaltypesin.NETFramework. ANSWER QUESTION 69
  71. 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. 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. 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. 74. For the hottest .NET jobs, please visit www.hirist.com hirist .com CanoneDLLfilecontainthecompiledcodeofmorethanone.NETlanguage? 74 QUESTION No,aDLLfilecancontainthecompiledcodeofonlyoneprogramminglanguage. ANSWER QUESTION 73
  75. 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. 76. For the hottest .NET jobs, please visit www.hirist.com hirist .com NametheMSILDisassemblerutilitythatparsesany.NETFrameworkassemblyandshowstheinformationinhumanreadableformat 76 QUESTION TheIldasm.exeutility. ANSWER QUESTION 75
  77. 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. 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. 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. 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. 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. 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. 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. 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. 85. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatisaflatfile? 85 QUESTION Aflatfileisthenamegiventotext,whichcanbereadorwrittenonlysequentially. ANSWER QUESTION 84
  86. 86. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatisanXMLWebservice? 86 QUESTION XMLWebServiceisaunitofcodethatcanbeaccessedindependentofplatformsandsystems.TheyareusedtointerchangedatabetweendifferentsystemsindifferentmachinesforinteroperabilityusingHTTPprotocols. RequestsaremadeandresponsesarereturnedintheformofXMLasXMLislanguageandplatformindependent. ANSWER QUESTION 85
  87. 87. For the hottest .NET jobs, please visit www.hirist.com hirist .com Describethestepstodeployawebservice. 87 QUESTION a.UsingxcopyorPublishwizardcopythefiletothedestinationserver. b.MakethedestinationdirectoryavirtualdirectoryinIIS. ANSWER QUESTION 86
  88. 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. 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. 90. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatislogging? 90 QUESTION Loggingistheprocessofpersistinginformationaboutthestatusofanapplication. ANSWER QUESTION 89
  91. 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. 92. For the hottest .NET jobs, please visit www.hirist.com hirist .com Howtomanagepaginationinapage? 92 QUESTION UsingpaginationoptioninDataGridcontrol.Wehavetosetthenumberofrecordsforapage,thenittakescareofpaginationbyitself. ANSWER QUESTION 91
  93. 93. For the hottest .NET jobs, please visit www.hirist.com hirist .com Whatissmartnavigation? 93 QUESTION Thecursorpositionismaintainedwhenthepagegetsrefreshedduetotheserversidevalidationandthepagegetsrefreshed. ANSWER QUESTION 92
  94. 94. For the hottest .NET jobs, please visit www.hirist.com hirist .com HowdoyoutriggerthePainteventinSystem.Drawing? 94 QUESTION Invalidatethecurrentform,theOSwilltakecareofrepainting.TheUpdatemethodforcestherepaint. ANSWER QUESTION 93
  95. 95. For the hottest .NET jobs, please visit www.hirist.com hirist .com HowdoyouassignRGBcolortoaSystem.Drawing.Coloronject? 95 QUESTION CallthestaticmethodFromArgbofthisclassandpassittheRGBvaluesin.NET ANSWER QUESTION 94
  96. 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. 97. For the hottest .NET jobs, please visit www.hirist.com hirist .com WhatareChannelsin.NETRemoting? 97 QUESTION Channelsrepresenttheobjectsthattransfertheotherserializedobjectsfromoneapplicationdomaintoanotherandfromonecomputertoanother,aswellasoneprocesstoanotheronthesamebox.AChannelmustexistbeforeanobjectcanbetransferred. ANSWER QUESTION 96
  98. 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. 99. For the hottest .NET jobs, please visit www.hirist.com hirist .com What’sSingletonactivationmodein.NET? 99 QUESTION ASingleobjectisinstantiatedofthenumberofclientsaccessingit.Lifetimeofthisobjectisdeterminedbylifetimelease. ANSWER QUESTION 98
  100. 100. For the hottest .NET jobs, please visit www.hirist.com hirist .com Howdoyoudefinetheleaseoftheobjectin.NET? 100 QUESTION ByImplementingIleaseinterfacewhenwritingtheclasscodein.NET ANSWER QUESTION 99
  101. 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. 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. 103. www.hirist.com .NET TOP 100 INTERVIEW QUESTIONS & ANSWERS

×