题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-01-20 01:30:51

[单项选择]假定在工程文件中有一个标准模块,其中定义了如下记录类型 Type Books Name As String * 10 TelNum As String * 20 End Type 要求当执行事件过程Command1_Click时,在顺序文件Person.txt中写入一条记录。下 列能够完成该操作的事件过程是:

更多"假定在工程文件中有一个标准模块,其中定义了如下记录类型 Type B"的相关试题:

[单项选择]假定在工程文件中有一个标准模块,其中定义了如下记录类型 Type Books Name As String*10 TelNum As String*20 End Type 要求当执行事件过程Command1_Click时,在顺序文件Person.txt中写入一条记录。下列能够完成该操作的事件过程是:()
A. Ptivate Sub Command1_Click() Dim B As Books Open"c:/Persotxt"For Output As#1 Name=InputBox("输入姓名") TelNum=InputBox("输入电话号码") Write#1,Name,TelNum Close#1 End Sub
B. Private Sub Command1_Click() Dim B As Books Open"c:/Persotxt"For Input As#1 Name=InputBox("输入姓名") TelNum=InputBox("输入电话号码") Print#1,Name,TelNum Close#1 End Sub
C. Private Sub Command1_Click() Dim B As Books OPQl"c:/Persotxt"For Output As#1 Nallle=InputBox("输入姓名") TelNum=InputBox("输入电话号码") Write#1,B Close#1 End Sub
D. Private Sub Command1_Click() Dim B As Books Open"c:/Persotxt"For lnput As#1 Name=InputBox("输入姓名") TelNum=InputBox("输入电话号码") Write#1,Name,TelNum Close#1 End Sub
[单项选择]假定在工程文件中有一个标准模块,其中定义了如下记录类型: Type Books Name As String*10 TelNum As String*20 End Type 要求当执行事件过程Command1_Click时,在顺序文件Person. txt中写入一条记录。下列能够完成该操作的事件过程是______。
A. Private Sub Command1_Click() Dim B As Books Open"c:/Perso txt" For Output As #1 Name=InputBox("输入姓名") TelNum=InputBox("输入电话号码") Write #1, Name, TelNum Close #1 End Sub
B. Private Sub Command1_Click() Dim B As Books Open"c:/Person txt" For Output As #1 Name=InputBox("输入姓名") TelNum=InputBox("输入电话导码") Print #1, Name, TelNum Close #1 End Sub
C. Private Sub Command1_Click() Dim B As Books Open"c:/Perso txt" For Output As #1 Name=InputBox("输入姓名") TelNum=InputBox("输入电话号码") Print #1, B Close #1 End Sub
D. Private Sub Command1_Click() Dim B As Books Open "c:/Person txt" For Output As #1 Name=InputBox("输入姓名") TelNum=InputBox("输入电话号码") Print #1, B Name, TelNum Close #1 End Sub
[单项选择]假定在工程文件中有一个标准模块,其中定义了如下记录类型 Type Books Name As String * 10 TelNum As String * 20 End Type 要求当执行事件过程Command1_Click时,在顺序文件Person.txt中写入一条记录。下 列能够完成该操作的事件过程是:
[单项选择]

设在工程文件中有—个标准模块,其中定义了如下记录类型:Type Books Name As String *10 TelNum As String*20End Type在窗体上画—个名为Command1的命令按钮,要求当执行事件过程Command1_Click时,在顺序文件Petson.txt中写入一条Books类型的记录。下列能够完成该操作的事件过程是()。


