A.网状模型
B.层次模型
C.关系模型
D.面向对象模型
第1题
以下程序的输出结果是 。 #include <iostream> #include <iomanip> using namespace std; void main() { int i; for (i=1;i>=0;) cout< <i--;>
第2题
运行程序,程序输出结果为() #include <iostream> using namespace std; int main() { struct s { int x; } a[3]; cout< <sizeof(a); return 0;> A、4
B、12
C、18
D、6
第3题
当从键盘输入10 20时,以下程序段的输出结果是 。 (区分==和=) #include <iostream> using namespace std; void main() { int num1, num2; cout<<"please input num1 and num2:\n"; cin>>num1>>num2; if(num1 = num2) cout<<"num1=num2"< else>
第4题
当输入1 0 0时,以下程序段的输出结果是 。 (易错的关系表达式) #include <iostream> using namespace std; void main() { int a, b, c; cout<<"please input a, b and c:\n"; cin>>a>>b>>c; if(a<=b<=c) {>< <endl; }>
第5题
若有以下程序段:
include <iostream>
using namespace std;
int main()
{
char*p="abcdefgh",*r;
long*q;
q=(long*)p;q++;
r=(char*)q;
cout<<r<<end1;
return 0;
}
该程序的输出结果是【 】。
第6题
以下程序的输出结果为【 】。
include<iostream>
using namespace std;
void initialize(int printNo,int state=0);
void initialize(int printNo=l,int state);
int main()
{
initialize();
return 0;
}
void initialize(int printNo,int state)
{
cout<<printNo<<","<<state<<end1;
}
第7题
下列程序的输出结果为()。 #include (iostream) using namespace std; void main() char,a[ ] = { "hello" ," the" ," world" }; char * * pa = a: pa + +; cout << * pa << ENDL; }
A.hello
B.the
C.world
D.hellotheworld
第8题
以下程序的输出结果是#include <iostream>using namespace std;int main(){ cout.fill('*'); cout.width(5); cous<<hex<<100<<end1; return 0;}
A.**100
B.***64
C.100**
D.64***
第9题
给出下面程序的输出结果。
include<iostream>
using namespace std;
void main()
{
int num=0,i=8;
do
{
i--;
num++;
}while(--i);
cout<<num<<endl;
}
第10题
以下程序运行后的输出结果是 。 (条件表达式的多样性) #include <iostream> using namespace std; void main() { int a = 3, b = 4, c = 5, t = 99; if(b) if(a) cout< </iostream></endl;> << <t> < <endl; else>
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!