C# Interview QuestionsWord文件下载.docx

上传人:b****1 文档编号:4408644 上传时间:2023-05-03 格式:DOCX 页数:14 大小:22.79KB
下载 相关 举报
C# Interview QuestionsWord文件下载.docx_第1页
第1页 / 共14页
C# Interview QuestionsWord文件下载.docx_第2页
第2页 / 共14页
C# Interview QuestionsWord文件下载.docx_第3页
第3页 / 共14页
C# Interview QuestionsWord文件下载.docx_第4页
第4页 / 共14页
C# Interview QuestionsWord文件下载.docx_第5页
第5页 / 共14页
C# Interview QuestionsWord文件下载.docx_第6页
第6页 / 共14页
C# Interview QuestionsWord文件下载.docx_第7页
第7页 / 共14页
C# Interview QuestionsWord文件下载.docx_第8页
第8页 / 共14页
C# Interview QuestionsWord文件下载.docx_第9页
第9页 / 共14页
C# Interview QuestionsWord文件下载.docx_第10页
第10页 / 共14页
C# Interview QuestionsWord文件下载.docx_第11页
第11页 / 共14页
C# Interview QuestionsWord文件下载.docx_第12页
第12页 / 共14页
C# Interview QuestionsWord文件下载.docx_第13页
第13页 / 共14页
C# Interview QuestionsWord文件下载.docx_第14页
第14页 / 共14页
亲,该文档总共14页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

C# Interview QuestionsWord文件下载.docx

《C# Interview QuestionsWord文件下载.docx》由会员分享,可在线阅读,更多相关《C# Interview QuestionsWord文件下载.docx(14页珍藏版)》请在冰点文库上搜索。

C# Interview QuestionsWord文件下载.docx

clientside.thereisnoneedtogotovalidateuserinput.Ifitrelatestodatabasevalidationweneedtovalidateatserverside.

4.Whatdoesthe"

EnableViewState"

propertydo?

WhywouldIwantitonoroff?

ITkeepsthedataofthecontrolduringpostbacks.

ifweturnoffthevaluesshouldnotpopulateduringserverroundtrip.

5.WhatisthedifferencebetweenServer.TransferandResponse.Redirect?

WhywouldIchooseoneovertheother?

Server.Trnasferwillpreventroundtrip.itwillredirectpageswhichorinthesamedirectory.NOwaytopassthequerystrings.Thruhttpcontextwecanabletogetthepreviouspagecontrolvalues.

Response.Redirect:

Thereisaroundtriptoprocesstherequest.Wecanredirecttoanypageexternal/internalotherthanaspx.Wecanpassthequerystringthruwhichwecanmanagesessions.

6.Canyougiveanexampleofwhenitwouldbeappropriatetouseawebserviceasopposedtoanon-serviced.NETcomponent

WebservicesarebestsuiteforHetrogeniousenvironment.

RemotingisbestsuiteforHomogeniousenvironment.ThesystemsthatunderCLR.

7.Let'

ssayIhaveanexistingapplicationwrittenusingVisualStudio6(VB6,InterDev6)andthisapplicationutilizesWindows2000COM+transactionservices.Howwouldyouapproachmigratingthisapplicationto.NET

WeneedtohaveWrappertocommunicateCOMcomponentsin.net.andvisversa

CCW:

ComCallablewrapper.

RCW:

RUNtimecallablewrapper.

8.CanyouexplainthedifferencebetweenanADO.NETDatasetandanADORecordset?

\

DIsconnectedarchitechure.Maintainacerelationschemas.MUtilpletablegrouping.

Connectedone.

9.CanyougiveanexampleofwhatmightbebestsuitedtoplaceintheApplication_StartandSession_Startsubroutines?

APplication_startneedforglobalvariablewhichareavailableovertheapplication.

Sesssion_Start:

logindependent(userdependent)

10.IfI'

