问题 单项选择题

在执行下面这段Java程序时:
public class Test
public static void main (String[] args)
String s1=args[0];
String s2=args[1];
String s3=args[2];


若编译程序后键入命令: java Test one two three,那么变量s1所引用的字符串为( )。

A.null

B.test

C.one

D.java

答案

参考答案:C

解析: main()方法中参数表中定义的数组args用于接收命令行参数。在题中提到命令行 java Test one two three中参数分别为"one"、"two"、"three",它们将被依次存放在数组args中。由于在Java中数组的下标从0开始,所以s1所引用的字符串为"one"。

单项选择题
完形填空
完形填空
     The market for children's products in China will double within the next five years,a report made public
at a kids expo in east China's Zhejiang Province has predicted.
     The market __1__for children's products in China was more than 1 trillion yuan (152 billion U.S.
dollars) in 2010 and that  __2__is expected to hit 2 trillion yuan by 2015,according to the report.
    The report owes the __3__ growth of the business to the country's large population,steady consumption and __4__attention to child health and education in recent years.
     It is __5__that China has a population of about 200 million __6__under the age of 10,the report said.
     A Chinese family will spend an __7__of 5,000 yuan (758 dollars) per child each year,according to a
__8__ by the Hangzhou Association of Industries on Children.This money goes to a variety of companies
__9__ child products and __10__ such as baby milk powder,clothing,toys,education and entertainment.
    According to a report by the China Ecommerce Research Center,online purchases of baby milk powder
from overseas companies __11__reached 2.4 billion yuan in 2010,__12__ second only to makeups.
Education is another area that has __13__ investors at home and abroad.Twelve Chinese __14__
institutions have won financial support from overseas risk capitalists,with __15__ totaling 100 million
dollars so far.
( )1.A.request  
( )2.A.figure  
( )3.A.smooth  
( )4.A.existed  
( )5.A.confirmed  
( )6.A.children  
( )7.A.offer  
( )8.A.survey  
( )9.A.making  
( )10.prices  
( )11.hopefully  
( )12.ranking  
( )13.surprised  
( )14.entertaining
( )15.materials  
B.demand      
B.result      
B.small      
B.reduced    
B.advertised  
B.adults      
B.account    
B.record      
B.sending    
B.services    
B.unexpectedly
B.standing    
B.influenced  
B.educational
B.exports    
C.requirement  
C.production  
C.rapid  
C.drawn  
C.assessed  
C.teenagers  
C.expense  
C.document  
C.providing  
C.cares  
C.theoretically
C.topping  
C.shocked  
C.training  
C.investments  
D.devotion      
D.money          
D.slow          
D.increased      
D.proposed      
D.students      
D.average        
D.finding        
D.leading        
D.qualities      
D.fortunately    
D.keeping        
D.attracted      
D.cultural      
D.products