问题 单项选择题

工资支付程序的输入数据包括一个字段,该字段用代码确定向员工按周付薪或按月付薪。后来又增加了两周一次付薪的第三种支付方式,但工资支付程序并没有改变。结果,当系统碰到两周一次付薪的员工时,工资额却是根据按周付薪的方式计算的。当这些员工抱怨工资少付时,公司才发现了这个错误。那么最可能避免这种错误的控制方法是()。

A.内部冗余计算 

B.有效性检查 

C.对数值进行清楚的检查 

D.检查点/重启处理

答案

参考答案:C

解析:

 对数值进行清楚的检查,提供未知数值的错误消息,可以发现两周一次付薪的员工的支付请求并且产生错误消息,而不是错误检查。选项(a)不正确,因为冗余计算用另一种方式检查计算结果(例如,验证机器的特性没有影响结果)。选项(b)不正确,因为输入本身是有效的,所以有效性检查不会发现这个错误。选项(d)不正确,因为检查点/重启处理允许操作员重启发生故障的程序而不用重新运行整个流程。

填空题
完形填空

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

阅读下面短文,掌握其大意,然后从36-55各题所给的四个选项(A、B、C和D)中,选出最佳选项.

I would like to suggest that for sixty to ninety minutes each evening all television broadcasting in the United States be forbidden by law.

Let us take a  36 , reasonable look at what the results might be if such a(an)  37  were accepted; families might use the time for a real family hour. Without the distraction of TV, they might   38  together after dinner and actually talk to one another. It is well known that many of our  39  —everything in fact, from the generation gap to the high divorce rate to some forms of  40  illness —are caused at least in part by  41  to communicate. By using the quiet family hour to  42  our problems, we might get to know each other better, and to like each other better.

On evenings when such talk is  43 , families could discover more active pastimes(消遣,娱乐. Freed from TV, forced to find their own activities, they might take a   44  together to watch the sunset  45  they might take a walk together.  46  free time and no TV, children and adults might discover reading. There is more entertainment in  47  than in a TV program.  48  report that the generation growing up with television can hardly write an English sentence,  49  at the college level.  50  is often learned from reading. A more literate new generation could be a product of the quiet hour.

A different  51  of reading might also be done as it was in the past: reading aloud. The quiet hour could become the story hour. When the  52  ends, the TV net works might be forced to  53  with better shows in order to get us back from our newly discovered activities.

At first glance, this idea seems radical(激进的. How will we spend the time then? The fact is: it has been only twenty-five years  54  television came to control American free time. Those of us thirty-five and older can  55  childhoods without television. It wasn’t that difficult.

36.A.valuable   B.pleasant    C.quick D.serious

37.A.advice      B.suggestion C.opinion     D.Offer

38.A.get around       B.stand still  C.meet  D.sit around

39.A.problems  B.trouble     C.affairs      D.Misfortune

40.A.physical    B.common   C.mental      D.familiar

41.A.attempt     B.failure      C.ability      D.permission

42.A.discuss     B.talk   C.make sure D.see to

43.A.impossible       B.unnecessary      C.funny       D.unpleasant

44.A.walk B.look  C.ride   D.rest

45.A.and   B.or     C.but    D.While

46.A.At    B.In     C.For   D.With

47.A.a fine poem     B.a good book     C.a quiet hour     D.a composition

48.A.Professors B.Scientists  C.Parents     D.Educators

49.A.yet    B.still   C.even  D.just

50.A.Writing    B.Skill  C.Speaking  D.Listening

51.A.form B.kind  C.method     D.step

52.A.reading     B.quiet hour C.activity     D.programme

53.A.come across     B.come about      C.come up   D.broadcast

54.A.before      B.since C.until  D.after

55.A.remind     B.remember C.recognize  D.Know