2021年计算机二级考试模拟卷(4).docx





《2021年计算机二级考试模拟卷(4).docx》由会员分享,可在线阅读,更多相关《2021年计算机二级考试模拟卷(4).docx(4页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、2021年计算机二级考试模拟卷(4)本卷共分为1大题50小题,作答时间为180分钟,总分100分,60分及格。一、单项选择题(共50题,每题2分。每题的备选项中,只有一个最符合题意) 1.有如下函数定义void func (int a,intb) a; b;若执行代码段int x0 ,y1func(x,y);则变量x和y值分别是_A:0和1B:1和1C:0和2D:1和22.有如下程序#includeusing namespace std;class SamplepublicSample_Sample_coutnext&b;D:(*p)nextq;13.有如下程序#includeusing na
2、mespace std;class ONEint c;publicONE_c(0)cout0;+i);D:for(;);39.以下定义数组中错误的是_A:int a10;B:int a220;C:int a20_;D:int a_;40.下面程序错误的语句是_#include iostrteam.h void main_ int A=0; int & B; B=A; cout cout ;class C:public A,private Bprivate:int c;public:void Setc(int x,int y,int z) c=z;Seta(x);Setb(y);void Dis
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 2021 计算机 二级 考试 模拟

限制150内