欢迎来到天天文库
浏览记录
ID:34017659
大小:73.50 KB
页数:12页
时间:2019-03-03
《【辽宁专升本-论坛】- vfp模拟试题二答案》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、--VFP模拟试题二1为非法字段名或变量名。A.姓名B.A56C.CLI_IDD.3_AB2.单索引文件的扩展名是.A.TXTB.DBFC.IDXD.FRM3.清除内存变量的命令是.A.DELETEB.STORETOC.LISTMEMOEYD.RELEASE4.函数ABS(12-30)的值为.A..T.B..F.C.18D.-185.数据库的重新索引命令是.A.INDEXB.REINDEXC.SETINDEXD.SORT6.下列程序段的运行结果为.T=36500M=MOD(T,60)H=INT(T/60)K=MOD(H,24)D=INT(H/24)?T,D,K,M
2、A.36500,8,25,2B.36500,8,25,20C.36500,25,8,20D.36500,20,25,87.函数EXP(0)的值为.A.2.73B.1.00C.ED.2.008.STORE"ABCDEFGHIJKLM"TOSTR?SUBSTR(STR,1,5)输出为.A.IJKLMB.EFGHIC.ABCDED.E9.执行命令STORECTOD("11/05/95")TOA后,变量A的类型为.A.日期型B.数值型C.备注型D.字符型10.统计记录个数用命令实现。A.SUMB.RECCOUNTC.TOTALD.AVERAGE在以下各题中,有的要用到数据库
3、文件GZ1.DBF和GZ2.DBF,其中:GZ1.DBF:编号姓名性别民族出生日期总收入1张明男汉12/01/390.002高亮男汉06/01/450.003刘金玲女满07/12/400.004张志平男汉08/29/380.005刘莉莉女回03/18/500.00GZ2DBF:编号姓名基本工资津贴奖金合计1张明650.00100.00300.000.002高亮450.00100.00200.000.003刘金玲550.0090.00300.000.004张志平700.00110.00300.000.00----5刘莉莉300.00100.00200.000.00其
4、中、编号、姓名、性别和民族为字符型,出生日期为日期型,总收入、基本工资、津贴、奖金、合计为数值型。二、阅读程序阅读下列程序,将运行结果填到答题卡上。1SETTALKOFFSETHEADINGOFFUSEGZ2DOWHILE.NOT.EOF()REPL合计WITH基本工资+津贴+奖金SKIPENDDOGOBOTTOMSKIP-3?姓名,合计GOTOPSKIP3?RECNO()USERETURN高亮750.0042.SETTALKOFFSELE2USEGZ2REPLALL合计WITH基本工资+津贴+奖金INDEXON姓名TOGZ21SELE1USEGZ1?姓名,总收入
5、SETRELATO姓名INTOBREPLALL总收入WITHB->合计GOTOP?姓名,总收入USERETURN张明0.00张明0.00张明1050.003.----SETTALKOFFSETHEADINGOFFCLEASELE1USEGZ1REPLALL总收入WITH总收入+50FOR民族<>"汉"SELE2USEGZ2JOINWITHATOGZFOR姓名=A->姓名FIEL编号,姓名,A->民族,A->总收入USEGZLISTFOR民族<>"汉"USERETURN33刘金玲满1140.0055刘莉莉回800.004.SETTALKOFFSETHEADINGOFF
6、CLEAUSEGZ2SUMS=0DOWHILE.NOT.EOF()SUMS=SUMS+奖金SKIPENDDOAPPEBLANREPL奖金WITHSUMS?RECNO(),合计USERETURN60.005.SETTALKOFFCLEASETDEVITOSCREENUSEGZ2INDEXON编号TOGZ3DOWHILE.NOT.EOF().AND.编号<"3"@ROW()+1,0SAY编号+姓名@ROW(),COL()SAY津贴PICT"@Z999.99"@ROW(),COL()SAY奖金PICT"@Z999.99"SKIPENDDOUSE----RETURN不要了6
7、.SETTALKOFFX=0I=1DOWHILEI<=8X=X+II=I+2ENDDO?"X=",X?"I=",IRETURNX=16I=97.SETTALKOFFCLEAUSEGZ1INDEXON出生日期TOCSRQGOTOP?姓名,性别,出生日期GO4?姓名,性别,出生日期USERETURN张志平男08/29/38张志平男08/29/388.SETTALKOFFSETHEADINGOFFCLEAUSEGZ2COPYTOHFIEL姓名,奖金FOR奖金>200USEH2DISPOFFCOUNTFOR奖金>200TOA1COUNTTOA2?A1,A2USERET
此文档下载收益归作者所有