问题 单项选择题

有以下程序段int a,b,c;a=10:b=50;c=30;if(a>b)a=b,b=c;c=a;printf("a=%d b=%d c=%d\n",a,b,c);程序的输出结果是

A.a=10 b=50 c=10

B.a=10 b=50 c=30

C.a=10 b=30 c=10

D.a=50 b=30 c=50

答案

参考答案:A

解析:该题考查if条件语句,当条件为真时,将b值赋给a,c值赋给b;当条件为假时,将a值赋给c。该题中if条件为假,所以将a的值赋给c,故a=10 b=50 c=10。

写作题
单项选择题 案例分析题

The fact that blind people can "see" things using other parts of their bodies apart from their eyes may help us to understand our feelings about colour. If they can sense colour differences then perhaps we, too, are affected by colour unconsciously.

Manufacturers have discovered by trial and error that sugar sells badly in green wrappings, and that blue foods are considered unpleasant, and the cosmetics should never be packaged in brown. These discoveries have grown into a whole discipline of color psychology that now finds application in everything from fashion to interior decoration. Some of our preferences are clearly psychological Dark blue is the colour of the night sky and therefore associated with passivity and calm, while yellow is a day colour with associations of energy and incentive. For primitive man, activity during the day meant hunting and attacking, while he soon saw as red, the colour of blood and rage and the heat that came with effort. And green is associated with passive defence and self - preservation. Experiments have shown that colours, partly because of their psychological association, also have a direct psychological effect. People exposed to bright red show an increase in heartbeat, and blood pressure; red is exciting. Similar exposure to pure blue has exactly the opposite effect; it is a calming colour. Because of its exciting connotations (涵义) , red was chosen as the signal for danger, but closer analysis shows that a vivid yellow can produce a more basic state of alertness and alarm, so fire engines and ambulances in some advanced communities are now rushing around in bright yellow colours that stop the traffic dead.

The most suitable title for this passage may be()。

A. The practical Use of Colour

B. Colour and Feelings

C. Colour and Its Connotations

D. The Discipline of Colour Psychology