[计算机类试卷]国家二级VF机试(操作题)模拟试卷40及答案与解析.doc

上传人:medalangle361 文档编号:500977 上传时间:2018-11-29 格式:DOC 页数:3 大小:27KB
下载 相关 举报
[计算机类试卷]国家二级VF机试(操作题)模拟试卷40及答案与解析.doc_第1页
第1页 / 共3页
[计算机类试卷]国家二级VF机试(操作题)模拟试卷40及答案与解析.doc_第2页
第2页 / 共3页
[计算机类试卷]国家二级VF机试(操作题)模拟试卷40及答案与解析.doc_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

1、国家二级 VF机试(操作题)模拟试卷 40及答案与解析 一、基本操作题 1 (1)在考生文件夹下打开 customer数据库,并将自由表 customer和 order添加到数据库中。 (2)为 order表的 “订单日期 “字段定义默认值为系统的当前日期。 (3)为 customer表建立主索引,索引名和索引表达式均为 “客户编号 “。 (4)为 order表建立普通索引,索引名和索引表达式均为 “客户编号 “,然后通过 “客户编号 “字段建立表 customer和表 order之间的永久联系。 二、简单应用题 2 在考生文件夹 下完成如下简单应用: (1)请按要求修改 modi1程序文件中

2、的错误并使之能够正确运行 (具体修改要求在程序文件中 )。注意:不可以增加或删除程序行。 (2)在考生文件夹下有表 customer(客户 )和 order(订单 ),用 SQL SELECT语句查询所有客户的订单信息,要求在结果中包括公司名称、订单编号、金额和送货方式 4个字段的信息,并先按公司名称升序排列,公司名称相同的再按订单编号升序排列,查询结果存放在 results表中,并要求将完整的 SQL SELECT语句保存在SQL.PRG文件中。 三、综合应用题 3 建立满足如下要求的应用并运行,所有控件的属性必须在表单设计器的属性窗口中设置。 (1)建立一个文件名和表单名均为 myform

3、的表单文件,其中包含两个表格控件,第一个表格控件名称是 grd1,用于显示表 customer中的记录,第二个表格控件名称是 grd2,用于显示与表 customer中当前记录对应的 order表中的记录 。要求两个表格尺寸相同、左右布局、顶边对齐。 (2)建立一个菜单 mymenu,该菜单只有一个 “退出 “菜单项,该菜单项对应于一个过程,其中含有两条语句,第一条语句是关闭表单 myform, 第二条语句是将菜单恢复为默认的系统菜单。 (3)在表单 myform的 Load事件中执行生成的菜单程序 mymenu.mpr。 注意:程序完成后要运行所有功能。 国家二级 VF机试(操作题)模拟试卷

4、 40答案与解析 一、基本操作题 1 【正确答案】 【操作步骤】 (1)通过常用工具栏中的 “打开 “按钮打开考生文件夹下的 “customer“数据库,在数据库设计器的空白处单击鼠标右键,选择 “添加表 “命令,将考生文件夹下的自由表“customer“和 “order“添加到数据库中。 (2)在数据库设计器中右键单击的 “order“表,选择 “修改 “命令,在打开的表设计器中选中 “订单日期 “字段,在 “字段有效性 “框的 “默认值 “文本框中输入 “date()“。 (3)在数据库设计器中右键单击其中的 “customer“表,选择 “修改 “命令,在打开的表设计器的字段选项卡中为其

5、 “客户编号 “字段设置升序排序,在 “索引 “选项卡中选择“主索引 “,单击 “确定 “按钮并保存对表的修改。 (4)同上,为表 “order“添加普通索引,然后在数据库设计器中从主索引拖拽到普通索引建立两表间的联系。 二、简单应用题 2 【正确答案】 (1)【操作步骤】 打开 modi1.prg,修改其中的错误如下。 删除 “(此处空行 )“,然后填写 “ use customer“。 把 “WHILE“ 改为 “FOR“。 (2)【操作步骤】 新建一个程序 sql.prg,写入如下 SQL语句。 *“sql.prg“中的命令语句 * SELECT Customer.公司名称 , Orde

6、r.订单编号 , Order.金额 , Order.送货方式 ; FROM customer,order; WHERE Customer.客户编号 = Order.客户编号 ; ORDER BY Customer.公司名称 , Order.订单编号 ; INTO TABLE results * 保存并运行程序。 三、综合应用题 3 【正确答案】 【操作步骤】 步骤 1:通过 “新建 “对话框新建一个表单,然后设置表单的 Name属性为“myform“。 步骤 2:右键表单空白处,选择 “数据环境 “命令,将考生文件夹下的 “customer“和“order“两个表依次添加到表单的数据环境中。

