题目内容

关于垃圾回收机制的哪些叙述是对的。()(2分)

A. 程序开发者必须自己创建一个线程进行内存释放的工作。
B. 垃圾收集将检查并释放不再使用的内存。
C. 垃圾收集允许程序开发者明确指定并立即释放该内存。
D. C
E. 中程序将自动调用析构函数,销毁不在使用的对象占用的内存。

查看答案
更多问题

已知Dosomething定义如下:delegatevoiddosomething()类Someclass定义如下:classsomeclass{publicvoidsleep(){Console.writeline(“sleep”);}publicdosomethingm1=null;publicvoidDosleep(){……………….}}则在someclass类的方法Dosleep内,可用下列哪些方法利用变量m1调用类someclass的方法sleep?()(2分)

A. m1=new dosomething(sleep) m1()
B. m1=new dosomething( Addressof sleep) m1()
C. m1=new dosomething(sleep) m1.Invoke()
D. m1=new dosomething( Addressof sleep) m1.Invoke()

An externality is the uncompensated impact of

A. society's decisions on the well-being of society.
B. a person's actions on that person's well-being.
C. one person's actions on the well-being of a bystander.
D. society's decisions on the poorest person in the society.

If a sawmill creates too much noise for local residents,

A. noise restrictions will force residents to move out of the area.
B. a sense of social responsibility will cause owners of the mill to reduce noise levels.
C. the government can raise economic well-being through noise-control regulations.
D. the government should avoid intervening because the market will always allocate resources efficiently.

When positive externalities are present in a market

A. private benefits will be greater than social benefits.
B. social benefits will be greater than private benefits.
C. only government regulation will solve the problem.
D. the market will not be able to generate an equilibrium.

答案查题题库