问题 问答题 简答题

写出1100、1101、1110、1111对应的汉明码。

答案

参考答案:

有效信息均为n=4位,假设有效信息用b4b3b2b1表示

校验位位数k=3位,(2k>=n+k+1)

设校验位分别为c1、c2、c3,则汉明码共4+3=7位,即:c1c2b4c3b3b2b1

校验位在汉明码中分别处于第1、2、4位

c1=b4⊕b3⊕b1

c2=b4⊕b2⊕b1

c3=b3⊕b2⊕b1

当有效信息为1100时,c3c2c1=110,汉明码为0111100。

当有效信息为1101时,c3c2c1=001,汉明码为1010101。

当有效信息为1110时,c3c2c1=000,汉明码为0010110。

当有效信息为1111时,c3c2c1=111,汉明码为1111111。

完形填空

阅读下列短文,从短文后各题所给的A、B、C、D四个选项中,选出可以填入空白处的最佳选项,并在答题卡上将该项涂黑。

     A poor girl was selling flowers in the street  21  Christmas Eve. Her parents were ill, so she  22  get money for food. It was very cold. The girl felt cold and hungry. She stopped  23  a beautiful house. The girl knocked  24   the door and a man came out. She asked  25  he needed some flowers. The man said he didn't want  26  . She left the house and felt tired. She sat down at the  27  of a tall wall. She looked  28  the flowers. 'Ihe flowers  29  very nice. She suddenly had an unusual feeling. She felt she became light,   30  slowly she began to fly into the sky. She  31  higher and higher and at last she found herself on the clouds. A group of people were coming to meet her. At the head of them  32  her granny. She welcomed her and asked her why she didn't  33  .The girl told her that she had to  34  to get money became her parents were badly ill. Granny told her  35  and gave her lots of beautiful clothes and delicious food. The girl laughed  36  .   

     It snowed  37  that night. The girl died  38  a smile on her face.   39  , people in the beautiful house began to sing Christmas songs and   40  .

21. A.  in              
22. A. could            
23. A. in front of      
24. A. at                
25. A. what             
26. A. some              
27. A. head              
28. A. for              
29. A. feels            
30. A. and              
31. A. went              

32. A. has              

33. A. get money        

34. A. fly into the sky  

35. A. didn't worry      

36. A. happy            

37. A. heavily          

38. A. had              

39. A. By the way 

40. A. looked after the girl  B. on              

B. had better      

B. in the front of

B. to              

B. why            

B. any            

B. foot            

B. up              

B. felt            

B. but            

B. got            

B. was            

B. go out          

B. come here      

B. not to worry    

B. happier        

B. heavy          

B. has            

B. At the same time

B. talked about the girl C. at            

C. would like    

C. behind        

C. in            

C. if            

C.  nothing      

C. top            

C. (不填)        

C. smelt          

C. so            

C. looked        

C. had            

C. come to see her

C. sell flowers  

C. to not worry  

C. happiest      

C. largely        

C. with          

C. except the girl

C. enjoyed themselves D.(不填)      

D. had to      

D. beside      

D. for          

D. when        

D. something    

D. middle      

D. at          

D. smells      

D. or          

D. flew        

D. were        

D. stay at home

D. help others  

D. to worry not

D. happily      

D. strongly    

D. without      

D. By way 

D. watched themselves     

单项选择题