单选题以下程序输出的结果是( )。 void main( ) int x = 1,a =0,b =0; switch(x) case 0:b ++; case 1: a + +; case 2:a ++ ;b ++; cout <<a <<b;
单选题下列关于虚基类的描述中,错误的是( )。
单选题下列有关函数重载的叙述中,错误的是( )。
单选题有如下程序: #include<iostream> using namespace std; class CD{ public: ~CD(){cout<<’C’;} pfivate: char nallle[80]; }; int main(){ CD a,*b yd[2]; return 0; } 执行这个程序的输出结果是( )。
单选题若有下面的说明和定义: struct test { char m2; float m3; union uu{ char u1[5]; float u2; }ua; }MyStruct; 则sizeof(MyStruct)的值是( )。
单选题有以下程序
#include<string.h>
#include<iostream.h>
void main( )
{ char *p="abcde/0fghjik/0";
cout < < strlen(p);}
程序运行后的输出结果是( )。
单选题有下列语句序列:
char str[10]; cin>>str;
当从键盘输入“I love this game”时,str中的字符串是______。
单选题在关系代数运算中,有5种基本运算,它们是______。
单选题执行语句:{cout<<setfill("*")<<setw(10)<<setfill("#")<<left<<123<<"OK"<<endl;return 0;)后将输出
____
。
单选题下面程序的运行结果是
____
。
#include<iostream.h>
int x=5;
int fun(int a)
{
int c;
C=X*a;
retum c;
}
void main()
{
int x=3,a=4;
x=x+fun(a);
cout<<"x"”<<X<<endl;
}
单选题如果有以下定义及初始化: int a=3,*p=&a; 则由此可以推断,*p的值是( )。
单选题有三个关系R、S和T如下: R A B m 1 n 2 S B C 1 3 3 5 T A B C m 1 3 由关系R和S通过运算得到关系T,则所使用的运算为______。 A.笛卡尔积 B.交 C.并 D.自然连接
单选题在黑盒测试方法中,设计测试用例的主要根据是( )。
单选题有如下程序:
#include<iostream>
using namespace std;
class Test
{
public:
Test() {n+=2;}
~Test() {n-=3;}
static int getNum(){return n;}
private:
static int n;
};
int Test::n=1;
int main()
{
Test*p=new Test;
delete p;
cout<<"n="<<Test::getNum()<<endl;
return 0;
}
执行后的输出结果是______。
单选题下面程序的运行结果是{{U}} {{/U}}。
#include<iostream.h> void main() {
int i=1; while(i<=8)
if(++i%3!=2)continue; else cout<<i; }
A.25
B.36
C.258
D.369
单选题软件部件的内部实现与外部可访问分离是指软件的 ______。
单选题在多继承中,公有派生和私有派生对于基类成员在派生类中的可访问性与单继承的规则{{U}} {{/U}}。
A. 完全相同
B. 完全不同
C. 部分相同
D. 以上都不对
单选题下列标识符中合法的是( )。
单选题已知在函数func中语句this->ff=0;与语句ff=0;的效果完全相同。对于这一现象,下列叙述中错误的是
单选题有以下程序 #include<string.h> #include<iostream.h> void main( ) char*p="abcde/0fghjik/0"; cout<<strlen(p); 程序运行后的输出结果是 A) 12 B) 15 C) 6 D) 5