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

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

1、国家二级 VF机试(操作题)模拟试卷 49及答案与解析 一、基本操作题 1 在考生文件夹下有表单文件 formone.scx,其中包含一个文本框和一个命令按钮。打开该表单文件,然后在表单设计器环境下完成如下操作: (1)将表单的标题修改为 “表单操作 “,命令按钮的标题修改为 “显示 “。 (2)设置文本框的初始值为数值 0、宽度设置为 60。 (3)设置文本框的 InputMask属性,使其只能输入数值,其中:小数部分为两位、整数部分 (包括符号 )最多为 5位。 (4)修改命令按钮的 Click事件代码,使其中的 wait命令 功能为显示文本框的值。注意:需要将文本框中的数值转换成字符串,

2、其中,小数位数保留两位,字符串的长度为 8。 二、简单应用题 2 (1)编写 SQL语句,从 customers(客户 )表中统计各年份出生的客户人数。统计结果依次包含 “年份 “和 “人数 “两个字段,各记录按年份升序排序,统计结果存放在tableone表中。最后执行该 SQL语句,并将该语句存放在命令文件 pone.prg中。 (2)创建数据库 orders_m,并向其中添加 customers(客户 )表和 orders(订单 )表。然后在数据库中创建视图 viewone:利用该视图只能查询 2007年签订的订单信息,各记录按签订日期降序排列。最后利用该视图查询视图中的全部信息,并将查询

3、结果存放在表 tabletwo中。 三、综合应用题 3 在考生文件夹下有一个未完成的程序文件 ptwo.prg,其功能是进行订单处理,具体功能如下: (1)利用 SELECT语句产生 goods(商品 )表的一个副本 goods_t表。 (2)根据 orders、 orderitems和 goods_t三个表中的数据,按照签订日期的先后次序依次处理各订单: (a)若订单所订购的所有商品都有足够的库存量 ,则相关商品的库存量做相应处理,即减去该商品的订购数量,然后将该订单的状态设置为 “处理“; (b)若订单中有商品没有有足够的库存量,则整个订单不做处理,即没有商品库存量被改变,只需将该订单的状

4、态设置为 “缺货 “。 程序中共有 5条语句需要考生给定,请根据程序文件中相应的注释信息将正确的语句插入在形如 “ count(customers.姓名 ) as 人数 ; FROM customers; GROUP BY 1; ORDER BY 1; INTO TABLE tableone.dbf * 保存程序为 pone.prg并运行。 (2)【操作步骤】 步骤 1: 通过 “新建 “对话框新建一个数据库,文件名为 “orders_m“,在数据库设计器中右键单击数据库的空白处,选择 “添加表 “命令,将表 “customer“和 “orders“添加到数据库中。 步骤 2:新建一个视图,将

5、表 “orders“添加到视图设计器中,并在其字段选项卡中将所有字段添加到 “选定字段 “列表框中。 步骤 3:在筛选选项卡中,字段名列设置为 “year(orders.签订日期 )“,条件列选择 “ “,实例框中输入 “2007“。 步骤 4:在排序依据选项卡中,选择按 “orders.签订日期 “降序排序。 步骤 5:将视 图保存为 “viewone“。 步骤 6:新建一个查询,将 “viewone“视图添加到新建的查询中,选择全部字段,设置查询去向为表 “tabletwo“,保存并运行查询,查询文件名默认。 三、综合应用题 3 【正确答案】 【操作步骤】 步骤 1:通过常用工具栏中的 “打开 “命令打开考生文件夹下的程序文件 “ptwo.prg“。 步骤 2:按题目要求填入相应的语句如下。 语句 1: SET RELATION TO 商品号 INTO goods_t 语句 2: SET RELATION TO 订单号 INTO orderitems 语句 3: if 数量 goods_t.库存量 语句 4: SKIP -n 语句 5:库存量 = 库存量 - orderitems.数量 步骤 3:保存修改后的程序文件并运行。

