问题 单项选择题

以下能正确定义一维数组的选项是( )。

A.int a[5] =0,1,2,3,4,5;

B.char a[ ] = 0,1,2,3,4,5;

C.char a = 'A','B','C ';

D.int a[5] = "0123";

答案

参考答案:B

解析: 选项A)定义的是长度为5的数组元素,但初值有6个元素,所以错误;选项C)不符合数组定义形式,数组名后应加上“[];选项D)的类型说明符错误,应改为char;选项B)中的0,1,2,3,4,5分别表示对应字符的ASCII码,所以正确。

阅读理解

WASHINGTON—US President Barack Obama said Thursday that he had known about NBA star Jeremy Lin’s talent long before the“Linsanity”phenomenon swept the sport.

“I knew about Jeremy before you did because Arne Duncan, my secretary of education, was captain of the Harvard team,”Obama told the famous US sportswriter Bill Simmons in an interview.

“When Arne and I were playing, he said,‘I’m telling you, we’ve got this terrific guard named Jeremy Lin at Harvard.’And then when one of my best friends, whose son is a freshman at Harvard, went for a recruiting(招募) trip he saw Lin in action, so I’ve been on the Jeremy Lin bandwagon(时尚) for a while,”said the president, who is a Harvard Law graduate.

Lin, the New York Knicks’ point guard, though he was cut twice in December 2011, had had a sudden rise in the past month to high points scoring stardom in Madison Square Garden, the world’s biggest basketball stage.

He is the first Chinese-American player in the NBA. He has already developed a devoted following among many Asian-Americans and in China, Taiwan, the Philippines and other countries.

Clicks to the NYKnicks. Com website surged as basketball fans from around the world search for Lin’s news and highlights.

“He seems like a wonderful young man. It elevates(提升) this great sport all round the world,”said Obama, a Chicago Bulls fan.“And what’s been encouraging is to see how fast the sport has bounced back(恢复) recently.”But he sounded a note of caution on how much basketball costs to watch.

“It’s really important for professional athletes and sports owners to just remember you got a whole bunch of folks out here, all across the country, who invest so much in their teams. All they ask is not to be so selfish that you’re not looking out for your fans,”Obama said.

小题1:President Obama learned about Jeremy long before through      .

A.news reports

B.a friend

C.Bill Simmons

D.Arne Duncan小题2:The underlined word“surged”in Paragraph 6 probably means     .

A.moved suddenly and quickly

B.stopped gradually

C.moved slowly

D.suddenly broke down小题3:President Obama finds it encouraging that      .

A.Chicago Bulls is playing wonderfully

B.Jeremy Lin is becoming more popular

C.NBA matches have returned to normal

D.audience is concerned about basketball小题4:Both athletes and sports owners should care about folks because      .

A.they have made contributions to charities

B.all teams are in need of support from fans

C.they pay to watch their favorite teams play

D.they can decide the result of a game

单项选择题