NIIT1终极资料小学教育_第1页
NIIT1终极资料小学教育_第2页
NIIT1终极资料小学教育_第3页
NIIT1终极资料小学教育_第4页
NIIT1终极资料小学教育_第5页
已阅读5页,还剩2页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1/1NIIT1终极资料-小学教育

1.Whichofthefollowingisnotanapplication(应用程序)software?________A)MSVisualStudioB)LinuxC)PhotoShopD)MSOffice2.Whichofthefollowingisaninputdevice(输入设备)?______

A)PrinterB)MicrophoneC)SpeakerD)VDU(图像显示部件)

3.Whichmouseissensitivetopressureandmotion?_____

A)WirelessB)LightPenMouseC)TouchPadMouseD)TrackballMouse4.WhichofthefollowingWebBrowerrequiredverylittleharddiskspace?A)InternetExplorerB)NetscapeNavigatorC)OperaD)Mozilla

5.Whichisadifferencebetweenanalgorithm(算法)andaflowchart(流程图)?_____A)AflowchartisapartofanalgorithmB)Bothcannotbecompared

C)Algorithmisthegraphicalrepresentationofaflowchart

D)Flowchartisagraphicalrepresentation(图形化表示形式)ofaprogram6.Convert(转换)isa?

A)NamespaceB)ClassC)Function(函数)D)Escape(逸出)sequence(数组)character

7.Inthestatement(语句),usingSystem,Systemisa?

A)Namespace(命名空间)B)ClassC)ObjectD)Keyword

8.ifanarrayisdeclaredas,intarr=newint[5],thetotalnumberofelementsinthearrayis?

A)5B)2C)1D)0

9.whichofthefollowingisanexampleoffunctionoverloading?A)voidfuncharfunB)voidfunvoidfun1C)voidfun(int)voidfun(char)

D)voidfun1(int,int)voidfun2(char,char)

10.whichofthefollowingistrueaboutabstract(抽象)classes?A)AnabstractclassdefinespropertiescommontotheclassesderivedfromitB)AnabstractclasscanbedeclaredasfinalC)Abstractclassescannotbeextended

D)Classesdeclaredusingtheabstractkeywordcanbeinstantiated

11.IdentifytheSQLstatement,whichwillretrieve(使恢复)alistofEmployeesfrom

thetableEmployeeswiththecolumnheadingforemp_idasEmployeeIdentityNumber.A)SELECTDISTINCTemp_id(EmployeeIdentityNumber)fromEmployeesB)SELECTemp_idLIKEEmployeeIdentityNumberfromEmployeesC)SELECTemp_idAS[EmployeeIdentityNumber]fromEmployeesD)SELECTemp_id=EmployeeIdentityNumberfromEmployees

12.WhichofthefollowingpropertiesdoesatransactionNOTposses?A)AtomicityB)ConsistencyC)IsolationD)Separation

13.Whichdatabase(数据库)objectwillyoucreatetoenforce(实施)businessrule?

A)StoredProcedures(存储程序)B)Views(视图)C)TriggersD)Indexes(索引)

14.Whichdatefunctionwouldyouusetoextract(引出)aspecified(指定的)part,suchasday,month,oryearfromthespecifieddate?A)DATEPARTB)DATEADDC)DATEDIFFD)DATENAME

15.Inwhichsituationyoumustcreateaclusteredindex?A)DatabaseusesdecisionsupportsystemB)Columnstoressequentialdata

C)QuerycoversallthecolumnsinatableD)QuerycontainsaWHEREclause

16.WhichofthefollowingisnotaDBMS?_____

A)OracleB)LinuxC)MicrosoftSQLServerD)Sybase

17.”ColumnPriceshouldbegreaterthan$1000andlowerthan$2000”.Thiskindofconstraintbelongsto_________functionofDBMS.

A)restoreB)synchronousC)securityD)integrityconstraint18.WhatistherightresultafterexecutionofSQLstatements“Selectdateadd(dd,12,'2023-12-10')”?____

A)2023-12-22B)2023-12-10C)2023-12-12D)2023-6-1019.WhichofthefollowingSQLstatementscanbeusedtocreatenewdatabaseobjects?____

A)DDLB)DMLC)DCLD)DQL

20.Whichofthefollowingoperatorsisusedtodisplayasetofrecords(记录)thatcontainvalueswithinarangeinacolumn(列)?______

A)ORB)>=C)BETWEEN..ANDD)%

21.Whichofthefollowingwildcard(字符)representsasinglecharacter?_____A)%B)_C)[]D)[^]

22.Whichofthefollowingisnotavalidtypeoftrigger?______A)InsertTriggerB)UpdateTriggerC)DeleteTriggerD)BeforeTrigger23.The?complierisusedforC#

A)ccB)cscC)c++D)csn24.intNumber1=0;intNumber2=0;

intArray1=newint{2,3,4,5,6,7,8,9,10,11};foreach(intCtrinArray1){if(Ctr%2==1)

Number1++;else

{Number2++;

Console.Write(Ctr);}}

Whatistheoutputofthecode?

A)357911B)246810C)CtrD)234567891011

25.Whichofthefollowinglocksenableotherstoviewthedatabeingmodified(修改的)bythecurrenttransaction?A)sharedlockB)exclusivelockC)updatelockD)intentlock

26.WhichofthefollowingcomponentsofSQLServer2023isusedtocopyanddistribute(区分)dataanddatabaseobjectsfromonedatabaseservertoanother?A)ReplicationB)ServicebrokerC)Full-textsearchD)Notificationservices

二、阅读程序写结果(每小题5分,共10分)1.

usingSystem;

usingSystem.Collections.Generic;usingSystem.Text;namespaceMultiArray{

classMultiArryExample

{staticvoidMain(stringargs){intn=0;intsum=0;introwsum;

int[,]mArray=newint[2,4]{{1,2,3,4},{5,6,7,8}};for(introw=0;row0)n++;

Console.Write(\rowsum=rowsum+mArray[row,col];}

sum=sum+rowsum;

Console.Write(\Console.WriteLine;}

Console.WriteLine(\

Console.WriteLine(\Console.ReadLine;}}}2.

usingSystem;publicclassA

{

publicvirtualvoidFun1(inti){

Console.WriteLine(i);}

publicvoidFun2(Aa){

a.Fun1(1);Fun1(5);}}

publicclassB:A{

publicoverridevoidFun1(inti){

base.Fun1(i+1);}

publicstaticvoidMain{

Bb=newB;Aa=newA;a.Fun2(b);b.Fun2(a);

Console.ReadLine;}}

//b.Fun1(1);2//Fun1(5);5//a.Fun1(1)1

//Fun1(5)->base.Fun1(5+1)6

三、程序填空(每空2分,共10分)

/*ThefunctionoffollowingprogramisthatCalculatethefactorialofthenumberenteredbyauser.(Thelimitofusersinputshouldbe1-20)*/usingSystem;classFactorial{

staticlongFac1;

publicstaticboolFac(longn,outlonganswer){

longk;

boolok=true;

if()//userinputshouldbe1-20{ok=false;}else

{

;for(k=2;k<=n;++k){

;}}

;returnok

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论