mdevelopinganapplicationthatmustaccomodatemultiplesecuritylevelsthoughsecureloginandmyASP.NETwebappplicationisspannedacrossthreeweb-servers(usinground-robbinloadbalancing)whatwouldbethebestapproachtomaintainlogin-instatefortheusers?

DatabaseSupport.

orThrustateservice.

11.WhatareASP.NETWebForms?

HowisthistechnologydifferentthanwhatisavailablethoughASP(1.0-3.0)?

ASP.Interprepter..usethescriptengine.

ASP.NetCompiled.

12.HowdoesVB.NET/C#achievepolymorphism?

Functionoverloading.

Operatoroverloading.

13.Canyouexplainwhatinheritanceisandanexampleofwhenyoumightuseit?

Heredity.

Usetheexistingfunctionalityalongwithitsownproperities.

14.HowwouldyouimplementinheritanceusingVB.NET/C#?

DerivedClass:

Basecalss

VB.NEt:

DerivedClassInheritsBaseclass

15.Whatsanassembly

ABasicunitofexecutablecode>

Whichcontains:

Manifest-Metadata

versioning,Calture,IL,Reference

16.Describethedifferencebetweeninlineandcodebehind-whichisbestinalooselycoupledsolutionTightlycoupled-INLINE

inlinefunctionbindatcompiletimecanwriteinaspxpagewithin<

%%>

.

17.Explainwhatadiffgramis,andagooduseforone

isanxmlgrammer.Ittalksaboutstateofnodeinxmlfile.

18.WherewouldyouuseaniHTTPModule,andwhatarethelimitationsofanyapproachyoumighttakeinimplementingone

PreprocessingbeforegoingtoIIS.

19.Whatarethedisadvantagesofviewstate/whatarethebenefits

ITcanbehacked.pagesizeisheavy.

20.HowwouldyougetASP.NETrunninginApachewebservers-whywouldyouevendothis?

----InstallMod_AspDotNet

AddattheendofC:

\ProgramFiles\ApacheGroup\Apache2\conf\httpd.confthefollowinglines

21.WhatsMSIL,andwhyshouldmydevelopersneedanappreciationofitifatall?

MicrosoftIntermediatelanguage.whichistheoutputforallthe.netsupportedlanguagesaftercompilationwillproduce.

Appreciationforcrosslanguagesupport.

22.InwhatorderdotheeventsofanASPXpageexecute.Asadeveloperisitimportanttounderstandtheseevents?

INIT,PageLoad,Prerender,UNload.

23.WhichmethoddoyouinvokeontheDataAdaptercontroltoloadyourgenerateddatasetwithdata?

Fill()

24.CanyoueditdataintheRepeatercontrol?

NO

25.Whichtemplatemustyouprovide,inordertodisplaydatainaRepeatercontrol?

ITemtemplate

26.HowcanyouprovideanalternatingcolorschemeinaRepeatercontrol?

AlternateItemTemplate

27.Whatpropertymustyouset,andwhatmethodmustyoucallinyourcode,inordertobindthedatafromsomedatasourcetotheRepeatercontrol?

Datasource,

DataBind

28.WhatbaseclassdoallWebFormsinheritfrom?

System.Web.UI.Page

29.Whatmethoddoyouusetoexplicitlykillauserssession?

abondon()

30.Howdoyouturnoffcookiesforonepageinyoursite?

disablecookies.

31.Whichtwopropertiesareoneveryvalidationcontrol?

controltovalidate,errormessage

32.Whattagsdoyouneedtoaddwithintheasp:

datagridtagstobindcolumnsmanually?

autogeneratedcolumnsissettofalse

33.Howdoyoucreateapermanentcookie?

Cooke=newcookie().

cooke.adddate.

34.WhattagdoyouusetoaddahyperlinkcolumntotheDataGrid?

hyperlinkcolumn

35.Whichmethoddoyouusetoredirecttheusertoanotherpagewithoutperformingaroundtriptotheclient?

