1. [单选题]继承机制的作用是
A. 信息隐藏
B. 数据封装
C. 定义新类
D. 数据抽象
2. [单选题]下列程序的输出结果是()。includeint fun(intx){int a; if(x==0‖x==1)return 3; elsea=
下列程序的输出结果是( )。 #includestdio.h> int fun(intx) { int a; if(x==0‖x==1) return 3; else a=x-fun(x-2); return a; } void main() { printf("%d",fun(7)); }
A. 2
B. 8
C. 9
D. 5
3. [单选题]注册一个自定义组件语句的用法是:( )
A. RegisterComponents(TMyComponent,[‘Standard’])
B. Register(TMyComponent,[‘Standard’])
C. RegisterComponents(‘Standard’,[TMyComponent])
D. Register(‘Standard’,TMyComponent)