题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-10-20 18:46:47

[填空题]下面一段程序要实现的功能是:在内存中从地址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开始有一个长度为"的相关试题:

[填空题]下面一段程序要实现的功能是:在内存中从地址source开始有一个长度为100的字符串,测试该字符串中是否存在数字,如有则将DL的第五位置1,否则将该位置0。 BEGIN: MOV CX, 100 MOV SI,0 REPEAT: MOV SOURCE [SI] CMP AL,30H JB GOON GMP AL,______ JA GOON OR DL,20H JMP EXHT GOON: INC SI, LOOP REPFPATI AND DL,______ 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
[单项选择]

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

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

听下面一段对话,回答下列问题。
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.

[单项选择]

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

听下面一段对话,回答下列问题。
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.

[填空题]下面的函数strcat(str1,str2)实现将字符串str2拼接到字符串str1后面的功能。请填空使之完整。 char*strcat(str1,str2) char*str1,*str2; { char*t=str1; while( 【16】 )str1++; while( 【17】 ); return(t);}
[填空题]以下函数 sstrcat( )的功能是实现字符串的连接,即将 t 所指字符串复制到 s 所指 字符串的尾部。例如:s 所指字符串为 abcd,t 所指字符串为 efgh,函数调用后 s 所指字符串为 abcdefgh。请填空。 #include void sstrcat(char *s,char *t) { int n; n=strlen(s); while(*(s+n)=_________){s++; t++;} }
[简答题][说明]
以下C程序实现了将字符串转化为浮点数的功能。例如字符串“1234567”转化为浮点数1234567;字符串“100.02035”转化为浮点数100.02035;字符串“-100.02035”转化为浮点数-100.02035。程序中的部分变量的含义如表9-5。
表9-5
变量名
含 义
   intpart
   字符串转化为浮点数后的整数部分
   doublepart
   字符串转化为浮点数后的小数部分
   kdouble
   记录小数部分的阶次
   resoult
   字符串转化为浮点数后的
[简答题][说明]
以下C程序实现了将字符串转化为浮点数的功能。例如字符串“1234567”转化为浮点数1234567;字符串“100.02035”转化为浮点数100.02035;字符串“-100.02035”转化为浮点数-100.02035。程序中的部分变量的含义如表9-5。
表9-5
变量名
含 义
   intpart
   字符串转化为浮点数后的整数部分
   doublepart
   字符串转化为浮点数后的小数部分
   kdouble
   记录小数部分的阶次
   resoult
   字符串转化为浮点数后的结果
[填空题]下面一段程序的功能是,单击命令按钮后将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
[填空题]以下函数sstrcat( )的功能是实现字符串的连接,即将t所指字符串复制到s所指字符串的尾部。例如:s所指字符串为abcd,t所指字符串为efgh,函数调用后s所指字符串为abcdefgh。请填空。 #include <string.h> void sstrcat(char *s,char *t) {int n; n=strlen(s); while(*(s+n)=【 】{s++;t++;} }

我来回答:

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

订单号:

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