问题 单项选择题

顺序执行下列程序语句后,则b的值是( )。 String a = "Hello"; String b = a.substring(0,2);

A.Hello

B.hello

C.Hel

D.null

答案

参考答案:C

解析:substring( )方法是用来提取子字符串的,此题是提取字符串a的第 0个到第2个字符组成新的字符串:Hel。

填空题

小题1:有些中国学生不习惯英式发音。

Some Chinese students aren’t ______ to the British __________.

小题2:北京取得了快速的进步,而且已经成功主办了2008年奥运会。

Beijing has made rapid ______ and it has already _______ in hosting the 2008 Olympic Games.

小题3:由于镇府的努力,李明的家乡发生了巨大的变化。

Thanks to the government’s _______, great changes have ______ place in Li Ming’s hometown.

小题4:我必须花几个小时的时间才能到大的商场购物。

I can’t go shopping in big stores ______ I travel for a ______ of hours.

小题5:它因成功帮助无家可归的人重返正常生活而闻名。

It is famous for its ______ in helping homeless people return to a _____ life.

小题6:在过去的16年里,希望工程从国内外筹集了约30亿元资金。

In the past 16 years, Project Hope has ______ about 3billion yuan at home and _______.

小题7:近来,据报道,许多美国青少年的听力几乎和65岁的老人一样差。

Recently, it’s _______ that many teenagers in America can hear no ______ than 65-year-old people do.

小题8:由于来自太阳的热量无法散逸,因此温度不断升高。

The _____ from the sun can’t escape so the _______ is rising.

小题9:我的主要工作是帮助宣传一些环保方面的知识。

My main job is to help spread the ______ about ______ the environment.

小题10:网络在我们的日常生活中起着重要的作用。

The  ______ plays an important_______ in our daily lives.

判断题