执行下列语句后,输出结果为cout. put('s');cout<<,'c'<<'a';
A.ca
B.sca
C.s
D.a
第1题:
执行下列语句后,输出结果为( )。 cout.put(‘s’); cout<<‘c’<<‘a’;
A.ca
B.sca
C.s
D.a
第2题:
要使程序执行后的输出结果为ABCD,应在横线处添加语句( )。 #include<iostream> using namespace std; { public:A(){cout<<'A';} }; class B=______ { public:B(){cout<<'B';} }; class C:virtual public A { public:C(){cout<<'C';} }; class D:public B,public C { public:D(){cout<<'D';} }; void main(){D obj;}
A.public A
B. private A
C.protected A
D.virtual public A
第3题:
下列输出语句中,不正确的是()。
A.cout<<’tn ’;
B.cout<<0x20;
C.cout.put('O');
D.cout<<’A’;
第4题:
执行下列程序语句后,输出结果为( )。 #inelude<iostream> using namespace std; int m=5; int main() { int m=3; m++; ::m++; cout<<m<<end1; return 0; }
A.3
B.4
C.5
D.6
第5题:
执行下列语句后,输出结果为______。
s$="ABCDEFG"
Print InStr(s$,"efg")
Print LCase$(s$)