问题 单项选择题

下列代表十六进制整数的是( )。

A.0123

B.1900

C.fa00

D.0×a2

答案

参考答案:D

解析: 本题考查Java语言中的整型常量。整型常量有3种书写格式:十进制整数,如123,-30,365:,八进制整数:以0开头,如011表示十进制的9;十六进制整数;以0x或OX开头,如031123表示十进制数291。由此可见,选项D表示的是十六进制整数,选项C不是整数形式,选项B是十进制整数,选项A是八进制整数,只有选项D为本题正确选项。

完形填空
完形填空
     The other day, I happened to meet someone I hadn't seen for many years. I couldn't believe the
change in him. In fact, he didn't even seem like the     1    person.
     When I first knew Bill, back in    2    , he was one of the most carefree (无忧无虑) people I had
ever    3    . He was always ready to have a party. He thought     4   of going out for beer at three
o'clock in the morning or driving 50 miles to see an old    5   he really liked. Bill and I were in the same
class in college, and   6    was never dull when he was    7   . With him there was one wild     8  after
another. Sometimes I wonder how we 9      to study for our exams.
     Last week I was in <<Houston>> on business and I ran into Bill in the bar at the hotel.    10   , I
wasn't even sure it was    11  . Was this short-haired businessman really the same person? I wasn't really
sure until I came near him but it indeed was Bill. Now he works for a bank. He   12    most of the
evening about his job, his new car and his house. How he had changed! Back when we were in college,
the   13   thing Bill cared about was possessions. Now they seemed to be his main    14  . Although I
have changed quite a bit myself, somehow, I never   15   Bill changing so much. My image of him   16    
the one I had formed    17   the time when we were college students together.
     I suppose it's   18   to expect people to remain the same, especially  19   I have changed so much
myself. But I must say that I enjoyed the old Bill much more than the new Bill. Maybe he    20  the same
way about me.
( )1. A. proper
( )2. A. childhood
( )3. A. considered
( )4. A. nothing
( )5. A. man  
( )6. A. learning
( )7. A. in  
( )8. A. adventure
( )9. A. decided
( )10. A. First of al
( )11. A. that
( )12. A. thought
( )13. A. first
( )14. A. interest
( )15. A. forgot
( )16. A. remained
( )17. A. since
( )18. A. unnecessary
( )19. A. because
( )20. A. felt  
B. same
B. the army
B. supposed
B. much
B. hospital
B. life
B. out
B. mistake
B. intended
B. At first  
B. us  
B. talked  
B. last
B. event
B. minded
B. reminded
B. from
B. foolish
B. that
B. acted  
C. usual  
C. his thirties
C. met     
C. most     
C. movie      
C. work     
C. away     
C. chance      
C. managed  
C. Now and then  
C. there      
C. argued  
C. next     
C. subject  
C. liked  
C. suggested  
C. at     
C. common     
C. how      
C. looked      
D. right            
D. college          
D. expected        
D. none            
D. country          
D. fun              
D. around          
D. joke            
D. hoped            
D. All the time    
D. him              
D. spent            
D. only            
D. problem          
D. imagined        
D. became          
D. till            
D. unusually        
D. when            
D. discovered      
单项选择题