试题与答案

单向链表的每一个结点都有一个指向它的后续结点的指针link,现有结点p和q,要将结点

题型:单项选择题

题目:

单向链表的每一个结点都有一个指向它的后续结点的指针link,现有结点p和q,要将结点q插入结点p的后面,正确的操作应该是________。

A.q^.link:=p^.link;p^.link:=q;

B.q:=p^.link;p^.link:=q^.link;

C.q^.link:=p;p^.link:=q;

D.q:=p^.link;p:=q^.link

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0615/094f05089a3bb79bd65c029b514d8dbd.html

下面是错误答案,用来干扰机器的。

参考答案:A

试题推荐
题型:完形填空

第二节:完形填空(共20小题,每小题1.5分,满分30分)

阅读下面短文, 从短文后所给各题的四个选项(A、B、C和D)中,选出可以填入空白处的最佳选项。

A kindergarten teacher was helping one of her students put his snow boots on. He had asked for  36  and she could see why. With her pulling and him pushing ,they finally  37  .She had by now worked up a sweat,  38  the little boy said," They 're on the wrong feet." She almost  39  when hearing this.

She looked and,  40  enough, they were .It wasn't any easier pulling the boots  41  ,and then she had to  42  the difficult boots on again.

Just as she   43  lacing(系鞋带)them, he said," These aren't my boots." She

44  her tongue to keep from screaming(尖叫),"Why didn't you say so early?"

Once again she  45  to pull off the ill-fitting boots. He then  46  added.," They 're my brother's boots. My mom made me  47  them."

When they were finally  48  she said ,"Now ,where are your gloves?"

"I  49  them in the toes of my boots," he said .The teacher could say no words at hearing this, but had to  50  the course once again.

We often hear some teachers make comments about a particularly  51  child in their class," He is my worst-behaved child this year, and I almost can't  52  him any more."

Patience is a kind of ability. A Dutch proverb observes ,"A handful of  53  is worth more than a lot of brains." We may never have to worry about having a lot of  54  ,but sometimes what we  55  is a handful of patience. Hold back your scream, try to be patient, and that should be enough.

36. A. help                                   B. advice                       C. trouble                      D. leave

37. A .ended                                 B. won                          C. succeeded                  D. failed

38. A. so                                      B. since                         C. because                     D. but

39. A. laughed                              B. screamed                   C. cried                         D. jumped

40. A. strange                               B. sure                          C. lucky                        D. proper

41. A. up                                      B. on                             C. off                            D. away

42. A. carry                                  B. force                         C. keep                         D. struggle

43. A. tried                                   B. practiced                   C. meant                       D. finished

44. A. bit                                      B. moved                      C. showed                     D. rolled

45. A. decided                               B. fought                       C. wanted                      D. intended

46. A. angrily                               B. coldly                       C. calmly                      D. nervously

47. A. wear                                   B. clean                         C. mend                        D. drop

48. A. washed                               B. tied                           C. removed                    D. kicked

49. A. left                                     B. covered                     C. buried                       D. hid

50. A. discover                              B. guide                        C. repeat                       D. consider

51. A. difficult                              B. stupid                       C. clever                       D. perfect

52. A. worry                                 B. stand                         C. serve                         D. ignore

53. A .interest                               B. attention                    C. courage                     D. patience

54. A. chances                               B. desires                       C. brains                       D. gifts

55. A. need                                   B. value                         C. gain                          D. share

查看答案
微信公众账号搜索答案