问题 单项选择题

下面对静态数据成员的描述中,正确的是( )。

A.静态数据成员可以在类体内进行初始化

B.静态数据成员不可以通过类的对象调用

C.静态数据成员不能受private(私有)控制符的作用

D.静态数据成员可以直接通过类名调用

答案

参考答案:D

解析:对于选项A,C++规定对静态数据成员的初始化应该在类体外进行初始化。所以选项A是错误的。
对于B选项,C++规定静态数据成员可由任意访问权限许可的函数或对象访问,所以选项B是错误的。
对于选项C,在C++中,静态数据成员也可以定义为私有的静态数据成员,所以选项C的描述是错误的。
对于选项D,在C++中,静态数据成员是类的所有对象共享的成员,即可以通过类名访问,也可以通过对象访问。但通过类名访问更方便、更高效。所以选项D的描述是正确的。

单项选择题
单项选择题

Most people would be (1) by the high quality of medicine (2) to most Americans. There is a lot of specialization, a great deal of (3) to the individual, a (4) amount of advanced technical equipment, and (5) effort not to make mistakes because of the financial risk which doctors and hospitals must (6) in the courts if they (7) things badly.

But the Americans are in a mess. The problem is the way in (8) health care is organized and (9) . (10) to pubic belief it is not just a free competition system. The private system has been joined a large public system, because private care was simply not (11) the less fortunate and the elderly.

But even with this huge public part of the system, (12) this year will eat up 84.5 billion dollars—more than 10 percent of the U. S. Budget—large number of Americans are left (13) . These include about half the 11 million unemployed and those who fail to meet the strict limits (14) income fixed by a government trying to make savings where it can.

The basic problem, however, is that there is no central control (15) the health system. There is no (16) to what doctors and hospitals charge for their services, other than what the public is able to pay. The number of doctors has shot up and prices have climbed. When faced with toothache, a sick child, or a heart attack, all the unfortunate persons concerned can do is (17) up. Two thirds of the population (18) covered by medical insurance. Doctors charge as much as they want (19) that the insurance company will pay the bill.

The rising cost of medicine in the U. S. A. is among the most worrying problems facing the country. In 1981 the country’s health bill climbed 15.9 percent--about twice as fast as prices (20) general.

12()

A.which

B.what

C.that

D.it