问题 填空题

在窗体上画一个命令按钮,然后编写如下事件过程: Private Sub Commandl_Click() Do Until b【14】。

答案

参考答案:-3

解析: 本题程序运行后,共输入4组数据, a依次取值为5、3、1、-1,b依次取值为4、2、 0、-2。注意到循环条件是“b<O”,所以当“a=1,b=0”时,还要再输入第4组数据,这时“a=-1,b=-2”,然后结束循环。还要注意到, a=a+b从形式上看是将b累加到变量a中,但实际上并不会起到累加的作用,因为a不断的被赋新值。这样,不管输入多少组数据,a的值仅仅是最后一组输入的数据之和。由此可见,输出的结果是-3。

多项选择题
单项选择题

Many things make people think artists are weird—the odd hours, the nonconformity, the clove cigarettes. However, the weirdest may be this: artists’ only jobs are to explore emotions, and yet they choose to focus on the ones that feel lousy. This wasn’t always so. The earliest forms of art, like painting and music, are those best suited for expressing joy. But somewhere in the 19th century, more artists began seeing happiness as insipid, phony or, worst of all, boring. In the 20th century, classical music became more atonal, visual art more unsettling.

Sure, there have been exceptions, but it would not be a stretch to say that for the past century or so, serious art has been at war with happiness. In 1824, Beethoven completed his " Ode to Joy " . In 1962, novelist Anthony Burgess used it in A Clockwork Orange as the favorite music of his ultra-violent antihero.

You could argue that art became more skeptical of happiness because modem times have seen such misery. But the reason may actually be just the opposite: there is too much happiness in the world today.

In the West, before mass communication and literacy, the most powerful mass medium was the church, which reminded worshippers that their souls were in peril and that they would someday be meat for worms. Today the messages that the average Westerner is bombarded with are not religious but commercial, and relentlessly happy. Since these messages have an agenda—to pry our wallets from our pockets—they make the very idea of happiness seem bogus. " Celebrate! " commanded the ads for the arthritis drug Celebrex, before we found out it could increase the risk of heart attack.

What we forget—what our economy depends on us forgetting—is that happiness is more than pleasure without pain. The things that bring the greatest joy carry the greatest potential for loss and disappointment. Today, surrounded by promises of easy happiness, we need someone to tell us that it is OK not to be happy, that sadness makes happiness deeper. As the wine connoisseur movie Sideways tells us, it is the kiss of decay and mortality that makes grape juice into Pinot Noir. We need art to tell us, as religion once did, that you will die, that everything ends, and that happiness comes not in denying this but in living with it. It’s a message even more bitter than a clove cigarette, yet, somehow, is a breath of fresh air.

The word " Celebrex " in the advertisement()

A. misleads people into buying dangerous drugs

B. reminds people of a cheerful feeling

C. boasts of the effectiveness of a drug

D. comes from a religious term