问题 单项选择题

测试是为了发现程序中的错误而执行程序的过程,下述有关测试的论述中错误的是( )。

A.证明错误存在

B.证明错误不存在

C.发现程序的错误

D.提供诊断信息

答案

参考答案:B

解析: Dijkstra曾说;“测试只能证明错误的存在,但不能证明错误的不存在”。测试并不能保证程序是完全正确的,成功的测试也不应该是没有发现错误的测试。选项B的说法是不正确的。

阅读理解

阅读理解。

    For 99% of human history, people took their food from the world around them. They ate all that they

could find, and then moved on. Then around 10,000 years ago, about 1% of human history, people learned

to farm the land. 

    The kind of food we eat depends on which part of the world we live in, or which part of our country

we live in. For example, in the south of China they eat rice, but in the north they eat noodles. In European

countries near the sea, people eat a lot of fish. In central Europe, away from the sea, people don't eat so

much fish, but they eat more meat. For example, in Germany and Poland, there are hundreds of different

kinds of sausages.

    In North America, Australia, and Europe, people eat with knives and forks. In China, people eat with

chopsticks. In parts of India and the Middle East, people use their fingers to pick up food.

    Nowadays it is possible to transport food easily from one part of the world to another. We can eat

whatever we like, at any time of the year. In Britain, bananas come from Africa; rice comes from India or

the U.S.A.; strawberries come from Chile or Spain. Food is a very big business. But people in poor countries

are still hungry while people in rich countries eat too much.

1. 10,000 years ago, people ______. [ ]

A. learned to farm the land

B. cooked different kinds of food

C. couldn't find food around them

D. transported food from one country to another

2. In North America, Australia, and Europe, people ______.[ ]

A. eat with chopsticks

B. eat with knives and forks

C. use their fingers to pick up food

D. use bread to pick up food

3. ______ have many kinds of sausages. [ ]

A. Chile and Spain

B. America and Australia

C. China and Japan

D. Germany and Poland

4. Which of the following is NOT true? [ ]

A. What we eat depends on where we live.

B. Poor countries are still having food problems.

C. Rich countries don't need food from others.

D. Nowadays we can eat whatever we like at any time of the year.

单项选择题