已知赋值语句 s=”Good Bye!”,则下列定义变量s正确的是()
A.im s as integer
B.im s as string
C.im s as double
D.im s as long
B、im s as string
A.im s as integer
B.im s as string
C.im s as double
D.im s as long
B、im s as string
(Peter = P ; Sally = S)
P:Hello! This is Peter speaking______51_______,please?
S:I&39;m sorry. Professor Johnson is not here at the moment. This is his assistant ,Sally.______52______?
P:Yes. Please tell the professor that I* d like to ask for sick leave for tomorrow.
S: Sorry to hear that. May I ask______53_______with you?
P: I&39;m running a fever. I&39;ve caught a cold.
S:0h,________54_______?
P:No, not very serious, but the doctor told me to stay in bed and have good rest.
S:I see. I&39;ll___55________as soon as he comes back.
P:Thank you. Goodbye!
S:Bye!
Linda:Hello! This is Linda speaking.
Chris:Hello, Linda, this is Chris. _______66________ this Friday evening?
Linda:Yes, why?
Chris:There‘s a good concert, and I’ve got two tickets. I wonder ________67_______.
Linda:That‘s great! _________68_________?
Chris:7 o‘clock. But how about _________69__________ at 6:45?
Linda:OK. I think I can make it.
Chris:After the concert, ________70_________, shall we?
Linda:Wonderful! Why don‘t we go to a Chinese restaurant?
Chris:Why not? OK, see you Friday.
Linda:See you then. Bye!
__________
提示:Peter给Johnson教授打电话请病假,接电话的是教授的助手 Sally。 (Peter=P;Sally=S)
P:Hello! This is Peter speaking.__________51________ ,please?
S:I’m sorry.Professor Johnson is not here at the moment.This is his assistant,Sally.________52________?
P:Yes.Please tell the professor that l’d like to ask for sick leave for tomorrow.
S:Sorry to hear that.May I ask________53________ with you?
P:I’m running a fever.I’ve caught a cold.
S:Oh,________54________ ?
P:N0,not very serious,but the doctor told me to stay in bed and have a good rest.
S:I see.I’ll________55________ as soon as he comes back.
P:Thank you.Goodbye!
S:Bye!
51_____________
53__________________________
52__________________________
55__________________________
54__________________________
请帮忙给出每个问题的正确答案和分析,谢谢!
Linda : Hello! This is Linda speaking.
Chris : Hello, Linda, this is Chris. 51 this Friday evening?
Linda : Yes, why ?
Chris:There’s a good concert,and I’ve 只ot two ticketsf I wonder___52___.
Linda:That’ s great! 53 ?
Chris:7 o’clock. But how about 54 at 6:45?
Linda :OK. I think I can make it.
Chris :After the concert, 55 , shall we?
Linda:Wonderful! Why don’t we go to a Chinese restaurant?
Chris:Why not? OK,see you Friday.
Linda :See you then. Bye!
A.20和30
B.20和31
C.21和30
D.21和31
E.我不会
已知P结点是某双向链表的中间结点,试从下列提供的答案中选择合适的语句序列。
a.在P结点后插入S结点的语句序列是________。
b.在P结点前插入S结点的语句序列是________。
c.删除P结点的直接前驱结点的语句序列是________。
d.删除P结点的直接后继结点的语句序列是________。
e.删除P结点的语句序列是________。
(1) P->next=P->next->next;
(2) P->prio u=P->prio u->prio u;
(3) P->next=S;
(4) P->prio u=S;
(5) S->next=P;
(6) S->prio u=P;
(7) S->next=P->next;
(8) S->prio u=P->prio u;
(9) P->prio u->next=P->next;
(10) P->prio u->next=P;
(11) P->next->prio u=P;
(12) P->next->prio u=S;
(13) P->prio u->next=S;
(14) P->next->prio u=P->prio u;
(15) Q=P->next;
(16) Q-P->prio u;
(17) free(P) ;
(18) free(Q) ;
A.q—>next=s—>next;s—>next=p;
B.s—>next=P;q—>next=s—>next;
C.p—>next=s—>next;s—>next=q;
D.s—>next=q;p—>next=s—>next;
A.x=1和y=1均为赋值语句
B.x=1和y=l均为关系表达式
C.x=1为关系表达式,y=1为赋值语句
D.x=1为赋值语句,y=l为关系表达式