题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-04-07 06:39:24

[填空题]下面一段程序定义了一个名字为“books”的记录,其4个域的域名及数据类型如下:
域名 数据类型 数据长度
title 字符型 40
author 字符型 20
price 单精度实型 10
请将下面 【11】 补充完整。
Type books
title As String*40
author As string*20
Price 【11】
End Type

更多"下面一段程序定义了一个名字为“books”的记录,其4个域的域名及数据"的相关试题:

[填空题]下面一段程序要实现的功能是:在内存中从地址source开始有一个长度为100的字符串,测试该字符串中是否存在数字,如有则将DL的第五位置1,否则将该位置0。
BEGIN: MOV CX,100
MOV SI,0
REPEAT: MOV SOURCE[SI]
CMP AL,30H
JB GOON
GMP AL, 【7】
JA GOON
OR DL,20H
JMP EXIT
GOON: INC SI
LOOP REPFATI
AND DL,00FH
EXIT:
[单项选择]下面一段程序要实现的功能是:在内存中从地址SOURCE开始有一个长度为50的字符串,测试该字符串中是否存在数字,如有则将DL的第三位置1,否则将该位置0。 BEGIN: MOV CX,50 MOV SI, 0 LP: MOV SOURCE[SI] CMP AL,30H JB GOON CMP AL, JA GOON OR DL,20H JMP EXIT GOON: INC SI LOOP LP AND DL, EXIT: 则①,②中应为:
A. 35H,0DFH
B. 35H,0FFH
C. 39H,0DFH
D. 39H,OFFH
[填空题]下面一段程序的功能是,单击窗体弹出对话框。在对话框中输入一个文件名,窗体中输出该文件名的文件号。请填空。 Private Sub Form_ click( ) filename = InputSox (“请输入文件名”) Filecode = Open filename For Output As # Filecode Print filename; “的文件号是”; Filecode Close # Filecode End Sub
[填空题]下面一段程序的功能是,单击命令按钮后将D盘temp 目录下的staff.txt 文件内容读出,并在文本框Text1中显示出来。请填空。 Private Sub Command1_ Click( ) Dim Line As String, FileNo As Integer Dim People As String FileNo = FreeFile Open "D:/temp/staff.txt" For Input As ______ DO While Not ______ Line Input #FileNo, Line People = People + Line + Chr(13) + Chr(10) Loop Text1.Text = People End Sub
[填空题]响应某个事件后所执行的操作通过一段程序代码来实现,这样的一段程序代码叫做 【6】
[填空题]【说明】 下面一段程序从给定的数组b中找出值最小的元素,并输出该元素的数组下标、内存地址minaddr以及元素值本身。函数findmin负责在给定的数组中查找最小值,并返回最小值所在的内存地址,函数有三个参数:array是所要处理的数组;size是数组的大小;index负责从函数返回具有最大值的元素在数组中的数组下标。请填充空白,使其成为一个合乎要求的完整程序。 【程序】 //程序开始 #include<iostream.h> int *findmin(int *array, int size, int &index); void main( ) { /****** 变量定义部分 ***********/ int b[10] = {34, 34, 23, 89, 1, 2, 13, 42, 5, 54}; (1) ; int idx; /******* 寻找最小值 ************/ minaddr = findmin(b, sizeof(b)/sizeof(int), idx); /******* 输出最小值的有关信息 ************/ cout << "Min value index: "<<idx<<end1 <<"Min value address: "<<minaddr<<end1 <<"Min value: "<< (2) <<end1; } /******* 函数findmin的定义部分 ************ int *findmin(int *array, int size, int &index) { int min = 0;//max 是当前具有最小值的数组元素下标值 for(int i = 1; (3) ; i++) { if(array[i]< (4) ) min = i; } (5) ; return array + min;//返回最小值所在内存地址 }
[填空题]执行下面一段程序后,(A)=______,(B)=______。 MOV SP,#60H MOV A,#10H MOV B,#01H PUSH A PUSH B POP A POP B
[单项选择]下面一段小程序是判断一个长度为n的字符数组是否中心对称。例如,“abcddcba”或“abcdcba”就是中心对称。作为内部边界值,应填入( )内的判断是______。
Bool center-sym(char S[], int n)
//判断字符组S中的n各字符是否中心对称。若是则函数返回true,否则返回false
Int i=1, j=n
while( )
If(s[i-1]!=s[j-1]) return false; //i,j从1开始计数,数组从0开始
Elsei=i+1; j=j-1;
Return true;
A. i<j
B. i==j(判等)
C. i>j
D. i!=j(判不等)
[单项选择]STD表的结构为:姓名(C,8)、课程名(C,16)、成绩(N,3,0),下面一段程序用于显示所有成绩及格的学生信息。
SKF TALK OFF
USE STD
CLEAR
GO TOP
DOWHILE ______
IF 成绩>=60
“姓名:”+姓名,;
“课程:”+课程名,;
“成绩:”+STR(成绩,3,0)
ENDIF
SKIP
ENDDO
USE
SET TALK ON
RETURN
上述程序的循环条件部分(程序第5行)可填入( )。
A. EOF(
B. NOTEOF
C. BOF(
D. NOTBOF
[单项选择]

听下面一段对话,回答下列问题。
 

听下面一段对话,回答下列问题。

听下面一段对话,回答下列问题。
W: Hi, Bill, can you tell me how it happened
M: Sure. I was mountain climbing in New Hampshire in 1982. Suddenly the weather became really bad. There was a lot of snow and we couldn’t see anything. We got lost. Well, we spent four days on the mountain. The temperature was 20 degrees below zero, We didn’t have any equipment or food.
W: So what happened I guess someone found you, right
M: Yes, but we were very sick. I couldn’t move my legs because of the cold. f spent two months in the hospital. The doctors removed my legs.
W: Right. So you lost your legs, but you want to try your best to stay active.
M: That’s right. In fact, I decided to make some new legs for myself. I realized that no one had to be physically disabled. We can use modern technology to help us.
W: And you built these great new legs. Can you go mountai
A. Design new climbing shoes.
B. Establish a club for the disabled.
C. Use technology to fight his disability.

[单项选择]在一段汇编程序中多次调用另一段程序,用宏指令比用子程序实现______。
A. 占内存空间小,但速度慢
B. 占内存空间大,但速度快
C. 占内存空间相同,速度快
D. 占内存空间相同,速度慢
[单项选择]

听下面一段对话,回答下列问题。
 

听下面一段对话,回答下列问题。
W: Hi, Bill, can you tell me how it happened
M: Sure. I was mountain climbing in New Hampshire in 1982. Suddenly the weather became really bad. There was a lot of snow and we couldn’t see anything. We got lost. Well, we spent four days on the mountain. The temperature was 20 degrees below zero, We didn’t have any equipment or food.
W: So what happened I guess someone found you, right
M: Yes, but we were very sick. I couldn’t move my legs because of the cold. f spent two months in the hospital. The doctors removed my legs.
W: Right. So you lost your legs, but you want to try your best to stay active.
M: That’s right. In fact, I decided to make some new legs for myself. I realized that no one had to be physically disabled. We can use modern technology to help us.
W: And you built these great new legs. Can you go mountain climbing again
M:
A. Low temperature.
B. Terrible weather.
C. An unsuccessful operation.

[单项选择]当a=1、b=3、c=5、d=4时,执行下面一段程序后,x的值为______。 If a<b Then If c<d Then x=1 Else If a<c Then If b<d Then x=2 Else x=3 End If Else x=6 End If End If Else x=7 End If
A. 1
B. 2
C. 3
D. 6

我来回答:

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

订单号:

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