建立随机文件F1.DAT,存放职工姓名和编号,然后把该文件中数据读出显示。请在【 】和【 】处将程序补
要建立一个学生成绩的随机文件,如下定义了学生的记录类型,由学号、姓名、三门课 程成绩(百分制)组成,下列程序段正确的是()。
A.Typepestudl no As Integer name As String score(1 To 3)As Single End Type
B.Typestudl no As Integer no As Integer name As String*10 score()As Single End Type
C.Typestudl no As Integer name As String*10 score(1 To 3)As Single End Type
D.Typestudl no As Integer name As String score(1 To 3)As Single End Type
要建立一个随机文件记录学生的信息,如下定义了学生的记录类型,由学号、姓名、5门课程成绩(百分制)组成,下列的定义正确的是()。
A.Type stu no As Integer name As String score(1 To 5)AS Single End Type
B.Type stu no As Integer name As String*10 score()As Single End Type
C.Type stu no As Integer name As String*10 score(1 To 5)As single End Type
D.Type stu no As Integer name As String score()As Single End Type
【程序说明】 设有表文件“职工.DBF”(有字段:职工编号、姓名、民族)和“工资.DBF”(有字段:职工编号、工资),要在它们之间建立逻辑连接,然后为每个少数民族职工的工资增加 200元,最后显示全体职工的职工编号、姓名和工资。
【程序】
SET TALK OFF
SELECT 1
USE 职工 (5) TO ZGBH
SELECT 2
USE 工资
SET RELATION TO (6)
REPLACE 工资 WITH (7) FOR (8)
LIST职工编号, (9) ,工资
SET RELATION TO
CLOSE DATA
SET TALK ON
RETURN
(5)
A.INDEX ON 姓名
B.INDEX TO 职工编号
C.INDEX ON 职工编号
D.INDEX ON 职工编号 OF ZGBH
要建立一个学生成绩的随机文件,如下定义了学生的记录类型,由学号、姓名、三门课程成绩(百分制)组成,下列程序段正确的是
A.Type stud1 no As Integer name As String score (1 To 3) As Single End Type
B.Type stud1 no As Integer name As String * 10 score () As Single End Type
C.Type stud1 no As Integer name As String * 10 score (1 To 3) As Single End Type
D.Type stud1 no As Integer name As String score (1 To 3) As Single End Type
要建立一个随机文件记录学生的信息,如下定义了学生的记录类型,由学号、姓名、5门课程成绩(百分制)组成,下列的定义正确的是()。
A.Type sru no As Integer name As String score(1 To 5)As Single End Type
B.Type stu no As Integer name As String*10 score()As Single End Type
C.Type stu no As Integer name As String*10 score(1 To 5)As Single End Type
D.Type stu no As Integer name As String score()As Single End Type
要建立一个随机文件记录学生的信息,下列定义了学生的记录类型,由学号、姓名、五门课程成绩(百分制)组成,下列的定义正确的是()。
A.Type stu no As Integer name As String score(1 To 5)As Single End Type
B.Type stu no As Integer name As String*10 score()As Single End Type
C.Type stu no As Integer name As String*10 score(1 To 5)As Single End Type
D.Type stu no As Integer name As String score()As Single End Type
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!