问题 单项选择题

从下列叙述中选出5条正确的叙述,并把编号按从小到大次序排列,它们是 (51) (52) (53) (54) (55)

(53)处填()。

A.解释程序是接受源程序,将其转换成中间代码,然后对其解释执行,它并不产生机器代码

B.编译程序是把高级语言书写的程序,翻成中间代码,然后逐条执行,产生机器代码

C.就执行速度而言,编译程序比解释程序快

D.解释程序是用来逐句分析和执行源程序语句的计算机程序

E.COBOL和FORTRAN语言程序通常都在商业领域方面应用广范

F.使用解释程序时,因为是逐句地翻译执行源程序的语句,所以可以逐条语句排错

G.汇编语言的功能是将汇编语言书写的源程序翻译成由机器指令和其他信息组成的目标程序

H.任何一种汇编语言的每一语句都能对应一条机器语言指令

I.连接装配程序可以把经解释程序产生的目标程序变成可执行的机器语言程序

J.由于不同程序语言产生的目标程序,连接装配程序不可以把由Pascal语言编译程序和C语言编译程序分别产生的目标程序连接成一个可执行程序

答案

参考答案:D

解析:

A正确。

B错误。编译程序的功能是把某种高级语言书写的源程序翻译成与之等价的低级语言程序。

C正确。编译程序产生目标程序,目标程序经汇编与库函数等其他程序连接获得可执行的程序,可执行的程序的运行速度通常要比直接解释它的源程序快得多,但试题中所说的速度快慢也很难说清,也没有比较的意义。

D正确。解释程序直接执行源程序或源程序的内部形式,运行的时候逐句将源程序翻译成机器语言调入内存,再加以运行。

E错误。COBOL语言在商业领域应用广泛,FORTRAN是一种科学领域语言。

F正确。编译程序的工作过程十分复杂,一般要经过词法分析、语法分析、中间代码生成、代码优化和目标代码生成等5个部分。通常编译一个源程序要经过多次扫描,但始终没有逐句执行源程序的语句,解释程序是逐句地翻译执行源程序的语句,所以可以逐条语句排错。

G正确。汇编程序是将汇编程序语言书写的源程序翻译成由机器指令和其他信息组成的目标程序。其基本工作是将源程序中每条可执行的汇编语句转换成对应的机器指令,处理源程序中出现的伪指令。

H错误。汇编语言中的语句可分为两大类:一类是与机器指令相对应的可执行汇编语句;另一类是伪指令,伪指令不被翻译成机器指令。

I错误。通常情况下,经编译产生的目标程序还不能在机器上直接执行,还得与一些库函数相连接,连接装配程序可以将多个目标程序、库函数等连接成一个可执行的机器语言。

J错误。由同一系统软件公司提供的某种通用机器上的各种编译程序,可以由同一个连接装配程序负责目标程序连接装配工作。

完形填空
完形填空。
    Mr Smith was an old miser (守财奴). He had a lot of   1  , but he never bought anything   2  . He and
his wife lived in an old house outside the town. He often went to the shop   3   in order to (为了) save
some money. In the   4  , as soon as it was dark in the room, he   5  . He had no TV but bought a cheap
radio and often   6   the advertisements.
    The old man had no   7  , his wife was often ill. He wouldn't send her to the hospital. He thought he
would   8   much to the doctors if they looked her over. He bought a few medical books and bought some
medicine (药)   9   her.
    One night, Mrs Smith felt unwell, she had got a bad headache. She asked her husband to  10  a doctor,
but he didn't agree (同意). He brought out some pills and made her  11  them. But it was no use.
    The old woman began to  12  at home. He locked the door and went in another room and  13  there.
The next morning, when he woke up, he came into her   14  to see if she was all right. But he found the
poor woman had died. He hurried to the telephone, but  15  his mind at once. He ran out and shouted to
servant (佣人), "Don't cook breakfast for Mrs Smith this morning, Linda!"
( )1. A. books      
( )2. A. bad         
( )3. A. on foot    
( )4. A. day         
( )5. A. went to bed 
( )6. A. listened to 
( )7. A. brothers    
( )8. A. pass        
( )9. A. to         
( )10. A. look for   
( )11. A. take       
( )12. A. laugh      
( )13. A. slept       
( )14. A. workplace   
( )15. A. kept        
B. money              
B. good               
B. by bus             
B. morning            
B. went to the cinema  
B. watched            
B. sisters             
B. tell               
B. in                  
B. take care of        
B. drink               
B. sing               
B. played              
B. bedroom            
B. finished            
C. clothes        
C. expensive     
C. by taxi        
C. afternoon     
C. read newspaper 
C. mended         
C. uncles        
C. pay            
C. for            
C. catch up with    
C. to take        
C. cry            
C. worked         
C. library       
C. changed        
D. shoes                 
D. cheap                 
D. by motorbike           
D. evening               
D. went to dance         
D. looked at             
D. children              
D. sell                  
D. from                  
D. send for (派人去请)       
D. to drink              
D. dance                 
D. drank                 
D. kitchen               
D. forgot                
单项选择题