不凡考网

2022计算机二级历年考试试题及答案(5G)

来源: 不凡考网    发布:2022-03-16     [手机版]    
  • 下载次数:
  • 支持语言:
  • 1721次
  • 中文简体
  • 文件类型:
  • 支持平台:
  • pdf文档
  • PC/手机

导读

不凡考网发布2022计算机二级历年考试试题及答案(5G)相关信息,更多2022计算机二级历年考试试题及答案(5G)的相关资讯请访问不凡考网计算机类考试频道。

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)


  • 查看答案&解析 点击获取本科目所有试题

  • 本文链接:https://www.zhukaozhuanjia.com/download/e6xrd7.html
    推荐阅读
    @2019-2026 不凡考网 www.zhukaozhuanjia.com 蜀ICP备20012290号-2