问题
单项选择题
一个栈的初始状态为空。现将元素1、2、3、4、5、A、B、C、D、E依次入栈,然后再依次出栈,则元素出栈的顺序是
A.12345ABCDE
B.EDCBA54321
C.ABCDEl2345
D.5432lEDCBA
答案
参考答案:B
解析:栈的特点是先进后出,所以全部入栈后再全部出栈所得的序列顺序必然与入栈序列的顺序相反。
一个栈的初始状态为空。现将元素1、2、3、4、5、A、B、C、D、E依次入栈,然后再依次出栈,则元素出栈的顺序是
A.12345ABCDE
B.EDCBA54321
C.ABCDEl2345
D.5432lEDCBA
参考答案:B
解析:栈的特点是先进后出,所以全部入栈后再全部出栈所得的序列顺序必然与入栈序列的顺序相反。
阅读理解。 | ||||
In the past, people used to travel to foreign countries because they thought they would be different in many ways-the buildings, the food, the national dresses and so on. At present, however, one large city is similar to another. They all have their Hilton or Sheraton Hotels everywhere. They all have their McDonald's, their KFCs and their Pizza Huts. Office buildings look the same everywhere, and most city centers are full of office buildings. And of course, people are driving the same brands (品牌) of Japanese or European cars. Then what is the foreign travel for? What do tourists hope to experience in a foreign country that they cannot experience at home? The answer could be that people are very interested in the past. It is a nation's history and culture that are the main attractions. Most people travel overseas to find out what foreign countries history and cultures used to be like, not what they arc like today. Tourists try to learn the history and culture of foreign countries by visiting different kinds of museums. Every country also has its own beautiful places for tourists to visit. Their own special scenery (风景:) would certainly attract tourists from other countries. Finally, there is perhaps a country's attraction; its people. A country is not just its old buildings, its works of art (艺术品) or beautiful places, it's also the people who live in it. This is why a country such as Thailand attracts millions of people. The tourists come mainly because of the friendliness (友好) of the people there. It is why the Pacific islands are also so popular. The friendly, smiling people make visitors feel welcome. The 1.___________ of Tourism | ||||
|