7、步骤 3:为表单添加两个表格控件,分别修改它们的 Name属性为 grd1和 grd2,RecordSource属性为 “customer“和 “order“。 步骤 4:适当调整每个表格的宽度和位置。按住 SHIFT键的同时选中两个表格,在“布局 “工具栏中分别单击 “相同大小 “和 “顶边对齐 “命令按钮。 步骤 5:以 “myform“为文件对表单进行保存,并运行保存后的表单。 步骤 6:通过 “新建 “对话框新建一个菜单,输入菜单名称为 “退出 “,选择结果为 “过程 “,然后单击后面的 “创建 “按钮,在其中编写如下的命令语句。 MYFORM.RELEASE SET SYSMENU TO DEFAULT 步骤 7:保存菜单名称为 “mymenu.mpr“,选择 “菜单 “菜单下的 “生成 “命令,生成可执行菜单文件,关闭菜单设计器。 步骤 8:回到表单设计器中,双击表单空白处,编写表单的 load事件代码 “DO mymenu.mpr“。 步骤 9:运行表单,依次单击 customer表对应表格中的所有记录,查看运行情况,最后单击 “退出 “菜单命令。

展开阅读全文
相关资源
猜你喜欢
  • ANSI ASA S3.44 PART 1-2016 American National Standard Acoustics - Estimation of Noise  induced Hearing Loss-Part 1 Method for Calculating Expected Noise  induced Permanent Threshol.pdf ANSI ASA S3.44 PART 1-2016 American National Standard Acoustics - Estimation of Noise induced Hearing Loss-Part 1 Method for Calculating Expected Noise induced Permanent Threshol.pdf
  • ANSI ASA S3.45-2009 American National Standard Procedures for Testing Basic Vestibular Function《基本前庭功能的试验程序》.pdf ANSI ASA S3.45-2009 American National Standard Procedures for Testing Basic Vestibular Function《基本前庭功能的试验程序》.pdf
  • ANSI ASA S3.46-2013 American National Standard Methods of Measurement of Real-Ear Performance Characteristics of Hearing Aids《助听器真耳性能特征测量方法》.pdf ANSI ASA S3.46-2013 American National Standard Methods of Measurement of Real-Ear Performance Characteristics of Hearing Aids《助听器真耳性能特征测量方法》.pdf
  • ANSI ASA S3.47-2014 American National Standard Specification of Performance Measurement of Hearing Assistance Devices Systems《听力辅助设备 系统性能测量规范》.pdf ANSI ASA S3.47-2014 American National Standard Specification of Performance Measurement of Hearing Assistance Devices Systems《听力辅助设备 系统性能测量规范》.pdf
  • ANSI ASA S3.5-1997 American National Standard Methods for Calculation of the Speech Intelligibility Index《言语理解指数计算方法》.pdf ANSI ASA S3.5-1997 American National Standard Methods for Calculation of the Speech Intelligibility Index《言语理解指数计算方法》.pdf
  • ANSI ASA S3.50-2013 American National Standard Method for Evaluation of the Intelligibility of Text-to-Speech Synthesis Systems (Includes Access to Additional Content)《文字转语音合成系统可懂度.pdf ANSI ASA S3.50-2013 American National Standard Method for Evaluation of the Intelligibility of Text-to-Speech Synthesis Systems (Includes Access to Additional Content)《文字转语音合成系统可懂度.pdf
  • ANSI ASA S3.52-2016 American National Standard Measurements of the Threshold of Hearing and Signal Detectability in a Sound Field.pdf ANSI ASA S3.52-2016 American National Standard Measurements of the Threshold of Hearing and Signal Detectability in a Sound Field.pdf
  • ANSI ASA S3.55 PART 1-2014 American National Standard Electroacoustics C Simulators of Human Head and Ear C Part 1 Ear Simulator for the Measurement of Supra-aural and Circumaural .pdf ANSI ASA S3.55 PART 1-2014 American National Standard Electroacoustics C Simulators of Human Head and Ear C Part 1 Ear Simulator for the Measurement of Supra-aural and Circumaural .pdf
  • ANSI ASA S3.55 PART 3-2015 AMERICAN NATIONAL STANDARD Electroacoustics C Simulators of Human Head and Ear C Part 3 Acoustic Coupler for the Calibration of Supra-aural Earphones Use.pdf ANSI ASA S3.55 PART 3-2015 AMERICAN NATIONAL STANDARD Electroacoustics C Simulators of Human Head and Ear C Part 3 Acoustic Coupler for the Calibration of Supra-aural Earphones Use.pdf
  • 相关搜索

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

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