问题 单项选择题

如果要在Applet中显示特定的文字、图形等信息,可以在用户定义的Applet类中重写的方法是

A.paint()

B.update()

C.drawString()

D.drawLine()

答案

参考答案:A

解析: Applet显示相关的方法主要有3个,paint()、update()、repaint()。paint()方法具体执行Applet的绘制,定义为public void paint(Graphics g)。update()方法定义为:public void update(Graphics g),主要用于更新Applet的显示,此方法将首先清除背景,再调用paint()方法完成Applet的具体绘制。用户自定义的Applet类一般不用重写此方法。repaint()方法定义为public void repaint(),主要用于Applet的重新显示,它调用update()方法实现对Applet的更新。

阅读理解

Weekend getaways and romantic dinners used to be sweet escapes from the daily working life. Nowadays, vacations are often interrupted by the ding of an instant message on a wireless laptop. That’s not news to modern workers, many of whom may just be getting back from a long winter break during which they worked more than in years past. One-fifth of Americans carry a laptop on vacation. Countless more carry cell phones, many of which can be used to check company e-mail.

And why not? With wireless coverage extending, staying connected is simple. Recently, JetBlue Airways announced a trial of free e-mail and instant messaging services for passengers on one of its aircraft. Other airlines are expected to follow suit. But there’s a hidden cost to companies: employee burnout. Using work cell phones and checking company e-mail at the poolside is not a vacation.

“If I were a manager, I would insist that my employees leave their cell phones at work during their vacation and not check their e-mail while away ,” said Dov Eden, an organizational psychologist. “In the long run, the employee will be better rested and better able to perform his or her job.”

A nine-year study of more than 12,000 middle-aged men at high risk of heart disease showed that participants who vacationed more had a lower risk of dying than the vacation-deprived(剥夺的). In a nationwide survey, nearly half of the 2,000 adults questioned said stress has increased in the past five years, with 75 percent ranking money and work as the leading causes of stress.

One way to beat work stress could be to work from home or another remote location. This alternative work arrangement is a win-win set-up. Telecommuting(远程办公)has an overall beneficial effect, because the arrangement provides employees with more control over how they do their work. Telecommuters reported more job satisfaction, less stress and improved work-family balance.

71. According to the first paragraph, Americans carry a cell phone or a laptop on vacation mainly to        .

A. entertain themselves                       B. keep in touch with their family

C. check company emails                           D. tell their managers about their experiences

72. What does the underlined phrase “employee burnout” in Paragraph 2 mean?

A. Employees become very angry.         B. Employees get extremely tired

C. Employees leave the company.        D. Employees demand a pay rise.

73. We can learn from the last paragraph that        .

A. companies have more control over telecommuters

B. telecommuting is good for both companies and employees

C. employees will work more slowly if they work at home

D. telecommuting can reduce the company’s stress

74. Which of the following is TRUE according to the passage?

A. In the past, people on vacation were seldom interrupted by work.

B. Dov Eden agrees with JetBlue Airways’ announcement.

C. Many airlines have been providing their passengers with instant service.

D. Most people are under stress because they have no vacation to relax.

75. What would be the best title for the passage?

A. How to spend your holidays  B. The modern vacation: fully wired, totally ruined

C. Modern life with cell phones  D. Telecommuting-----a win-win set-up

多项选择题