问题 单项选择题

若有定义语句:int m[]=5,4,3,2,1,i=4;,则下面对m数组元素的引用中错误的是______。

A) m[-i]
B) m[2*2]
C) m[m[0]]
D) m[m[i]]

答案

参考答案:C

解析:[评析] 一维数组的定义方式为:类型说明符 数组名[常量表达式]。其中“常量表达式”表示元素的个数,即数组长度。元素的下标从0开始,最大下标是元素个数减一。本题定义了一个由5个元素(m[0[到m[4])组成的数组。选项A表示对m[3]的引用;选项B表示对m[4]的引用;由于m[0]的值为5,所以选项C表示m[5],但由于m数组元素的最大下标为4,所以本引用下标越界;由于m[i]即m[4]的值为1,所以选项D表示对m[1]的引用。

选择题
阅读理解

Top islands in the Mediterranean

Desiring a sun-and –sea summer holiday destination where you can also party the night away? Travel website TripAdvisor has come up with a list of the top islands in the Mediterranean sea. “All of these islands offer pristine (原始的) beaches and their own unique features,” said TripAdvisor spokeswoman Michele Perry. “Our travelers have identified the hot islands in the Med this summer, especially if you want sun, sea and dancing all night”.

Cyprus, Republic of Cyprus

Visit Aphrodite’s birthplace in the eastern Mediterranean. Beaches are the draw for many visitors to the island, but so is the nocturnal (夜间的) activity with Ayia Napa being the town to party in. According to one TripAdvisor traveler, “we would have to say the Troodos Mountains were our highlight. You will know what we mean if you take the journey. Breathtaking!”

Crete , Greece

As the former centre of the Minoan civilization, it’s no wonder that Crete features lots of historical attractions. Those in search of adventure on the largest Greek island can hike down Samaria Gorge for wonderful scenery. As one TripAdvisor traveler said, “Crete is an amazing place to explore ancient culture.”

Ibiza, Balearic Islands, Spain

Visit the party capital of Ibiza and feel honoured by joining thousands of revelers(狂欢者) at Privilege, the largest club in the world. Besides the vast nightlife, check out one of the UNESCO World Heritage Sites, such as God’s Finger, a large rock at the entrance of Benirras Bay.

Sicily, Italy

The largest island in the Mediterranean, Sicily has the three Cs—culture, cuisine and calm. Laden with orange and lemon orchards, the countryside boasts natural beauty, great for relaxing. One

TripAdvisor traveler recommended, “If you are in Sicily, go on the sunset tour off Mount Etna. You can see the steaming ground and smell the sulfur(硫磺).”

65. Where should you go if you like ancient culture?

A. Cyprus.        B. Crete.          C. Ibiza, Balearic Islands.        D. Sicily.

66. Which of the following statements is NOT true?

A. In Cyprus and Ibiza, Balearic Islands, you can enjoy various activities at night.

B. The largest island in the Mediterranean is part of Greece.

C. Perhaps you can read the passage on the Internet.

D. God’s finger is one of the UNESCO World Heritage Sites.

67. What is a common feature of the places mentioned in the passage?

A. They have a lot of historical attractions.

B. They all boast natural beauty and natural resources.

C. They offer sun, sea and dancing all night.

D. They are listed as UNESCO World Heritage Sites.