NIIT_MMS1期末试卷2015春A

NIIT_MMS1期末试卷2015春A

ID:38262129

大小:82.26 KB

页数:5页

时间:2019-06-07

NIIT_MMS1期末试卷2015春A_第1页
NIIT_MMS1期末试卷2015春A_第2页
NIIT_MMS1期末试卷2015春A_第3页
NIIT_MMS1期末试卷2015春A_第4页
NIIT_MMS1期末试卷2015春A_第5页
资源描述:

《NIIT_MMS1期末试卷2015春A》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、NIIT-1(C#)课程期末A试卷考试形式闭卷考试用时2h,本试卷共5页,另请加答题纸0张,草稿纸1张题号一二三四五六七八九十总分合分人得分一、单项选择题(每小题2分,共30分)1.Whichofthefollowingoptionsiscorrectwayofdeclaringavariable?A.rectangle.areaB.no_of_countsC.9_rankD.private2.Whichofthefollowingoptionsisnotatechniquetoimplementpolymorphism?A.MethodoverloadingB.O

2、peratoroverloadingC.MethodoverridingD.Informationhiding3.Whichofthefollowingoptionsarenotthepossiblestatesofamobilephone?A.OffB.RingC.VibrateD.Color4.Identifytheoutputofthefollowingcodesnippet:Console.WriteLine(“DrbbTomWilkins”);A.DrbbTomWilkinsB.DrTomWilkinsC.TomWilkinsD.DrbbTomW

3、ilkins5.Ifxis-10andyis3,thenpredictthevalueofvariablexafterexecutionofthefollowingstatement:x%=y;A.-3B.3C.-1D.16.Whichofthefollowingstatementsisthecorrectsyntaxofdeclaringacharacterarray?A.char[]ch;B.charch[];C.char{}ch;D.charch{};7.WhichofthefollowingmethodsoftheArrayclasswillreturnth

4、ememberofitemsinanarray?A.GetLength()B.GetValue()C.Indexof()D.Sort()8.Considerthefollowingcodesnippet:classSucces{Publicvoidcalculate(){…}}HowwillyouderiveaclassnamedRewardfromtheprecedingclass?A.classReward:SuccessB.classSuccess:RewardC.classReward::SuccessD.classSuccess::Reward9.Youw

5、anttocreateaclassnamedArmythatconsistsofvariousattributesandmethods.Youwanttoensurethatthisclassshouldnotbeinheritedbyanyotherclass.A.BydeclaringtheclassasstaticB.BydeclaringtheclassasabstractC.BydeclaringtheclassassealedD.Bydeclaringtheclassanditsattributesandmethodsasabstract10.Which

6、ofthefollowingclasseswillyouusetowritebinarydatatoastream?A.StringWriterclassB.FileStreamclassC.StreamWriterclassD.BinaryWriterclass11.Whichofthefollowingstatessaysthatathreadisrunnable?A.SleepingB.SuspendedC.BlockedD.Waiting12.WhichofthefollowingstatementsisNOTtrueaboutimplementingpol

7、ymorphism?A.Youcanimplementpolymorphismbyimplementinganinterface.B.Youcanalsoachievepolymorphismbyusinginheritance.C.Youcanimplementpolymorphismbyusingencapsulation.D.Youcanimplementpolymorphismbyusingabstractclasses.13.Considerthefollowingstatements.StatementA:Staticvariablesretaint

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。