【计算机类职业资格】国家二级VF机试(操作题)-试卷172及答案解析.doc

上传人:visitstep340 文档编号:1333399 上传时间:2019-10-17 格式:DOC 页数:3 大小:50.50KB
下载 相关 举报
【计算机类职业资格】国家二级VF机试(操作题)-试卷172及答案解析.doc_第1页
第1页 / 共3页
【计算机类职业资格】国家二级VF机试(操作题)-试卷172及答案解析.doc_第2页
第2页 / 共3页
【计算机类职业资格】国家二级VF机试(操作题)-试卷172及答案解析.doc_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

1、国家二级 VF机试(操作题)-试卷 172及答案解析(总分:6.00,做题时间:90 分钟)一、基本操作题(总题数:1,分数:2.00)1.在考生文件夹下,完成如下操作: 1打开考生文件夹下的表单 one,如下图所示,编写“显示”命令按钮的 Click事件代码,使表单运行时单击该命令按钮则在 Text1文本框中显示当前系统日期的年份(提示:通过设置文本框的 Value属性实现,系统日期函数是 date(),年份函数是 year()。 打开考生文件夹下的表单 two,如下图所示,选择“表单”菜单中的“新建方法程序”命令,在“新建方法程序”对话框中,为该表单新建一个 test方法,然后双击表单,选

2、择该方法编写代码,该方法的功能是使“测试”按钮变为不可用,即将该按钮的 Enabled属性设置为F。 (分数:2.00)_二、简单应用题(总题数:1,分数:2.00)2.1在考生文件夹下存在表单文件 formoneSCX,其中包含一个列表框、一个表格和一个命令按钮,如下图所示。 (分数:2.00)_三、综合应用题(总题数:1,分数:2.00)3.在考生文件夹下完成下列操作: 在考生文件夹下创建一个下拉式菜单 mymenumnx,并生成菜单程序mymenumpr。运行该菜单程序时会在当前 vfp系统菜单的末尾追加一个“考试”子菜单,如下图所示。(分数:2.00)_国家二级 VF机试(操作题)-试

3、卷 172答案解析(总分:6.00,做题时间:90 分钟)一、基本操作题(总题数:1,分数:2.00)1.在考生文件夹下,完成如下操作: 1打开考生文件夹下的表单 one,如下图所示,编写“显示”命令按钮的 Click事件代码,使表单运行时单击该命令按钮则在 Text1文本框中显示当前系统日期的年份(提示:通过设置文本框的 Value属性实现,系统日期函数是 date(),年份函数是 year()。 打开考生文件夹下的表单 two,如下图所示,选择“表单”菜单中的“新建方法程序”命令,在“新建方法程序”对话框中,为该表单新建一个 test方法,然后双击表单,选择该方法编写代码,该方法的功能是使

4、测试”按钮变为不可用,即将该按钮的 Enabled属性设置为F。 (分数:2.00)_正确答案:(正确答案:(1)利用“文件”菜单下的“打开”命令来打开表单 one,或使用命令“MODIFY FORM one”打开表单 one。在“显示”命令按钮的 Click事件中输入代码“thisformtextlvalue=year(date()”,如图 3105 所示。保存并运行修改后的表单,查看运行结果。 (2)打开表单 two,在“表单”菜单中选择“新建方法程序”命令,新建一个名为 test的方法。在属性窗口中双击此方法,在弹出的窗口中编写用户自定义过程代码“ThisFormCommand1Ena

5、bled=F”,在表单设计器环境下双击“测试”命令按钮,编写 Click事件代码“ThisFormTest”,如图 3106 所示。保存并运行修改后的表单,查看运行结果。 (3)创建一个快速报表,如图 3107 所示。预览该报表,查看设计后的效果。 )解析:解析:打开表单,在表单设计器环境下修改控件的相关属性,为命令按钮编写 Click事件代码;在“新建方法程序”对话框中为表单新建方法;在报表设计器中创建快速报表;通过 ALTER YABLE命令为字段增加有效性规则。二、简单应用题(总题数:1,分数:2.00)2.1在考生文件夹下存在表单文件 formoneSCX,其中包含一个列表框、一个表格

6、和一个命令按钮,如下图所示。 (分数:2.00)_正确答案:(正确答案:(1)步骤 1:打开表单 formone,在表单的空白处单击鼠标右键,将 Orders表添加到表单的数据环境中。 步骤 2:修改列表框和表格的属性,如图 381 所示。 )解析:解析:通过常用工具栏中的“打开”按钮打开表单,用鼠标右键单击表单空白处可以为表单添加数据环境。通过查询设计器完成查询的创建。表单的 MultiSelect属性用于指定列表框能否多重选定;RowSourceType属性用来指定表格和列表框的数据类型,RowSource 属性用来指定表格和列表框的数据源。三、综合应用题(总题数:1,分数:2.00)3.

7、在考生文件夹下完成下列操作: 在考生文件夹下创建一个下拉式菜单 mymenumnx,并生成菜单程序mymenumpr。运行该菜单程序时会在当前 vfp系统菜单的末尾追加一个“考试”子菜单,如下图所示。(分数:2.00)_正确答案:(正确答案:步骤 1:单击常用工具栏中的“新建”按钮,在打开的“新建”对话框中选择“菜单”单选按钮,然后单击“新建文件”按钮,选择“菜单”按钮,如图 414 所示。 步骤 2:单击菜单栏中的“显示”按钮,在弹出的下拉列表中选择“常规选项”命令,在弹出的“常规选项”对话框中,选择“位置”选项组中的“追加”单选按钮,单击“确定”按钮,如图 415 所示。 步骤3:按题目的

8、要求新建一个“考试”菜单,设置该菜单的“结果”为子菜单,再单击“创建”按钮建立两个菜单项“统计”和“返回”,结果均设置为“过程”,如图 416 所示。 步骤 4:选中“统计”行,单击后面的“创建”按钮,在弹出的窗口中输入如下代码,为“统计”菜单编写代码,如图 417 所示。 SELECT Reply用户名,COUNT(Reply主题帖编号)as 主题贴数,; Topic回复数 AS回复贴数;FROM replyINNER-IOIN topic; ON Reply编号=Topic编号; GROUP BY Reply用户名; ORDER BY Reply用户名; INT()TABLE tabletwoDhf 步骤 5:为“返回”菜单编写代码“Set sysmenu to defalt”,方法同步骤 3。 步骤 6:单击菜单栏中的“菜单”按钮,在弹出的下拉列表中选择“生成”按钮。在弹出的“另存为”对话框中,设置菜单名为“mymenumnx”,单击“保存”按钮。再在弹出的“生成菜单”对话框中,单击“生成”按钮。如图 418 所示。 )解析:

展开阅读全文
相关资源
猜你喜欢
  • EN 1313-1-2010 en Round and sawn timber - Permitted deviations and preferred sizes - Part 1 Softwood sawn timber《圆木材和锯材 允许偏差和优选尺寸 第1部份 软木锯材》.pdf EN 1313-1-2010 en Round and sawn timber - Permitted deviations and preferred sizes - Part 1 Softwood sawn timber《圆木材和锯材 允许偏差和优选尺寸 第1部份 软木锯材》.pdf
  • EN 1313-2-1998 en Round and Sawn Timber - Permitted Deviations and Preferred Sizes - Part 2 Hardwood Sawn Timber (Incorporating Corrigendum June 1999)《圆木材和木板材 允许偏差和优选尺寸 第2部份 阔叶木板材 .pdf EN 1313-2-1998 en Round and Sawn Timber - Permitted Deviations and Preferred Sizes - Part 2 Hardwood Sawn Timber (Incorporating Corrigendum June 1999)《圆木材和木板材 允许偏差和优选尺寸 第2部份 阔叶木板材 .pdf
  • EN 13130-1-2004 en Materials and articles in contact with foodstuffs Plastics substances subject to limitation Part 1 Guide to test methods for the specific migration of substances.pdf EN 13130-1-2004 en Materials and articles in contact with foodstuffs Plastics substances subject to limitation Part 1 Guide to test methods for the specific migration of substances.pdf
  • EN 13130-2-2004 en Materials and articles in contact with foodstuffs Plastics substances subject to limitation Part 2 Determination of terephthalic acid in food simulants《接触食品的材料和物.pdf EN 13130-2-2004 en Materials and articles in contact with foodstuffs Plastics substances subject to limitation Part 2 Determination of terephthalic acid in food simulants《接触食品的材料和物.pdf
  • EN 13130-3-2004 en Materials and articles in contact with foodstuffs Plastics substances subject to limitation Part3 Determination of acrylonitrile in food and food simulants《接触食品的.pdf EN 13130-3-2004 en Materials and articles in contact with foodstuffs Plastics substances subject to limitation Part3 Determination of acrylonitrile in food and food simulants《接触食品的.pdf
  • EN 13130-4-2004 en Materials and articles in contact with foodstuffs Plastics substances subject to limitation Part 4 Determination of 1 3-butadiene in plastics《接触食品的材料和物品受限塑料物质 第4.pdf EN 13130-4-2004 en Materials and articles in contact with foodstuffs Plastics substances subject to limitation Part 4 Determination of 1 3-butadiene in plastics《接触食品的材料和物品受限塑料物质 第4.pdf
  • EN 13130-5-2004 en Materials and articles in contact with foodstuffs Plastics substances subject to limitation Part 5 Determination of vinylidene chloride in food simulants《接触食品的材料.pdf EN 13130-5-2004 en Materials and articles in contact with foodstuffs Plastics substances subject to limitation Part 5 Determination of vinylidene chloride in food simulants《接触食品的材料.pdf
  • EN 13130-6-2004 en Materials and articles in contact with foodstuffs Plastics substances subject to limitation Part 6 Determination of vinylidene chloride in plastics《接触食品的材料和物品受限塑.pdf EN 13130-6-2004 en Materials and articles in contact with foodstuffs Plastics substances subject to limitation Part 6 Determination of vinylidene chloride in plastics《接触食品的材料和物品受限塑.pdf
  • EN 13130-7-2004 en Materials and articles in contact with foodstuffs Plastics substances subject to limitation Part 7 Determination of monoethylene glycol and diethylene glycol in .pdf EN 13130-7-2004 en Materials and articles in contact with foodstuffs Plastics substances subject to limitation Part 7 Determination of monoethylene glycol and diethylene glycol in .pdf
  • 相关搜索

    当前位置:首页 > 考试资料 > 职业资格

    copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
    备案/许可证编号:苏ICP备17064731号-1