问题 单项选择题

有以下程序
#include
void fun(int a,int b,int C)
a=456,b=567,c=678;
void main( )

int x=10,y=20,z=30;
fun(x,y,z);
cout < < x < < ’,’ < < y < <’,’ < < z < < end1;

输出结果是

A.30,20,10

B.10,20,30

C.456,567,678

D.678,567,456

答案

参考答案:B

解析:解析:本题考查函数中变量的作用范围,在主函数中给变量x,y,z赋值,然后将其作为实参传递给了函数fun( ),虽然在函数fun( )中改变了这3个变量的值,但只是同名的局部变量,不影响函数中变量的值,所以在调用函数fun( )结束后,主函数3个变量的值未改变。

完形填空
完形填空
     I can still remember when I met my best friend.She had just moved into the neighborhood and her
grandmother brought her down to__1__me.I hid behind my mother and she hid behind her grandmother,
__2__to look at each other.Soon we lost the__3__and started playing with each other.
     In the 7th grade,I first lost touch with her.She was__4__family problems and I deserted her to be with
the__5__people.None of my new friends liked her as much as I did because they knew she had__6__.
However,every summer we__7__always sit at each other's house and watch soap operas,and talk about
all the boys we liked.
     It was last year when I noticed the problem.I guess I was__8__devoted in high school to__9__she
needed someone there for her.Anyway,she made a new best friend and so did I.Then I didn't know why,
__10__she started cutting herself!
     She then was diagnosed(诊断) with clinical depression.At first,I was very__11__,but we still stayed in
__12__.I wanted to be there for her since her new best friend basically__13__her and people were calling
her__14__.
     Yesterday she came to me and said,"I never knew what a best friend was__15__you were the only
person that would stop me cutting.I__16__you so much,and you didn't even know you were__17__me."
     We both cried.And I guess a kind of__18__from my life so far is never to give up on your friends.Even
if they aren' t as cool as others,or people think they are crazy,they need__19__there.If you desert them,
you will only be__20__ yourself.
( )1.A.follow  
( )2.A.scared  
( )3.A.temper  
( )4.A.taking up
( )5.A.happier  
( )6.A.problems  
( )7.A.should  
( )8.A.much  
( )9.A.admit  
( )10.A.but  
( )11.A.calm  
( )12.A.place  
( )13.A.confused
( )14.A.crazy  
( )15.A.unless  
( )16.A.expect  
( )17.A.urging  
( )18.A.honour  
( )19.A.someone  
( )20.A.innocent            
B.meet            
B.annoyed        
B.interest        
B.getting through
B.cooler          
B.shortcomings    
B.could          
B.too            
B.accept          
B.for            
B.considerate    
B.touch          
B.bothered        
B.stubborn        
B.as              
B.influence      
B.blaming        
B.favour          
B.something      
B.successful      
C.join  
C.worried  
C.confidence  
C.going through
C.stronger  
C.partners  
C.would  
C.only  
C.consider  
C.or  
C.upset  
C.control  
C.reminded  
C.clumsy  
C.until  
C.appreciate  
C.helping  
C.pleasure  
C.anyone  
C.guilty  
D.support      
D.delighted    
D.shyness      
D.making up    
D.cleverer    
D.disabilities 
D.might        
D.just        
D.realize      
D.so           
D.helpful      
D.mood         
D.deserted     
D.stupid       
D.that        
D.demand      
D.hurting      
D.lesson       
D.everything   
D.reliable    
选择题