资源描述:
《VFP-课外作业参考答案汇总(VFP程序设计实践指导-科学出版社)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、P6课外作业答案:选择题:1-5CBCDD6-7CD判断题1-5×√×√×填空题:1.SETDEFAULTTO2.SETCENTURYON3.命令窗口或COMMAND窗口P13课外作业答案:选择题:1-5AABCC6B判断题1-5√√×××填空题:1.PRG2.SCX3.DO4.DOFORM5.VALUE6.CAPTION设计题:略P25课外作业答案:选择题:1-5BCADD6-10A无答案BAD11-15CACAC16-20BDDAC21-23BAA判断题1-5×√√√×6-10√√√√×11-12××填空题:1."计算机"$SM=.T.或at("计算机",sm)<>02
2、.a+b>candb+c>aanda+c>b3.a<>0andb^2-4*a*c>=04.x>=50andx=int(x)5.mod(m,3)=0andmod(m,5)=0andmod(m,7)=06.abs(x)>=abs(y)orx0,"正数",iif(x=0,"零","负数"))2.x>=100andx<=999andx=int(x)3.mod(x,7)=04.su
3、bstr(XM,1,2)="王"设计题:略P44课外作业答案:选择题:1-5DBDAA6-10ADDCB判断题1-5√×√×√6-8√√√填空题:1..scx.sct或者scxsct2.2553.44.caption5.value6.store0tox,y,z7.thisform.caption="计算圆面积"8.thisform.label1.caption="请输入一个正数"9.n=3*4+8或者store3*4+8ton设计题:略P54课外作业答案:选择题:1-5BDBCA6-8ADD判断题1-5√√√××6×填空题:1.ASC(CH)>=ASC("A")ANDASC
4、(CH)<=ASC("Z")或者CH>="A"ANDCH<="Z"2.CJ>580AND(XB="女"ORTYF)或者CJ>580AND(XB="女"ORTYF=.T.)3.YEAR(RQ)>=1987ANDYEAR(RQ)<=1988或者1987<=YEAR(RQ)ANDYEAR(RQ)<=1988或者RQ>={^1987-1-1}ANDRQ<{^1989-1-1}或者RQ>={^1987-1-1}ANDRQ<={^1988-12-31}4.DATE()-D>905.X>=100ANDX<=999ANDX=INT(X)或者X>99ANDX<1000ANDX=INT(X)6
5、.MOD(X,8)=0或者INT(X/8)=X/8或者X%8=0或者X/8=INT(X/8)7.①DATE()②YUE=6ORYUE=7ORYUE=8③ENDCASE④COTH8.①a②b=t设计题:略P64课外作业答案:选择题:1-5CAAAA判断题1-5×××√×填空题:1.①I<20②X>M③X0③ALLTRIM(S)3.①LEFT(X,2)+”*”或substr(X,1,2)+”*”②Y+X读程序写结果:1.11235813212.输入有效数为4个这些数的平均值为43.13214.345.2006.757.68.thISISAcpu设计题:略
6、P72课外作业答案:填空题:1.①mod(x,8)<>0或者x%8<>0或x/8<>int(x/8)②n=n+12.①0②353.①2②exit③alltrim(str(n))读程序写结果:1.5101520252.81624设计题:略P79课外作业答案:读程序写结果:1.45.F..F..F.72.1+1++1+2+3+1+2+3+4+1+2+3+4+5=353.192883777466664.192993999499995.I=10J=36.9设计题:略P87课外作业答案:选择题:1-5CAAAB判断题1-5√××√×填空题:1.scx2.readonly3.标题4.①
7、下拉组合框②下拉列表框5.thisform.release设计题:略P91课外作业答案:选择题:1-4BBDA判断题1-5√√×√√填空题:1.事件2.绝对3.this4.对象5.①thisform.edit1.value+str(m,3)②thisform.edit1.value设计题:略P101课外作业答案:选择题:1-5CBCCB判断题1-5√√√×√填空题:1.计时器或timer2.timer3.粗fontsize4.绿设计题:略P111课外作业答案:选择题:1-5CADAC6-10ACAAB判断题1-5√