A. Private Sub Command1_ Click() Dim B As Books Open "Persotxt" For Output As #1 Name=InputBox(“输入姓名”) TelNum=InputBox(“输入电话号码”) Write #1, Name, TelNum Close #1End Sub
B. Private Sub Command1_ Click() Dim B As Books Open "Persotxt" For Input As #1 Name=InputBox(“输入姓名”) TelNum=InputBox(“输入电话号码”). Print #1, Name, TelNum Close #1End Sub
C. Private Sub Command1_Click() Dim B As Books Open "Persotxt" For Output As #1 Name= InputBox(“输入姓名”) TelNum=InputBox(“输入电话号码”) Write #1,B Close #1End Sub
D. Private Sub Command1_ Click() Open "Perso txt" For Input As #1 Name=InputBox(“输入姓名”) TelNum=InputBox(“输入电话号码”) Print #1, Name, TelNum Close #1End Sub
[单项选择]设在工程中有一个标准模块,其中定义了如下记录类型 Type Books Name As String* 10 TelNum As String * 20 End Type 在窗体上画一个名为 Command1的命令按钮,要求当执行事件过程Command1 Click时, 在顺序文件Person.txt中写入一条记录。 下列能够完成该操作的事件过程是 ______。
A. Private Sub Command1_Click( ) Dim B As Books Open "c:/Persotxt" For Output As #1 Name = InputBox("输入姓名") TelNum = InputBox("输入电话号码") Write #1, Name, TelNum Close #1 End Sub
B. Private Sub Command1_Click( ) Dim B As Books Open "c:/Persotxt, For Input As # 1 Name = lnputBox("输入姓名") TelNum = InputBox("输入电话号码") Print #1, Name, TelNttm Close #1 End Sub
C. Private Sub Command1_Click( ) Dim B As Books Open "c:/Persotxt" For Output As #1 Name = InputBox("输入姓名") TelNum = InputBox("输入电话号码") Write # 1, B Close #1 End Sub
D. Private Sub Command1_Click( ) Dim B As Books Open"c:/Persotxt" For Input As #1 Name=InputBox("输入姓名") TelNum=InputBox("输入电话号码") Print #1,Name,TelNum Close #1 End Sub
[单项选择]设在工程中有一个标准模块,其中定义了如下记录类型Type Books Name As String *10 TelNum As String *20End Type在窗体上画一个名为Command1的命令按钮,要求当执行事件过程Command1_ Click时,在顺序文件Person.txt中写入一条记录。下列能够完成该操作的事件过程是______。
A. Private Sub Command1_Click() Dim B As Books Open "c:/Persotxt" For Output As #1 Name=InpuBox(“输入姓名”) TelNum=InputBox(“输入电话号码”) Write #1,Name,TelNum Close #1End Sub
B. Private Sub Command1_ Click() Dim B As Books Open "c:/Persotxt" For Input As #1 Name=InputBox(“输入姓名”) teLNum=InputBox(“输入电话号码”) Ptint #1,Name,TelNum Close #1End Sub
C. Private Sub Command1_ Click() Dim B As Books Open "c:/Persotxt" For Output As #1 Name=InputBox(“输入姓名”) TelNum=InputBox(“输入电话号码”) Write #1,B Close #1End Sub
D. Private Sub Command1_ Click() Dim B As Books Open "c:/PersotxT" For Input As #1 Name=InputBox(“输入姓名”) TelNum=InputBox(“输入电话号码”) Print #1 Nam TelNum Close #1End Sub
[单项选择]设在工程中有一个标准模块,其中定义了如下记录类型 Type Books Name As String * 10 TelNum As String * 20 End Type 在窗体上画一个名为Command1的命令按钮,要求当执行事件过程Command1_Click时, 在顺序文件Person.txt中写入一条记录。下列能够完成该操作的事件过程是______。
A. Private Sub Command1_Click() Dim B As Books Open"c:/Perso txt" For Output As #1 Name=InputBox("输入姓名") TelNum=InputBox("输入电话号码") Write #1,Name,TelNum Close #1 End Sub
B. Private Sub Command1_Click() Dim B As Books Open"c:/Persotxt" For Input As #1 Name=InputBox("输入姓名") TelNum=InputBox("输入电话号码") Print #1. Nam TelNum Close #1 End Sub
C. Private Sub Command1_Click() Dim B As Books Open" c:/Perso txt" For Output As #1 Name=InputBox("输入姓名") TelNum=InputBox("输入电话号码") Write #1, B Close #1 End Sub
D. Private Sub Command1_Click() Dim B As Books Open" c:/Perso txt" For Input As #1 Name=InputBox("输入姓名") TelNum=InputBox("输入电话号码") Print #1, Name, TelNum Close #1 End Sub
[单项选择]设在工程中有一个标准模块,其中定义了如下记录类型: Type Books Name As String * 10 TelNum As String * 20 EndType 在窗体中添加一个名为Commandl的命令按钮,要求单击命令按钮时,在顺序文件 P1. txt中写入一条记录。下列能够完成该操作的程序段是 ( )
A. Private Sub Commandl_Click() Dim B As Books Open"d:/P1.txt"For Output As #1 Name=InputBox( "姓名") TelNum=InputBox("电话号码") Write #1, Name, TelNum Close #1 EndSub
B. Private Sub Commandl_Click() Dim B As Books Open" d:/Ptxt" For Input As Name=InputBox ("姓名") TelNum=InputBox ("电话号码") Print #1, Name, TelNum Close #1 EndSub
C. Private Sub Commandl_Click() Dim B As Books Open"d:/P1. txt"For Output As Name=InputBox("姓名") TelNum=InputBox ("电话号码") Write #1,B Close #1 EndSub
D. Private Sub Commandl Cliek() Open"d:/P1.txt" For Input As Name=InputBox("姓名") TelNum=InputBox ("电话号码") Print #1,Name,TelNum Close #1 EndSub
[单项选择]设在工程中有一个标准模块,其中定义了如下记录类型:Type Books Name As String *10 TelNum As String*20 End Type 在窗体上画一个名为Command1的命令按钮,要求当执行事件过程Command1_ Click时,在顺序文件 Person.txt中写入一条记录。下列能够完成该操作的事件过程是______。
A. Private Sub Command1_ Click() Dim x As Books Open "C:///Perso txt" for Output As #1 Name=InputBox(“输入姓名”) TelNum=InPutBox(“输入电话号码”) Write #1,Name,TelNum Close #1 End Sub
B. Private Sub Command1_ Click() Dim x As Books Open "c:/Perso txt" for Input As #1 Name=InputBox(“输入姓名”) TelNum=InputBox(“输入电话号码”) Print #1, Name, TelNum Close #1End Sub
C. Private Sub Command1_ Click() Dim x As Books Open "c:/Perso txt" for Output As #1 Name=InputBox(“输入姓名”) TelNum= InputBox(“输入电话号码”) Write #1,x Close #1End Sub
D. Private Sub Command1_ Click() Dim x As Books Open "c:/Perso txt" for Input As #1 Name= InputBox(“输入姓名”) TelNum=InputBox(“输入电话号码”) Print #1,Name,TeINum Close #1End Sub
[单项选择]设在工程中有一个标准模块,其中定义了如下记录类型: Type Books Name As String *10 TelNum As String *20 End Type 在窗体上画一个名为Command1的命令按钮,要求当执行事件过程Command1_Click时,在顺序文件Person.txt中写入一条记录。下列能够完成该操作的事件过程是
A. Private Sub Command1_Click() Dim B As Books Open "c:/Persotxt" For Output As #1 Name=InputBox(“输入姓名”) TelNum=InputBox(“输入电话号码”) Write #1,Name,TelNum Close #1 End Sub
B. Private Sub Command1_Click() Dim B As Books Open "c:/Persotxt" For Input As #1 Name=InputBox(“输入姓名”) TelNum=InputBox(“输入电话号码”) Print #1,Name,TelNum Close #1 End Sub
C. Private Sub Command1_Click() Dim B As Books ppen "c:/Persotxt" For Output AS #1 Name=InputBox(“输入姓名”) TelNum=InputBox(“输入电话号码”) Write #1,B Close#1 End Sub
D. Privte Sub Command1_Click() Open "c:/Persotxt" For Input As #1 Name=InputBox(“输入姓名”) TelNum=InputBox(“输入电话号码”) Print#1,Name,TelNum Close #1 End Sub
[单项选择]假定在一个宫颈癌与生育关系的病例对照研究中,100例宫颈患者中有25人生育,100例对照中有10例未生育,故生育使妇女患宫颈癌的危险增大
A. 2.0倍
B. 3.0倍
C. 2.5倍
D. 1.0倍
E. 1.5倍
[单项选择]设当前表文件中含有字段NAME,系统中有一内存变量的名称也是NAME,下面命令 NAME显示的结果是
A. 内存变量NAME的值
B. 字段变量NAME的值
C. 与该命令之前的状态有关
D. 错误信息
[单项选择] 在J2EE中,如果去编译并运行下面的代码,在这里假定在当前目录下没有Hello.txt文件: import java.io.*;  public class Mine {  public static void main(String argv[]){      Mine m=new Mine();  System.out.println(m.amethod());   }  public int amethod() {     try {  FileInputStream dis=new FileInputStream("Hello.txt");  }  catch (FileNotFoundException fne) {  System.out.println("No such file found");          return -1;     }  catch(IOException ioe)  { }     finally {  System.out.println("Doing finally");     }  return 0;   } }  结果会输出()。 
A. No such file found
B. No such file found -1
C. No such file found doing finally -1
D. 0
[单项选择]一个建设工程由多个单位工程组成时,工程文件按( )立卷。
A. 工程项目
B. 单项工程
C. 分部工程
D. 单位工程
[单项选择]假定在窗体上建立了一个通用对话框,其名称为Cd1,用下面的语句可以建立一个对话框: Cdl. ShowPrinter 与该语句等价的语句是 ( )
A. Cd1. Action=2
B. Cd1. Action=3
C. Cd1 Action=4
D. Cd1. Action=5

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码