问题 单项选择题

下列各项说法中错误的是( )。

A.Swing构件支持双缓冲区,编写程序的时候不需要重写有关的代码

B.AWT构件支持双缓冲区,编写程序的时候不需要重写有关的代码

C.Swing构件支持在按钮构件上同时添加图标和文字

D.AWT构件不支持在按钮构件上添加图标

答案

参考答案:B

解析: Swing构件支持双缓冲区, JComponent构件默认双缓冲区,但是AWT构件不支持,需要重写代码。

多项选择题
完形填空
完形填空 。
     Another person's enthusiasm was what set me moving toward the success I have achieved. That person
was my stepmother.
      I was nine years old when she entered our home in rural Virginia. My father   1   me to her with these
words: "I would like you to meet the fellow who is   2   for being the worst boy in this county and will
probably start throwing rocks at you no   3   than tomorrow morning."
     My stepmother walked over to me, raised my head slightly   4   , and looked me right in the eye. Then she
looked at my father and   5  , "You are wrong. This is not the worst boy at all,   6   the smartest one who
hasn't yet found an outlet (释放的途径) for his enthusiasm."
     That statement began a(n)   7   between us. No one had ever called me smart. My family and neighbors
had built me up in my   8   as a bad boy. My stepmother changed all that.
      She changed many things. She   9   my father to go to a dental school, from which he graduated with
honors. She moved our family into the county seat, where my father's career could be more  10  and my
brothers and I could be better educated.
     When I turned fourteen, she bought me a secondhand  11  and told me that she believed that I could
become a writer. I knew her enthusiasm, I  12   it, and I saw how it had already improved our lives. I
accepted her  13   and began to write for local newspapers. I was doing the same kind of  14   that great day
I went to interview Andrew Carnegie and received the task which became my life's work later. I wasn't the 
 15   beneficiary (受益者). My father became the   16   man in town. My brothers and stepbrothers became
a physician, a dentist, a lawyer, and a college president.
      What power   17  has! When that power is released to support the certainty of one's purpose and is  18  
strengthened by faith, it becomes an irresistible (不可抗拒的)force which poverty and temporary defeat can
never   19  .   
     You can communicate that power to   20  who needs it. This is probably the greatest work you can do
with your enthusiasm.
( )1.  A. rushed      
( )2.  A. distinguished  
( )3.  A. sooner      
( )4.  A. backward     
( )5.  A. talked       
( )6.  A. but         
( )7.  A. agreement     
( )8.  A. opinion      
( )9.  A. begged         
( )10. A. successful   
( )11. A. camera         
( )12. A. considered   
( )13. A. belief      
( )14. A. teaching     
( )15. A. next        
( )16. A. cleverest     
( )17. A. enthusiasm   
( )18. A. deliberately  
( )19. A. win          
( )20. A. everyone       
B. sent       
B. favored     
B. later      
B. forward     
B. replied      
B. so           
B. friendship   
B. image       
B. persuaded    
B. meaningful   
B. radio        
B. suspected   
B. request    
B. writing      
B. same         
B. wealthiest   
B. sympathy    
B. happily    
B. match     
B. someone    
C. carried     
C. mistaken      
C. longer     
C. upward        
C. cried         
C. and           
C. gap         
C. expectation   
C. ordered       
C. helpful     
C. bicycle       
C. ignored      
C. criticism     
C. studying     
C. only       
C. strongest     
C. fortune       
C. traditionally 
C. reach       
C. anyone       
D. introduced    
D. rewarded      
D. earlier          
D. downward        
D. answered        
D. or          
D. relationship   
D. mind            
D. invited         
D. useful        
D. typewriter     
D. appreciated      
D. description     
D. reading       
D. real             
D. healthiest      
D. confidence     
D. constantly      
D. doubt           
D. nobody