问题 单项选择题

对建立良好的程序设计风格,下列描述正确的是( )。

A.程序应该简单、清晰、可读性好

B.符号名的命名只需要符合语法

C.充分考虑程序的执行效率

D.程序的注释可有可无

答案

参考答案:A

解析: “清晰第一,效率第二”,在考虑到程序的执行效事的同时,一定要保证程序清晰、可读;对符号名的命名,除了要符合语法要求外,还要具有一定的含义;程序的注释可以帮助程序员理解程序,不是可有可无的。

阅读理解

Scientists in Mexico have just begun a new study of one of the world’s biggest pyramids: the Pyramid of the Sun, north of Mexico City. They’re putting lots of small, high-tech machines under the pyramid to try to unlock some of its secrets. For thousands of years, people have tried to uncover the secrets of the pyramids.

The people who built the pyramids made lots of secret doors and rooms to stop robbers from finding the treasures inside. However, there always have been some smart thieves in history. Now, almost all of Egypt’s pyramids have been robbed, including the Great Pyramid of Khufu, which is the largest pyramid in the world. It is the only one of the ancient wonders of the world that is still standing.

In AD 820, an Arab king named Abdullah AL Manum got a group of workers to dig their way into the Great Pyramid and have a look. Inside the pyramid, they found three rooms --- the Queen’s Chamber, the Grand Gallery and the King’s Chamber. But to their surprise, the men didn’t find the treasures they wanted. The Queen’s and King’s Chambers were both empty! Where were the King’s mummy and his treasures? Had someone already taken them away? The huge stone doors at the pyramid’s entrance were still closed when AL Manum’s men went inside. How had the thieves got in and out?

Since then, many people have gone inside the Great Pyramid to have a look or to try to take things. But still, no other chambers or walkways have been found.

In 2002, an American team made the most recent visit to the Great Pyramid. Scientists sent a robot into the pyramid, but they only found a mysterious locked stone door.

小题1:The first two paragraphs were written to show that ________.

A.the Pyramid of the Sun is an unusual historic building

B.ancient Egyptian emperors were cruel

C.construction workers led a hard life in ancient Egypt

D.the secrets of the pyramids remain to be uncovered小题2:What is the purpose of making some secret doors to the pyramids?

A.To try to unlock some of its secrets.

B.To stop robbers from finding the treasures inside.

C.To refuse some visitors all over the world into it.

D.To tell the truth to the people in the future.小题3:Which of the following is NOT true to the Great Pyramid of Khufu?

A.It is the largest pyramid in the world.

B.It is the only one of the ancient wonders that is still standing.

C.Abdullah AL Manum took the King’s mummy and his treasures away.

D.Scientists found a mysterious locked stone door to the Great Pyramid.小题4:What would be the best title for the text?

A.The Pyramid of the Sun

B.The Great Pyramid of Khufu

C.A Mysterious Locked Stone Door

D.Unlocking the Doors of History

单项选择题