问题 单项选择题

软件调试的目的是______。

A.发现错误

B.改正错误

C.改善软件的性能

D.挖掘软件的潜能

答案

参考答案:B

解析: 在对程序进行测试时会发现错误,这就要进行程序调试(排错)。程序调试活动由三部分组成:一是错误定位,根据错误的外部表现形式,确定程序中出错的位置,找出错误的内在原因;二是对程序进行修改,排除这个错误;三是进行回归测试,防止引进新的错误。所以程序调试的目的就是诊断和改正程序中的错误。软件调试不能改善软件的性能,也不能挖掘软件的潜能。

单项选择题
单项选择题

When Dave was eighteen, he bought a secondhand car for 200 so that he could travel to and from work more (1) than by bus. It worked quite well for a few years, but then it got so old, and it was costing him (2) much in repairs that he decided that he had better (3) it.

He asked among his friends to see if anyone was particularly (4) to buy a cheap car, but they all knew that it was falling to pieces, so (5) of them had any desire to buy it. Dave’s friend Sam saw that he was (6) when they met one evening, and said, "What’s (7) , Dave"

Dave told him, and Sam answered, "Well, what about advertising it in the paper You may (8) more for it that way than the cost of the advertisement!" Thinking that Sam’s (9) was sensible, he put an advertisement in an evening paper, which read "For sale: small car, (10) very little petrol, only two owners. Bargain at 50. " For two days after the advertisement first appeared, there was no (11) . But then on Saturday evening he had an enquiry. A man rang up and said he would like to (12) him about the car. "All right, " Dave said, feeling happy. He asked the man whether ten o’clock the next morning would be (13) or not. "Fine, " the man said, "and I’ll (14) my wife. We intend to go for a ride in it to (15) it. "

The next morning, at a quarter to ten, Dave parked the car in the square outside his front door, (16) to wait there for the people who had (17) his advertisement. Even Dave had to (18) that the car really looked like a wreck. Then, soon after he had got the car as clean (19) it could be, a police car stopped just behind him and a policeman got out. He looked at Dave’s car and then said, "Have you reported this (20) to us yet, sir\

3()

A.keep 

B.repair 

C.sell 

D.throw