A.高内聚高耦合
B. 高内聚低耦合
C. 低内聚高耦合
D. 低内聚低耦合
第1题
阅读以下程序
#include(iostream.h>
voidmain()
{
charline[10];
cin>>line;
cout<<1ine<<endl;
}
如运行时输入“Thisisanexample.<CR>”,则程序的输出结果是()。
A.This
B.Thisis
C.Thisisa
D.Thisisanexample
第2题
阅读以下程序 #include(iostream.h> voidmain() { charline[10]; cin>>line; cout<<1ine<<endl; } 如运行时输入“Thisisanexample.<CR>”,则程序的输出结果是()。
A.This
B.Thisis
C.Thisisa
D.Thisisanexample
第3题
阅读以下程序
#include<iostream.h>
void main()
{
char line[10];
cin>>line;
cout<<line<<endl;
}
如运行时输入This is example.<CR>,则程序的输出结果是
A.This
B.This is
C.This is a
D.This is an example.
第4题
有以下程序: #include<iostream.h> #include<iomanip.h> void main() { cout.fill('*'); cout.width(10); cout,<setiosflags(ios::left)<<123.45<<endl; } 程序执行后的输出结果是()
A.****123.45
B.**123.45**
C.123.45****
D.***123.45*
第5题
有以下程序,程序运行的结果是 ______。 #include<iostream.h> #include<string.h> void main(){ char x[]= "C++" ,y[10]= "C++" ; cout<<sizeof(x)/sizeof(char)<<“,”<<sizeof(y)/sizeof(char); }
A.3 3
B.4 4
C.4 10
D.10 10
第6题
有以下程序:
include”iostream.h”
void main()
{int i=10;
int j=5;
cout((j+i++<<endl;}
的结果为______。
第7题
下列程序的执行结果为______。
include<iostream.h>
void main()
{
cout.fill(‘*’);
tout.width(10);
cout<<“hello”<<endl;
)
第8题
阅读以下程序,此程序的功能是【 】。
include<iostream.h>
void main()
{
int n, i, j;
for(i=100;i<999; i+100)
for(j=i/100:j<=99;j=j+10)
{
n=i+j;
cout<<" "<<n;
}
cout<<"\n";
}
第9题
阅读下列程序:
include<iostream.h>
void fun(int n)
{
int x(5);
static int y(10);
if(n>0)
{
++x;
++y;
cout<<x<<","<<y<<endl;
}
}
void main()
int m(1);
fun(m);
}
则该程序的输出结果是______。
第10题
阅读下面程序:
include<iostream.h>
void fun(int n)
{
int x(5);
static int y(10);
if(n>0)
{
++x;
++y;
cout<<x<<","<<y<<end1;
}
}
void main()
{
int m(1);
fun(m);
}
则该程序的输出结果是______。
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!