问题 填空题

以下程序的输出结果是【 】。  #include<iostream.h>  void main( )  {   int a=0;   a+=(a=8);   cout< <a;  }

答案

参考答案:P

解析:本题考查C++赋值表达式的运用。赋值表达式的值就是所赋值变量的值,本题中a+=8相当于a=a+8,对表达式逐步进行求解:  a+=(a=8)此时,a的值由于赋值为8,而不是0  a+=8  a=a+8  a=16

单项选择题

Questions from 31 to 35 are based on the following passage:The exporter, as drawer of a draft (bill of exchange), hands the draft to his bank, the remitting bank, who in turn forwards it to the buyer through a collecting bank in the buyer’s country. A draft (also called a bill) is a written order to a bank or a customer to pay someone on demand or at a fixed time in the future a certain sum of money. If shipping documents accompany the draft, the collection is called “documentary collection.”Documentary collection falls into two major categories: one is documents against payment(D/P); the other, documents against acceptance (D/A).Documents against payment, as the term suggests, is that the collecting bank will only give the shipping documents representing the title to the goods on the condition that the buyer makes payment.Where the paying arrangement is D/A, the collecting bank will only give the buyer the shipping documents after buyer’s acceptance of the bill drawn on him, i.e. the buyer signs his name on the bill promising to pay the sum when it matures. In return he gets what he needs – the shipping documents.Under D/A, the seller gives up the title to the goods – shipping documents before he gets payment of the goods. Therefore, an exporter must think twice before he accepts such paying arrangement.

In a transaction, if payment is made by collection, then the remitting bank is always located in( ).

A.Seller’s country

B.Buyer’s country

C.Either A or B

D.None of the above

单项选择题