问题 单项选择题

当使用ofstream流类定义一个流对象并打开一个磁盘文件时,文件的默认打开方式为( )。

A.ios base::in

B.ios_base::binary

C.ios base::in|ios base::out

D.ios base::out

答案

参考答案:D

解析: 此题考查的是文件输入输出流的基本知识。对于 ofstream流,mode的默认值为ios::out。另外,对于ifstream流,mode参数的默认值为ios::in。

阅读理解

     Bad things often happen to us. Maybe something (or nothing) makes you angry, sad or disappointed (失望的). When you are unhappy, you should do something about it. Here are some ways to help you

do with a bad day.

     ◆Tell others     

        You usually try to keep you bad mood (心情) a secret and put on your happy mask. In fact, you

can tell your friends about it. Maybe they will help you and make you feel better.

     ◆Remember the good things    

         When you're in a bad mood, everything seems to be bad. Try to spend a few moments to think

of something good -something you look forward to, a person you like at school, or something nice that

happened these days.

     ◆Do exercise    

         Doing exercise can help you get rid of (除去) bad mood, such as running, swimming and playing

ballgames.

      ◆Take some quiet time    

          If you're having a really bad day, take a shower, close your eyes, and then sit or lie on your bed

quietly. Have a rest with the light music.    

根据短文内容,回答问题。

1. Why does the writer think people should talk with their friends when they are in bad mood?

_______________________________________________________________

2. How do people think of other things when they feel angry?

_______________________________________________________________

3. Can light music help people get rid of bad mood?

_______________________________________________________________

4. How many ways does the writer show us?

_______________________________________________________________

5. What does the passage mainly talk about?

_______________________________________________________________

不定项选择 案例分析题

某日化厂生产企业为增值税—般纳税人,9月份该企业发生以下经济业务: (1)外购原材料一批,从供货方取得的增值税专用发票上注明支付的货款180万元,增值税额30.6万元,款项已付验收入库,支付相关运费10万元,已收到运输单位开具的运输发票。 (2)外购机器设备一套,从供货方取得的增值税专用发票上注明支付的货款50万元,增值税额8.5万元,款项已付并验收入库。 (3)购进一批办公用品取得普通发票,注明金额2340元,办公用品已经投入使用。 (4)购进一批红酒用于给职工发放福利,取得了增值税专用发票,发票上注明支付的货款6000元,增值税额1020元。 (5)月初将部分订单委托其他企业加工,发出原材料价值8000元,委托加工合同规定加工费5000元(不含税),加工企业代垫辅助材料1000元,月底尚未收到加工的化妆品和加工企业开具的发票。 (6)对外销售化妆品一批,取得销售收入586.17万元(含税)。 (7)将闲置的一套设备出租取得租金收人1万元。有关票据本月通过主管税务机关认证并申报抵扣;化妆品的消费税税率为30%。 要求:根据以上材料,回答66-70小题。

下列关于该企业可抵扣进项税额的说法中正确的是()。

A.外购红酒可抵扣的进项税额为1020元

B.外购办公用品可抵扣的进项税额为340元

C.外购机器设备可抵扣的进项税额为0元

D.外购原材料及支付相关运费可抵扣的进项税额为31.3万元