欢迎来到天天文库
浏览记录
ID:38262129
大小:82.26 KB
页数:5页
时间:2019-06-07
《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
此文档下载收益归作者所有