第1题:
使"Microsoft"在当前窗体上输出的语句是( )。
A.Picture.Print "Microsoft"
B.Print "Microsoft"
C.Printer. Print "Microsoft"
D.Debug.Print "Microsoft"
第2题:
假设x的值为5,则在执行以下语句时,其输出结果为"Ok"的Select Case语句是( )。
第3题:
下面语句的输出结果为______。
x!=3.1415926
Print x
第4题:
有如下语句: int i; char c; cin>>i>>c; 要想使i=20,c=7,正确输入为 ______。
A.20 7
B.207
C.20,7
D.以上都不对
第5题:
要想使23.78965421的输出为23.7887应用的语句是()
A.cout<<23.78965421;
B.cout<
C.cout<<23.78965421-0.001;
D.cout<
第6题:
下列语句通常不是作为定义结点的是______。
A) 输入语句
B) 过程调用语句
C) 赋值语句
D) 输出语句
A.
B.
C.
D.
第7题:
在下面程序的横线处填上适当的语句,使程序执行后的输出结果为ABCD。
include<iostream>
using namespace std;
classA
{
public:
A(){cout<<'A';}
};
class B:______
{
public:
B(){cout<<'B';}
};
class C:______
{
public:C(){cout<<'C';}
};
class D:public B,public C
{
public:D(){cout<<'D';}
};
void main(){D obj;)
第8题:
在下面的程序的横线处填上适当的语句,使该程序的输出为12。
include<iostream.h>
using namespace std;
class Base
{
public:
int a,b;
Base(int i){a=i;}
};
class Derived:public Base
{
int a;
public:
Derived(int x):Base(x),b(x+1){};
void show()
{
______;//输出基类数据成员a的值
cout<<b<<endl;
}
};
int main()
{
Derived d(1);
d.show();
return 0;
第9题:
语句printf("%f\n",13.0*(1/5));的输出结果为 【6】 。
第10题:
执行“printf(”%C",’F’一2);”语句后得到的输出结果为_____。