问题 单项选择题

单击命令按钮时,下列程序的执行结果是( )。  Private Sub Book(x As Integer)    x=x * 2 + l    If x<6 Then      Call Book(x)    End If    X=X * 2 + 1    Print x;  End Sub  Private Sub Command2_Click()    Book2  End Sub

A.package testpackage;public class Test{ }

B.import java.io.* ;package testpackage;public class Test{ }

C.import java.io.*; class Person{ }public class Test{ }

D.import java.io.*;import java.awt.*;public class Test{ }

答案

参考答案:B

解析:Java是区分大小写的,true是Java的保留字,而TRUE不是。boolean, int和public都是Java的保留字。

完形填空

完形填空 (共10小题;每小题2分,满分20分)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

阅读下面短文,掌握其大意,然后从21—30各题所给的A、B、C和D项中,选出最佳选项,并在答题卡上将该项涂黑。

A soldier, who was finally coming home after having fought in Vietnam,  21 his parents from San Francisco, telling them that he wanted to ask a friend to come and live with their family. The son said, “He was hurt  22 in the fighting. He stepped on a landmine and lost an arm and a leg. He has nowhere else to go, and I… I want him to live with us.” His parents   23 , explaining that someone with such a handicap(残疾)would be a heavy  24 on them.

At that point, the son hung up the phone. A few days later, the parents  25 a call from the San Francisco police. Their son had died after falling from a building. The police believed it was suicide (自杀).

The heart-broken parents flew to San Francisco to identify the  26 of their son. They recognized him, but to their horror, they also discovered something they didn’t know, their son had only one arm and one leg.

The sad story of the parents was actually caused by their attitude towards  27 . Friends are a very 28 jewel, indeed. They make you smile and encourage you to succeed. They lend an ear, they share a word of praise, and they always want to open their  29 to us. Let’s say a little prayer that God will give you the luck you need to accept people as they are, to help us all be more understanding of those who are  30 from us!

21. A. requested     B. called        C. met          D. emailed

22. A. soundly      B. thoroughly     C. deeply       D. badly 

23. A. refused       B. agreed        C. confused     D. ignored

24. A. expense       B. burden       C. situation      D. weight

25. A. made         B. sent          C. received     D. heard

26. A. name         B. health        C. face         D. body

27. A. soldiers       B. children       C. friendship    D. relationship

28. A. rare          B. huge          C. bright       D. heavy

29. A. minds        B. houses         C. eyes        D. hearts

30. A. absent        B. different        C. far         D. separate

多项选择题