问题 单项选择题

阅读下列代码段。
class Test implements Runnable
public int run()
int i=0;
while(true)
i++;
System. out. println("i="+i);



上述代码的编译结果是______。

A.程序通过编译并且run()方法可以正常输出递增的i值
B.程序通过编译,调用run()方法将不显示任何输出
C.程序不能通过编译,因为while的循环控制条件不能为“true”
D.程序不能通过编译,因为run()方法的返回值类型不是void

答案

参考答案:D

解析: while的循环控制条件可以为true,run()方法没有返回值,所以不能是int型,故此程序不能通过编译。

单项选择题
阅读理解

根据短文内容,从短文后的选项中选出能填入空白处的最佳选项。选项中的两项为多途选项。

(E=AB F= AC G=AD)

     1_____. However, the real movie capital is Mumbai, in India. Mumbai used to be known as Bombay,

and so the film industry there is called "Bollywood". Bollywood makes twice as many movies each year

as Hollywood-more than 800 films a year. 

     2_____. For one thing. Bollywood movies are much longer than most Hollywood movies. Most

Bollywood movies are more than three hours long, and contain singing, dancing, action, adventure,

mystery, and romance. Because Bollywood films contain so many different features, this style of film

is sometimes called a "masala" film.("Masala" is an Indian word for a mixture of spices.) 

     3_____. It takes much longer to make a movie in Hollywood than in Bollywood. In fact, filming may

begin on a Bollywood movie before the script (剧本) is even finished. The director and writers can make

up the story while the film is being made. 4_____.

     Bollywood actors are very popular and some are in such high demand that they may work on several

movies at the same time. 5_____. Since most Bollywood movies follow the same kind of story, shooting

scenes for several films at the same time is not a big problem for actors or directors. This also helps keep

the cost of Bollywood movies lower than the cost of Hollywood movies. The average Bollywood film,

with a budget (预算) of only two million U. S. dollars, seems very cheap compared to the average budget

of sixty million U.S. dollars for a Hollywood film-thirty times as much!

A. Another big difference between Bollywood and Hollywood movies is the way the movies are made.

B. Bollywood produces more movies than Hollywood.

C. Most people think that the capital of the movie world is Hollywood, in the United States.

D. They may even shoot secens for several films on the same day using the same, clothes and scenery.

E. Only Indian people can understand Bollywood movies.

F. Sometimes they will even write the script by hand instead of taking time to type it.

G. The movies from Bollywood are very different from Hollywood movies.