题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-05-10 23:00:00

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

听下面一段对话,回答第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.

[填空题]【说明】
下面的程序功能的功能是以行为单位对字符串按下面的条件进行排序。排序条件为:从字符串中间一分为二,右边部分按字符的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++;} }
[简答题][说明]
以下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++;} }
[填空题]以下函数sstrcat的功能是实现字符串的连接,即将t所指字符串复制到s所指字符串的尾部。例如:,所指字符串为abed,t所指字符串为efgh,调用函数sstrcat后s所指字符串为 abcdefgh。请填空。
#inehde <stdio.h>
#include <string.h>
void sstuat(char * 9,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
我已记住账号密码