Vfp(下)选择题

Vfp(下)选择题

ID:40579412

大小:60.50 KB

页数:6页

时间:2019-08-04

Vfp(下)选择题_第1页
Vfp(下)选择题_第2页
Vfp(下)选择题_第3页
Vfp(下)选择题_第4页
Vfp(下)选择题_第5页
资源描述:

《Vfp(下)选择题》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、一、程序选择填空题1.下面程序实现口令判断,当第三次输入出错时退出表单。表单Form1的Init事件代码:(1)a=0use学生this.text1.value=””this.text1.passwordchar=”*”this.label1.visible=.f.(2)文本框Text1的Valid事件代码:(3)iffound()thisform.label1.caption=’口令正确!’thisform.label1.visible=.t.retu.t.else(4)thisform.label1.caption=’已经三次错误!’thisform.label1.vis

2、ible=.t.thisform.releaseelsethisform.label1.caption=’口令有错,重新输入!’thisform.label1.visible=.t.a=a+1retu.f.endifendif【供选择的答案】(1)a、publicab、localac、paraad、可以省略(2)a、this.text1.setfocus=.f.b、this.text1.setfocusc、this.text1.setfocus=.t.d、thisform.text.setfocus(3)a、seekthisform.text1.valueb、seekfor姓

3、名==allt(thisform.text1.value)c、locafor姓名==allt(thisform.text1.value)d、locaall姓名=allt(thisform.text1.value)(4)a、ifa>=3b、ifa>=2c、ifa<3d、ifa<=32.下面程序实现一只小球在表单的高度范围(顶部与底部)内作动态的上下滚动。表单Form1的Init事件代码:(已经新建了表单属性B)this.b=0this.timer1.interval=100(1)thisform.shape1.curvature=99thisform.shape1.height

4、=30thisform.shape1.width=30计时器timer1的timer事件代码:(2)thisform.b=1endififthisform.shape1.top=0thisform.b=0endif(3)thisform.shape1.top=thisform.shape1.top+1elsethisform.shape1.top=thisform.shape1.top-1endif【供选择的答案】(1)a、this.timer1.show=.t.b、this.timer1.show=.f.c、this.timer1.enabled=.t.d、this.tim

5、er1.enabled=.f.(2)a、ifthisform.shape1.top=thisform.height-30b、ifthisform.shape1.top=thisform.height-40c、ifthisform.shape1.bottom=thisform.height-30d、ifthisform.shape1.bottom=0(3)a、ifthis.b=0b、ifthis.b=1c、ifthisform.b=0d、ifthisform.b=13.下面程序实现形状(shape1)从圆形逐步变成正方形,又从正方形逐步变成圆形的过程。初始形状为红色底色的圆形,

6、已新建a属性。表单Form1的Init事件代码:this.a=1(1)this.timer1.interval=1000(2).width=100.height=100(3)endwith计时器Timer1的Timer事件代码:ifthisform.shape1.curvature=99thisform.a=0endififthisform.shape1.curvature=0thisform.a=1endifb=thisform.shape1.curvatureif(4)thisform.shape1.curvature=b+1elsethisform.shape1.cur

7、vature=b-1endif【供选择的答案】(1)a、this.timer1.enabled=.t.b、this.timer.enabled=.t.c、this.enabled=.t.d、this.timer1.enabled=.f.(2)a、scanthisform.shape1b、withthis.shape1c、withthisformd、withshape1(3)a、backcolor=rgb(255,0,0)b、.backcolor=rgb(255,0,0)c、.backcolor=rgb(

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。