下列程序段的输出结果
Clear
store 10 to a
store 20 to B.
set udfparms to reference
do swap with a,(b)
a,b
procedure swap
parameters x1,x2
temp=X1
x1=x2
x2=temp
endproc
A.10 20
B.20 20
C.20 10
D.10 10
第1题:
下列程序段的输出结果是( )。
A=0
Print A+1
A=3
A.1
B.-1
C.3
D.0
第2题:
下列程序段的输出结果是()。
A.7
B.8
C.9
D.10
第3题:
下列程序段的输出结果为( )。 #include<stdio.h> main() { static char a[]="language"; char*p; p=a; for(p=a;p<a+8;p+=2) putchar(*p); }
A.1
B.4
C.9
D.0
第4题:
下列程序段的输出结果是【 】。
include<iostream.h>
void main()
{int i=10,sum=0;
do
{
sum=+sum+i;
i=i-2;
}while(i>=2);
cout<<sum<<end1;
}
第5题:
下列程序段的输出结果是【 】。
cout << fixed<<509.123456789<<end1;
第6题:
下列程序段的输出结果为( )。 #include<stdio.h> main() { static char a[]="language"; char *p; p=a; for(p=a;p<a+8;p+=2) putchar(*p); }
A.language
B.lnug
C.有语法错误
D.lang
第7题:
下列程序段执行后的输出结果为()。
A.0
B.1
C.2
D.3
第8题:
下列程序段的输出结果是【15】 。
cout<
第9题:
程序段的输出结果是【 】。
int a=12,b=12;
cout<<- -a<< " "<<++b;
第10题:
下列程序段的输出结果为( )。 #include<stdio.h> main() { static char a[]="language"; char*p; p=a; for(p=a;p<a+8;p+=2) putchar(*p); }
A.language
B.lnug
C.有语法错误
D.lang