Server.Transfer

36.WhatisthetransportprotocolyouusetocallaWebserviceSOAP

http

37.TrueorFalse:

AWebservicecanonlybewrittenin.NET

false

38.WhatdoesWSDLstandfor?

webservicediscriptionlanguage.itisusedtogenerateforproxy(serverobject)

39.WhatpropertydoyouhavetosettotellthegridwhichpagetogotowhenusingthePagerobject?

PageIndex.

40.WhereontheInternetwouldyoulookforWebservices?

UDDI

41.Whattagsdoyouneedtoaddwithintheasp:

datagridtagstobindcolumnsmanually.

Autogeneratecolumns

42.WhichpropertyonaComboBoxdoyousetwithacolumnname,priortosettingtheDataSource,todisplaydatainthecombobox?

datatext

datavalue

43.Howisapropertydesignatedasread-only?

get

44.Whichcontrolwouldyouuseifyouneededtomakesurethevaluesintwodifferentcontrolsmatched?

comparefiledvalidator

45.TrueorFalse:

TotestaWebserviceyoumustcreateawindowsapplicationorWebapplicationtoconsumethisservice?

no

46.Howmanyclassescanasingle.NETDLLcontain?

asmanyasuwant..

 

47.Whatisserialization,howitworksin.NET?

TheprimarypurposeofXMLserializationinthe.NETFrameworkistoenabletheconversionofXMLdocumentsandstreamstocommonlanguageruntimeobjectsandviceversa.SerializationofXMLtocommonlanguageruntimeobjectsenablesonetoconvertXMLdocumentsintoaformwheretheyareeasiertoprocessusingconventionalprogramminglanguages.Ontheotherhand,serializationofobjectstoXMLfacilitatespersistingortransportingthestateofsuchobjectsinanopen,standardscompliantandplatformagnosticmanner.

48.HowmanyarraytypesdoesC#provide?

Juggedarray,tablearray,…

GeneralQuestions

1.DoesC#supportmultiple-inheritance?

No. 

2.Whoisaprotectedclass-levelvariableavailableto?

Itisavailabletoanysub-class(aclassinheritingthisclass).

3.Areprivateclass-levelvariablesinherited?

Yes,buttheyarenotaccessible. 

Althoughtheyarenotvisibleoraccessibleviatheclassinterface,theyareinherited. 

4.Describetheaccessibilitymodifier“protectedinternal”.

Itisavailabletoclassesthatarewithinthesameassemblyandderivedfromthespecified 

baseclass. 

5.What’sthetop.NETclassthateverythingisderivedfrom?

System.Object. 

6.Whatdoesthetermimmutablemean?

Thedatavaluemaynotbechanged. 

Note:

Thevariablevaluemaybechanged,buttheoriginalimmutabledatavaluewasdiscardedandanewdatavaluewascreatedinmemory. 

7.What’sthedifferencebetweenSystem.StringandSystem.Text.StringBuilderclasses?

System.Stringisimmutable. 

System.StringBuilderwasdesignedwiththepurposeofhavingamutablestringwhereavarietyofoperationscanbeperformed. 

8.What’stheadvantageofusingSystem.Text.StringBuilderoverSystem.String?

StringBuilderismoreefficientincaseswherethereisalargeamountofstringmanipulation. 

Stringsareimmutable,soeachtimeastringischanged, 

anewinstanceinmemoryiscreated. 

9.CanyoustoremultipledatatypesinSystem.Array?

10.What’sthedifferencebetweentheSystem.Array.CopyTo()andSystem.Array.Clone()?

TheClone()methodreturnsanewarray(ashallowcopy)objectcontainingalltheelementsintheoriginalarray. 

TheCopyTo()methodcopiestheelementsintoanotherexistingarray. 

Bothperformashallowcopy. 

Ashallowcopymeansthecontents(eacharrayeleme

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 工程科技 > 能源化工

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2