您好,欢迎访问三七文档
当前位置:首页 > 电子/通信 > 综合/其它 > VFP程序设计实践教程习题部分参考答案(重大出版社)
2.1.2习题一、选择题1.(A)2.(C)3.(A)4.(B)5.(D)6.(D)7.(C)8.(C)9.(C)10.(A)11.(C)12.(C)13.(B)14.(A)15.(A)16.(A)17.(D)18.(A)19.(C)20.(C)21.(D)22.(B)23.(C)24.(C)25.(D)26.(B)27.(A)28.(D)29.(A)30.(D)31.(A)32.(C)33.(D)34.(B)35.(C)36.(D)37.(D)38.(D)二、填空题1.重复值2.一对多和多对多3.数据、硬件、软件和用户4.记录,字段5.层次、网状和关系6.选择7.人工管理、文件系统管理、数据库管理8.关系9.元组,属性10.关系11.投影12.二维表13.改变14.数据操纵15.数据结构化,关系,文件16.数据库技术与面向对象程序设计17.工具,选项18.菜单、工具栏、命令和程序19..PJX20.文档21.从项目中移除,删除三、判断题(正确打√,错误打×)1.(×)2.(×)3.(×)4.(×)5.(×)2.2.2习题一、单项选择题1.(B)2.(B)3.(C)4.(B)5.(D)6.(D)7.(D)8.(C)9.(C)10.(D)11.(B)12.(C)13.(C)14.(B)15.(B)16.(D)17.(C)18.(B)19.(C)20.(A)21.(B)22.(D)23.(B)24.(D)25.(A)26.(D)27.(C)28.(B)29.(B)30.(B)31.(D)32.(D)33.(D)34.(B)35.(A)36.(B)37.(D)38.(B)39.(C)40.(C)41.(B)42.(A)43.(D)44.(A)45.(C)46.(B)47.(B)48.(A)49.(B)50.(C)51.(D)52.(C)53.(B)54.(D)55.(C)56.(D)57.(C)58.(B)59.(C)60.(C)61.(A)62.(A)63.(D)64.(A)65.(D)66.(D)67.(B)68.(B)69.(D)70.(D)71.(C)72.(A)73.(B)74.(D)75.(D)76.(D)77.(A)78.(A)79.(A)80.(C)81.(B)82.(D)83.(C)84.(C)85.(A)86.(B)87.(B)88.(D)89.(C)90.(C)91.(D)92.(A)93.(A)94.(B)95.(C)96.(B)97.(B)98.(B)99.(B)100.(B)101.(D)102.(C)103.(B)104.(D)105.(A)106.(C)107.(D)108.(C)109.(A)110.(B)111.(A)112.(D)113.(C)114.(B)二、判断题(正确打√,错误打×)1.(×)2.(×)3.(√)4.(×)5.(×)6.(√)二、填空题1..F.2.403.-1和-24.逻辑运算符5.命令?VAL(SUBSTR(668899,5,2))+1的执行结果是100。6.D7.“456123789”8.T=Y+年+M+月+D+日9.-810.函数11.STORE学分TOM.学分12.8B、8B、1B、8B和8B13.A!=B、A#B和AB14.1,2615.日期型、逻辑型、日期时间型16.关系数据库17.618.619.123.0020.5.1421..F.22.123.字段变量24.TOPRINTER25.C26.C、N、D、L、Y和T27.SETEXACTON28.ROUND(45.39748,3)29.2^20和2**2030.-231.68和-23131.SETCENTURYON32.500.896533.存储于内存变量中的值的类型34.STORE0TODG或DG=035.38和.F.36.STORE0TOX,Y37..T.38.D和C39.VAL()和STR()40..F.41.年龄=20AND年龄=6042.是和是43.□□AB□□CD和AB□□CD44.奔腾586个人计算机和奔腾586个人计算机45.MOD(INT(586/10),10)。46..T.和.T.47..F.48.2和“8886”49.?A+B=+STR(A+B,2)50.5和-651..T.,.F.52.1553.D和C54.1,.F.55.(1).T.(2).T.(3).T.(4).T.56.(1)old15ANDhight=1.8(2)old=45ANDAI=副教授ORold=35ANDAI=讲师(3)math85ANDphysic85ANDenglish85ORmath+physic+english27057..T.;.T.;.T.;353.00;.F.;.F.58.Y;266.35;中国------北京59.10/11/06;Sunday;D;3;C;8;8;20;48;60;204660..F.;.F.;9;“院软件94计算机学院软件”。61.SETDATETOYMD;SETCENTURYON;?DATE();?CDOW(DATE());?TIME()62.(1)left(a,7)+stuff(subs(a,8,6),1,6,FoxPro)+subs(a,14,8)+stuff(subs(a,22,8),1,8,DataBase)+subs(a,30)(2)MOD(LEN(A),5)(3)REPLICATE(-,3)+A+REPLICATE(-,3)(4)STUFF(A,8,1,chr(ASC(SUBSTR(A,8,1))-1))63._____208520.45____________64._____255____,___127_____65.___下划线____66.____ABIJLM___67.____22_____,___14____68._____A*B**2+E^y_________。2.3.2习题一、选择题1.(D)2.(B)3.(B)4.(A)5.(C)6.(A)7.(B)8.(D)9.(B)10.(C)11.(A)12.(A)13.(B)14.(A)15.(A)16.(A)17.(C)18.(D)19.(D)20.(B)21.(A)22.(D)23.(B)24.(C)25.(B)26.(B)27.(D)28.(C)29.(B)30.(A)31.(C)32.(D)33.(D)34.(B)35.(D)36.(B)37.(D)38.(B)39.(A)40.(B)41.(C)42.(B)43.(B)44.(C)45.(A)46.(C)47.(C)48.(B)49.(B)50.(A)51.(D)52.(A)53.(B)54.(A)55.(B)56.(C)57.(D)58.(D)59.(B)60.(C)61.(C)62.(C)63.(C)64.(D)65.(B)66.(C)67.(C)68.(B)69.(D)70.(D)71.(B)72.(A)73.(A)74.(D)75.(C)76.(C)77.(A)78.(C)79.(B)80.(B)81.(D)82.(A)83.(B)84.(B)85.(C)86.(B)87.(A)88.(B)89.(C)90.(C)91.(A)92.(A)93.(A)94.(A)95.(A)96.(D)97.(A)98.(A)99.(B)100.(C)101.(B)102.(B)103.(B)104.(D)105.(D);(D)106.(D)107.(D)108.(B)109.(A)110.(B)111.(B)112.(D)113.(D)114.(D)115.(B)116.(C)117.(D)118.(B)119.(D)120.(D)121.(B)122.(C)123.(C)124.(D)125.(B)126.(B)127.(C)128.(C)129.(A)130.(D)二、填空题1.102.SCATTER3.字段名、字段类型、宽度和小数位数4.字母、汉字,105.327676.立即输入和追加输入7.LISTFOR性别=男和DISPFOR性别=男8.DELETENEXT49._自由表____10._REMOVE____11.___254___12.__.CDX___13.__字段____14.___表__15.INSERTBEFORE16.__多对多___17.__MODIFYDATABASE____18.____BROWSE____19.___DELETE__20.__修改__21.___双击__22.____文件结束____23.物理,逻辑24.__一___25.___SEEK___26.__父表___,__子表__27.__主索引__、__候选索引__、_惟一索引__和__普通索引_28.LOCATE29.___2号工作区____30.__文件结束__31.___LISTNEXT5_____,__GO13____,LISTNEXT4__32._LISTFORYEAR(进馆日期)=2000__33.__5__34.(1)__一车间2230.00600.00______(2)__890_____(3)__1001程云____,____1400______,___唐尊_____(4)_____840__________35.①2,②.T.,③16,④.T.,⑤.F.,⑥.F.,⑦.T.,⑧136.①1,②8,③1,④9,⑤3,⑥4,⑦1,⑧7,⑨1,⑩737._职称代码___,___4______38.____4_____,__1____39.SETRELATIONTO编号INTOB40.____B.部门代码______,____ZJ/部门人数_41.学号,INTOA,课程号INTOC42._124543.678944.____3______45.88146.__99100__47.___3___48.3副教授2.4.2习题一、选择题1.(D)2.(D)3.(D)4.(B)5.(A)6.(C)7.(D)8.(D)9.(A)10.(A)11.(B)12.(A)13.(B)14.(A)15.(C)16.(D)17.(A)18.(A)19.(B)20.(C)21.(B)22.(C)23.(D)24.(C)25.(D)26.(D)27.(C)28.(D)29.(C)30.(A)31.(D)32.(D)33.(B)34.(A)35.(B)36.(B)37.(C)38.(B)39.(D)40.(A)41.(A)42.(D)43.(B)44.(B)45.(A)46.(B)47.(B)48.(B)49.(B)二、填空题1.可以2.本地视图、远程视图3.不能4.本地视图5.打开6.表,查询7.联接8.条件9.CREATEVIEW10.INTOCURSOR11.SUM、AVG12.SELECT,FROM,WHERE13.ON,SELECT,WHERE14.条件,顺序,分组信息15.浏览窗口16.ALTERTABLE17.成绩=60OR成绩=10018.WHERE工资100019.=高等教育出版社OR_出版单位=科学出版社______20.AVG(单价),COUNT(*),GROUPBY21.借阅证号,HAVING三、操作题1.(1)SELECT货物,SUM(数量)FROM订购;WHERE订购日期BETWEEN{^2005-08-01}AND{^2005-08-31};GROUPBY货物(2)SELECT客户ID,姓名,城市FROM客户;WHERE客户IDIN(SELECT客户IDFROM订购;WHERE订购日期BETWEEN{^2004-01-01}AND{^2004-12-31}(3)SELECT货物ID,客户IDFROM订购DG;WHERE数量=(SELECTMAX(数量)FROM订购;WHERE货物ID=DG.货物ID)(4)SELECT*FROM客户WHEREEXIST;(SELECT*FROM订购WHERE订购.客户ID=客户
本文标题:VFP程序设计实践教程习题部分参考答案(重大出版社)
链接地址:https://www.777doc.com/doc-3369404 .html