第1题:
以下对枚举类型名的定义中正确的是______。
A.enum a={one,two,three};
B.enum a{on=9,two=-1,three};
C.enum a={"one","two","three"};
D.enum a{"one","two","three"};
第2题:
有如下程序:
#include<iostream>
using narnespace std;
class ONE{
int e;
public:
ONE():c(O){cout<<1;)
ONE(int n):c(13){cout<<2;}
};
class TWO{
ONE oriel;
ONE one2,
public:
TWO(int m):one2(m){cout<<3;}
};
int main(){
TWO t(4);
return O;
}
运行时的输出结果是
A.3
B.23
C.123
D.213
第3题:
( 10 )执行下列程序,显示的结果是 【 10 】 。
one= "WORK"
two = ""
a = LEN ( one )
i = a
DO WHILE i>=1
two = two + SUBSTR ( one ,i , 1 )
i=i - 1
ENDDO
? two
第4题:
以下对枚举类型名的定义中正确的是( )
A.enum a={one,two,three};
B.enum a{one=9,two=-1,three=200};
C.enum a={"one","two","four"};
D.enum a{"nine","two","three"};
第5题:
类class one 在声明func 成员函数时发生错误,出错原因是【 】。
Class one
{
private:
int a;
public:
void func(two& )
};
class two
{
private:
int b;
friend void one: :func(two & );
};
void one: : func(two& r)
a=r.b;
}
第6题:
以下对枚举类型名的定义中正确的是______。
A.enum a={one,two,three};
B.enum a{one=9,two=-1,three};
C.enum a={"one","two","three"};
D.enum a{"one","two","three"};
第7题:
以理对枚举类型名的定义中正确的是______。
A.enum a={one, two, three);
B.enum a {one=9, two=1three};
C.enum a={"one", "two", "three"};
D.enum a {"one", "two". "three"};
第8题:
The Palace Museum is designated one of China's main protected monuments in 1971. ()
第9题:
A.One,two,threeorfourprocessors
B.One,two,orthreeprocessors
C.One,three,orfourprocessors
D.One,twoorfourprocessors
第10题: