Man: No, I bought it when I was in Hong Kong last spring. The shoes, shirt, and tie I already had. Do you think they look good together?
Woman: They look very nice. The whole outfit looks great. That color tie really goes well with the suit. Did you get it in Hong Kong, too? It's really unusual looking.
Man: No, I don't remember where I got the tie, but I make a point of buying all my suits when I go out of town. The suits at these local department stores are too expensive and, in my opinion, not very attractive.
Woman: I know what you mean. I don't much like going shopping around here, either. The choices are not very good.
What did the man buy?
A.A shirt.
B.A tie.
C.A suit.
D.A pair of shoes.
第1题
以下程序的输出结果是【 】。
include<iostream.h>
void main()
}
int a=0;
a+=(a=8) ;
cout<<a;
}
第2题
以下程序输出结果是 ______。 #include<iostream.h> void fun(int x,int y,int z){z=x+y;} void main() { int a=10; fun (2,2,a); cout<<a; }
A.0
B.4
C.10
D.无定值
第3题
若从键盘输入70,则以下程序输出的结果是【 】。
include<iostream.h>
void main()
{
int a; cin>>a;
if(a>50) cout<<a;
if(a>40) cout<<a;
if(a>30) cout<<a;
}
第4题
以下程序段的输出结果是 [ ] 。
include<iostream.h>
void ref(int &i);
void main(){
int val=1;
cout<<“旧值:”<<val<<end1;
ref(val);
cout<<”新值:”<<val<<end1;
}
void ref(int &i){i=10;}
第5题
以下程序的输出的结果是()。#include <iostream.h>int x=3;void main(){ void incre(); int i; for (i=1;i<x;i++) incre();}Void incre(){ static int x=1; x*=x+1; cout<<x<<"";}
A.3 3
B.2 2
C.2 6
D.2 5
第6题
以下程序的输出的结果是()。 #include<iostream.h> int x=3: void main() { void fun(); int i; for(i=1;i<x;i++) fun(); } void fun() { static int x=1; x*=x+1; cout<<x<<" "; }
A.3,3
B.2,2
C.2,6
D.2,5
第7题
以下程序输出的结果是_____。
include<iostream.h>
void main()
{
int a=5,b=4,c=3,d;
d=(a>b>c) ;
cout < < d;
}
第8题
以下程序的输出结果是 #include<iostream.h> void reverse(int a [ ] ,int n) {int i,t; for(i=0;i<n/2;i++) {t=a[i];a[i]=a[n-1-i];a[n-1-i]=t;} } void main() {int b[10]={1,2,3,4,5,6,7,8,9,10}
A.22
B.10
C.34
D.30
第9题
以下程序的输出结果是_____。
include<iostream.h>
void fun()
{ static int a=0;
a+=2;
cout < < a < < " ";}
void main()
{ int cc;
for(cc=1;cc<4;cc++)
fun() ;
cout < < endl;}
第10题
以下程序的输出结果是 #include<iostream.h> void main() {int x=1,y=3; cout << x++ << ","; {int x=0;x+=y*2; cout <<X <<"," <<y << ","; } cout << x <<","<< y; }
A.1,6,3,1,3
B.1,6,3,6,3
C.1,6,3,2,3
D.1,7,3,2,3
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!