问题 填空题

以下程序运行后的输出结果是【 】。   #include<iostream.h>   void fun(int x,int y)   { x=x+y;y=x-y;x=x-y;    cout<< x << "," <<y << " ,";=   void main( )   { int x=2,y=3;fun(x,y);     cout<< x << "," << y << endl;=

答案

参考答案:3,2,2,3

解析:main函数和fun函数中的变量x和y都是局部变量,它们各自独立,在本题 fun函数中:接入实参的值传递:x=2,y=3,执行:x=x+y后,x=5,y=3,执行:x=x-y后,x=5,y=3,执行:y=x-y后,x=3,y=2。所以,第一次执行cout显示结果是3和2返回到main函数中,输出main函数中的x和y的值2,3。

阅读理解

阅读理解。

    When you want to go shopping, decide how much money you can, spend for new clothes.

Think about the kind of clothes you really need. Then look for those clothes on sale (销

售). There are labels (标签)inside all new clothes. The labels tell you how to take care

of your clothes. The label for a shirt may tell you to wash it in warm water. A sweater

label may tell you to wash by washing in cold water. The label on a coat may say "dry

clean only". Washing may ruin (损坏) this coat. If you do as the directions (说明) say on

the label, you can keep your clothes looking their best.

    Many clothes today must be dry cleaned. Dry cleaning is expensive. When buying new

clothes, check (核实) to see if they will need to be dry cleaned. You will save money if

you buy clothes that can be washed. You can save money if you buy clothes that are well

made. Well-made clothes last longer. They look good even after they have been washed many

times. Clothes that cost more money are not always better made. They do not always fit (合

身) better. Sometimes less expensive clothes look and fit better than more expensive

clothes.

1. If you want to save money, you can buy clothes that _____. [ ]

A. don't fit you

B. don't last long

C. need to be dry cleaned

D. can be washed

2. The labels inside the clothes tell you _____. [ ]

A. how to keep them looking their best

B. how to save money

C. whether they fit you or not

D. where to get them dry cleaned.

3. The first thing for you to do before you buy clothes is _____. [ ]

A. To look for well-made clothes

B. to see how much money you can pay

C. to know how to wash them

D. to read the labels inside them

4. We learn form the reading that cheaper clothes _____. [ ]

A. are always worse made

B. must be dry cleaned

C. can not be washed

D. can sometimes fit you better

5. The best title (标题) for the reading should be _____. [ ]

A. Buying Less Expensive Clothes

B. Taking Enough When Shopping

C. Being a Clever Clothes Shopper

D. Choosing the Labels inside New Clothes

多项选择题