我们通常用到的cin>>,是属于 【15】 输入。

已知函数f的原型是:void f(int *a,long &b);,变量v1、v2的定义是:int v1;long v2;,正确的调用语句是______。

A:f(v1,& v2); B:f(v1,v2); C:f(&v1,v2); D:f(&v1,&v2);

下列是模板声明的开始部分,其中正确的是______ 。

A:template<T> B:template <class T1,T2> C:template <class T1,class T2> D:template <class T1;class T2>

执行语句序列:
int n;
cin>>n;
switch(n)

case 1:
case 2:cout<<'1';
case 3:
case 4:cout<<'2';break;
default:cout<<'3';

时,若从键盘输入1,则屏幕显示______ 。

A:1 B:2 C:3 D:12

在C++中用来实现运行时多态性的是______ 。

A:重载函数 B:析构函数 C:构造函数 D:虚函数

已知程序中已经定义了函数test,其原型是int test(int,int,int);,则下列重载形式中正确的是______ 。

A:char test (int,int,int); B:double test(int,int,double); C:int test (int,int,int=0); D:float test(int,int,float=3.5F);

判断字符型变量ch是否为大写英文字母,应使用表达式______ .

A:ch>='A'& ch<='Z' B:ch:='A'||ch>='Z' C:'A'<=ch<='Z' D:ch>='A'&& ch<='Z'

下列模式中,能够给出数据库物理存储结构与物理存取方法的是______ .

A:内模式 B:外模式 C:概念模式 D:逻辑模式

在软件开发中,下面的任务不属于设计阶段的是______ .

A:数据结构设计 B:给出系统模块结构 C:定义模块算法 D:定义需求并建立系统模型

已知下列语句中的x和y都是int型变量,其中错误的语句是______ .

A:x=y++; B:x=++y; C:(x+ y)++; D:++x=y;

微信扫码获取答案解析
下载APP查看答案解析