问题 单项选择题

设有如下程序:
Private Sub Command1_Click()
Dim sum As Double, x As Double
sum=0
n=0
For i=1 To 5
x=n/i
n=n+1
sum=sum+x
Next
End Sub
该程序通过For循环计算一个表达式的值,这个表达式是______。

A.1+1/2+2/3+3/4+4/5

B.1+1/2+2/3+3/4

C.1/2+2/3+3/4+4/5

D.1+1/2+1/3+1/4+1/5

答案

参考答案:C

解析:[评析] 本题考查循环语句,其过程如下:
i=1时,x=0/1=0,n=0+1=1,sum=0+0;
i=2时,x=1/2,n=1+1=2,sum=0+1/2;
i=3时,x=2/3,n=2+1=3,sum=0+1/2+2/3;
i=4时,x=3/4,n=3+1=4,sum=0+1/2+2/3+3/4;
i=5时,x=4/5,n=4+1=5,sum=0+1/2+2/3+3/4+4/5。

单项选择题
阅读理解

阅读理解。

     Shopping is not as simple as you may think! There are all sorts of tricks at play each time we reach out

for that particular brand (品牌) of product on the shelf.

     Colouring, for example, varies according to what the producers are trying to sell. Health foods are

packaged (包装) in greens, yellows or browns because we think of these as healthy colours. Ice cream

packets are often blue and expensive goods, like chocolates, are gold or silver.

     When some kind of pain killer was brought out recently, researchers found that the colours turned the

customers off because they made the product look weak and ineffective. Eventually, it came on the market in

a dark blue and white package-blue because we think of it as safe, and white as calm.

     The size of a product can attract a shopper. But quite often a bottle doesn't contain as much as it appears

to.

     It is believed that the better-known companies spend, on average, 70 per cent of the total cost of the

product itself on packaging!

     The most successful producers know that it's not enough to have a good product. The founder of Pears

soap, who for 25 years has used pretty little girls to promote (推销) their goods, came to the conclusion: "Any

fool can make soap, but it takes a genius (天才) to sell it."

1. Which of the following may trick a shopper into buying a product according to the text?

A. The cost of its package.

B. The price of the product.

C. The colour of its package.

D. The brand name of the product.

2. The underlined part "the colours turned the customers off"(in Para. 3 ) means that the colours _____.

A. attracted the customers strongly

B. had weak effects on the customers

C. tricked the customers into shopping

D. caused the customers to lose interest

3. Which of the following is the key to the success in product sales?

A. The way to promote goods.

B. The discovery of a genius.

C. The team to produce a good product.

D. The brand name used by successful producers.

4. Which of the following would be the best title for this text?

A. Choice of Good Products

B. Disadvantages of Products

C. Effect of Packaging on Shopping

D. Brand Names and Shopping Tricks