[计算机类试卷]国家二级(C++)笔试模拟试卷102(无答案).doc

上传人:amazingpat195 文档编号:846953 上传时间:2019-02-21 格式:DOC 页数:12 大小:40.50KB
下载 相关 举报
[计算机类试卷]国家二级(C++)笔试模拟试卷102(无答案).doc_第1页
第1页 / 共12页
[计算机类试卷]国家二级(C++)笔试模拟试卷102(无答案).doc_第2页
第2页 / 共12页
[计算机类试卷]国家二级(C++)笔试模拟试卷102(无答案).doc_第3页
第3页 / 共12页
[计算机类试卷]国家二级(C++)笔试模拟试卷102(无答案).doc_第4页
第4页 / 共12页
[计算机类试卷]国家二级(C++)笔试模拟试卷102(无答案).doc_第5页
第5页 / 共12页
点击查看更多>>
资源描述

1、国家二级( C+)笔试模拟试卷 102(无答案)1 C+源晚间中包含的输入/输出头文件为( )。(A)stdio.h(B) stdafx.h(C) iostream.h(D)stream.h2 下列关于 C+函数的描述中正确的是( )。(A)主函数是程序的入口,它由用户定义的函数调用(B)函数在调用之前必须先被声明(C)每个用户定义的函数只能被其他函数调用一次(D)函数是 C+中面向对象程序设计框架的基本组成单元3 已知 int a,*pa= b=temp: void main() int m ,n; m=8; n=9; change(m,n) : cout m“ “ n endl; (A)8

2、9(B) 98(C)程序有错误(D)9930 关于成员函数特征的下述描述中,( )是错误的。(A)成员函数一定是内联函数(B)成员函数可以重载(C)成员函数可以设置参数的默认值(D)成员函数可以是静态的31 如果一个类至少有一个纯虚函数,那么就称该类为( )。(A)抽象类(B)虚基类(C)派生类(D)以上都不对32 在 C+中,打开一个文件,就是将这个文件与一个( )建立关联,关闭一个文件,就是取消这种关联。(A)类(B)流(C)对象(D)结构33 若已定义的函数有返回值,则以下关于该函数调用的叙述中错误的是( )。(A)函数调用可以作为独立的语句存在(B)函数调用可以无返回值(C)函数调用可

3、以出现在表达式中(D)函数调用可以作为一个函数的形参34 下列函数中,( ) 是对文件进行写操作的。(A)get() (B) read()(C) seekg()(D)put()35 关于 read()函数的下列描述中,正确的是 ( )。(A)该函数只和来从键盘输入中获取字符串(B)该函数所获取的字符多少是不受限制的(C)该函数只能用于文本文件的操作中(D)该函数只能按规定读取所指定的字符数36 利用继承能够实现 _。这种实现缩短了程序的开发时间,促使开发人员复用已经测试和调试好的高质量软件。37 软件危机出现于 20 世纪 60 年代末,为了解决软件危机,人们提出用 _的原理来设计软件,这就是

4、软件工程诞生的基础。38 _ 是一种特殊的成员函数,它主要用来为对象分配内存空间,对类的数据成员进行初始化并执行对象的其他内部管理操作。39 C+语言中的友元函数为在类外访问类中的私有成员和保护成员提供了方便,但破坏了类的 _ 和 _。40 派生类对基类的继承有三种方式: _、 _,保护继承。41 switch 后面括号中的表达式只能是整型、_ 或枚举型表达式。42 头文件 _ 中包含了执行内部格式化所需的信息。43 长度为 n 的顺序存储线性表中,当在任何位置上插入一个元素概率都相等时,插入一个元素所需移动元素的平均个数为_。44 类中数据成员和成员函数的默认类型为_。45 下面程序的运行结果是 _。#includeiostream.hvoid main()char str=“SSSWLIA“,c ;int k;for(k=2;(c=strk!=0;k+)switch(c)caseI:+k;break;casel;continue;default;c46 数组元素 ai是该数组中的第 _ 个元素。47 请定义一个函数名为 A,返回值为 int,没有参数的纯虚函数的定义是 _ 。48 类的具体表现是通过 _ 定义来操作的。49 指针变量所保存的不是一般的数据值,而是程序中另一个对象的 _。50 在一个 C+程序中,每个变量都必须遵循 _ 的原则。

展开阅读全文
相关资源
猜你喜欢
  • DIN EN 123400-800-1992 Capability detail specification flexible printed boards without through connections german version EN 123400-800 1992《性能详细规范 无直通连接的软印制电路板》.pdf DIN EN 123400-800-1992 Capability detail specification flexible printed boards without through connections german version EN 123400-800 1992《性能详细规范 无直通连接的软印制电路板》.pdf
  • DIN EN 123500 A2-1996 Sectional specification Flexible printed boards with through connections German version EN 123500 1992 A2 1995《分规范 连续连接柔性印制电路板》.pdf DIN EN 123500 A2-1996 Sectional specification Flexible printed boards with through connections German version EN 123500 1992 A2 1995《分规范 连续连接柔性印制电路板》.pdf
  • DIN EN 123500-1992 Sectional specification flexible printed boards with through connections german version EN 123500 1992《分规范 挠性带连续连接印制电路板》.pdf DIN EN 123500-1992 Sectional specification flexible printed boards with through connections german version EN 123500 1992《分规范 挠性带连续连接印制电路板》.pdf
  • DIN EN 123500-800-1992 Capability detail specification flexible printed boards with through connections german version EN 123500-800 1992《性能详细规范 直通连接的软印制电路板》.pdf DIN EN 123500-800-1992 Capability detail specification flexible printed boards with through connections german version EN 123500-800 1992《性能详细规范 直通连接的软印制电路板》.pdf
  • DIN EN 123600-1997 Sectional specification - Flex-rigid multilayer printed boards with through connections German version EN 123600 1996《分规范 带贯通连接的弯曲刚性多层印制电路板》.pdf DIN EN 123600-1997 Sectional specification - Flex-rigid multilayer printed boards with through connections German version EN 123600 1996《分规范 带贯通连接的弯曲刚性多层印制电路板》.pdf
  • DIN EN 123700-1997 Sectional specification - Flex-rigid double sided printed boards with through connections German version EN 123700 1996《分规范 带贯通连接的弯曲刚性双面印制电路板》.pdf DIN EN 123700-1997 Sectional specification - Flex-rigid double sided printed boards with through connections German version EN 123700 1996《分规范 带贯通连接的弯曲刚性双面印制电路板》.pdf
  • DIN EN 123800-1997 Sectional specification - Flexible multilayer printed boards with through connection German version EN 123800 1996《分规范 带贯通连接的挠性多层印制电路板》.pdf DIN EN 123800-1997 Sectional specification - Flexible multilayer printed boards with through connection German version EN 123800 1996《分规范 带贯通连接的挠性多层印制电路板》.pdf
  • DIN EN 125000-1998 Generic specification - Cores made of ferrite materials German version EN 125000 1997《总规范 铁氧体铁芯》.pdf DIN EN 125000-1998 Generic specification - Cores made of ferrite materials German version EN 125000 1997《总规范 铁氧体铁芯》.pdf
  • DIN EN 125100-1993 Sectional specification magnetic oxide cores for inductor applications german version EN 125100 1991《分规范 电感线圈中的磁氧体铁芯》.pdf DIN EN 125100-1993 Sectional specification magnetic oxide cores for inductor applications german version EN 125100 1991《分规范 电感线圈中的磁氧体铁芯》.pdf
  • 相关搜索

    当前位置:首页 > 考试资料 > 职业资格

    copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
    备案/许可证编号:苏ICP备17064731号-1