展开阅读全文
相关资源
猜你喜欢
  • AECMA PREN 4673-006-2009 Aerospace series Inserts UNJ threads self-locking with self-broaching keys Part 006 In heat resisting steel FE-PA2601 (A286) MoS2 coated Edition P 1《航空航天系列.pdf AECMA PREN 4673-006-2009 Aerospace series Inserts UNJ threads self-locking with self-broaching keys Part 006 In heat resisting steel FE-PA2601 (A286) MoS2 coated Edition P 1《航空航天系列.pdf
  • AECMA PREN 4677-001-2009 Aerospace series Welded and brazed assemblies for aerospace construction Joints of metallic materials by electron beam welding Part 001 Quality of welded a.pdf AECMA PREN 4677-001-2009 Aerospace series Welded and brazed assemblies for aerospace construction Joints of metallic materials by electron beam welding Part 001 Quality of welded a.pdf
  • AECMA PREN 4678-2010 Aerospace series Weldments and brazements for aerospace structures Joints of metallic materials by laser beam welding Quality of weldments Edition P 1《航空航天系列.航.pdf AECMA PREN 4678-2010 Aerospace series Weldments and brazements for aerospace structures Joints of metallic materials by laser beam welding Quality of weldments Edition P 1《航空航天系列.航.pdf
  • AECMA PREN 4683-2009 Aerospace series Steel FE-WM 3504 (X4CrNiMo16-5-1) Air melted Filler metal for welding Wire and rod Edition P1《航空航天系列.FE-WM 3504(X4CrNiMo16-5-1)型.焊丝和焊条用气熔填充材料..pdf AECMA PREN 4683-2009 Aerospace series Steel FE-WM 3504 (X4CrNiMo16-5-1) Air melted Filler metal for welding Wire and rod Edition P1《航空航天系列.FE-WM 3504(X4CrNiMo16-5-1)型.焊丝和焊条用气熔填充材料..pdf
  • AECMA PREN 4685-2009 Aerospace series Titanium Ti10V2Fe3Al Bars D 110 mm Rm greater than or equal to 1 240 MPa Edition P1《航空航天系列.Ti10V2Fe3Al型钛棒材 D 110 mm Rm大于或等于1240兆帕.版本P1》.pdf AECMA PREN 4685-2009 Aerospace series Titanium Ti10V2Fe3Al Bars D 110 mm Rm greater than or equal to 1 240 MPa Edition P1《航空航天系列.Ti10V2Fe3Al型钛棒材 D 110 mm Rm大于或等于1240兆帕.版本P1》.pdf
  • AECMA PREN 4700-001-2009 Aerospace series Steel and heat resisting alloys Wrought products Technical specification Part 001 Plate sheet and strip Edition P 2《航空航天系列.钢和耐热合金.变形产品.技术规.pdf AECMA PREN 4700-001-2009 Aerospace series Steel and heat resisting alloys Wrought products Technical specification Part 001 Plate sheet and strip Edition P 2《航空航天系列.钢和耐热合金.变形产品.技术规.pdf
  • AECMA PREN 4700-002-2009 Aerospace series Steel and heat resisting alloys Wrought products Technical specification Part 002 Bar and section Edition P 2《航空航天系列.钢和耐热合金.变形产品.技术规范.第002.pdf AECMA PREN 4700-002-2009 Aerospace series Steel and heat resisting alloys Wrought products Technical specification Part 002 Bar and section Edition P 2《航空航天系列.钢和耐热合金.变形产品.技术规范.第002.pdf
  • AECMA PREN 4700-003-2009 Aerospace series Steel and heat resisting alloys Wrought products Technical specification Part 003 Tube Edition P 2《航空航天系列.钢和耐热合金.变形产品.技术规范.第003部分 管.版本P2》.pdf AECMA PREN 4700-003-2009 Aerospace series Steel and heat resisting alloys Wrought products Technical specification Part 003 Tube Edition P 2《航空航天系列.钢和耐热合金.变形产品.技术规范.第003部分 管.版本P2》.pdf
  • AECMA PREN 4700-004-2009 Aerospace series Steel and heat resisting alloys Wrought products Technical specification Part 004 Wire Edition P 2《航空航天系列.钢和耐热合金.变形产品.技术规范.第004部分 金属丝.版本P2.pdf AECMA PREN 4700-004-2009 Aerospace series Steel and heat resisting alloys Wrought products Technical specification Part 004 Wire Edition P 2《航空航天系列.钢和耐热合金.变形产品.技术规范.第004部分 金属丝.版本P2.pdf
  • 相关搜索
    资源标签

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

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