题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-10-09 07:02:31

[单项选择]下面一段程序要实现的功能是:在内存中从地址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

更多"下面一段程序要实现的功能是:在内存中从地址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.

[单项选择]

听下面一段对话,回答第14至第17题。
 

听下面一段对话,回答第14至第17题。
M: Hi, mom.
W: There you are. I’m getting worried. It’s so late.
M: Yes. I ran into Linda and we went to a pub. She told me a funny thing.
W: Oh What was that
M: Well, she was driving home after work, and she suddenly saw an old lady on her hands and knees in the middle of the road.
W: Really
M: Yes, Linda was so shocked that she stopped suddenly and the car behind crashed into hers.
W: Was she hurt
M: No.
W: And what was the old lady doing
M: I am just coming to that. So Linda got out of her car and saw the old lady pick up something and walk away.
W: Lucky indeed. Linda didn’t run her over.
M: Then a policeman came. But he didn’t believe what Linda said.
W: Well ...
M: Luckily there was a witness, a man waiting for a bus. He saw it all. Guess what the old lady was doingA. Seeking passers-by’s help.
B. Trying to stand up.
C. Looking for something.
D. Calling the police.

[填空题]下面的函数strcat(str1,str2)实现将字符串str2拼接到字符串str1后面的功能。请填空使之完整。 char*strcat(str1,str2) char*str1,*str2; { char*t=str1; while( 【16】 )str1++; while( 【17】 ); return(t);}
[填空题]【说明】
下面的程序功能的功能是以行为单位对字符串按下面的条件进行排序。排序条件为:从字符串中间一分为二,右边部分按字符的ASCII值降序排序,排序后左边部分与右边部分进行交换。如果原字符串长度为奇数,则最中间的字符不参加排序,字符仍放在原位置上
例如:位置:0 1 2 3 4 5 6 7
源字符串:h g f e a b c d
则处理后字符串:d c b a h g f e
函数ReadDat( )实现从文件in.dat中读取数据(每行字符串长度均小于80),函数WriteDat( )把结果dat输出到文件out.dat中。
#include<stdio.h>
#include<siring.h>  
#include<conio.h>
char dat[20] [80];
void jsSort( )

int i,j,k,strl;
char ch;
for(i=0;i<20;i++)
strl=strlen(date[i]);
for(j= (1) ;j<strl;j++) /*对后半部分的字符串进行排序*/
for(k=j+1;k<strl;k++)
if( (2) )

ch=dat[i] [j];
dot[i] [j]=dat[i] [k];
dat[i] [k]=ch;

for(j=0; (3) j++) /*前后两部分进行交换*/

ch = date [i] [j];
dote [i] [j] = date [i] [(strl+1)/2+j];
dat [i] [(strl+1)/2+j]=ch;



void main( )

reodDat( );
isSort( );
writeDot( 
[填空题]以下函数 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++;} }

我来回答:

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

订单号:

截图扫码使用小程序[完全免费查看答案]
请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码