网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
运行如下程序后,命令窗口(command windows)显示为()A=[13,-56,78;25,63,-735;78,25,563;1,0,-1];y=max(max(A))。
A、y=563
B、y=9
C、y=-735
D、y=564
参考答案
更多 “ 运行如下程序后,命令窗口(command windows)显示为()A=[13,-56,78;25,63,-735;78,25,563;1,0,-1];y=max(max(A))。 A、y=563B、y=9C、y=-735D、y=564 ” 相关考题
考题
设有如下通用过程: Public Function f(x As Integer) Dim y As Integer x=20 y=2 f=x*y End Function 在窗体上画一个名称为Command1的命令按钮,然后编写如下事件过程: Private Sub Command1_Click() Static x As Integer x=10 y=5 y=f(x) Print x; y End Sub 程序运行后,如果单击命令按钮,则在窗体上显示的内容是______。A.10 5B.20 5C.20 40D.10 40
考题
以下程序的运行结果是#define MAX(A,B)(A)(B)?(A):(B)#define PRINT(Y) printf("Y=%d\t",Y)main(){ int a=1,b=2,c=3,d=4,t;t=MAX(a+b,c+d);PRINT(t); }A.Y=3B.存在语法错误C.Y=7D.Y=0
考题
在窗体上画一个名称为Command1的命令按钮,然后编写如下程序: Private Sub Command1_Click() Dim x As Integer Static y As Integer Cls x=x+5 y=y+3 Print x,y End Sub 程序运行时,两次单击命令按钮Command1后,窗体显示的结果是( )。A.10 6B.5 6C.5 3D.10 3
考题
若输入1.5、2.5,则以下程序的运行结果为______。main(){ float a,b; int c; scanf("%f,%f,",a,b); c=max(a,b); printf("%d",c);}max(x,y)float x,y;{ float z; z=x>y?x:y; return(z);}A.1.5B.2.5C.2D.3
考题
下列程序的运行结果为( )。 #define MAX(x,y)(x)>(y)?(x):(y) main() { int a=2,b=3,c=1,d=3,t; printf("%d\n",(MAX(a+b,c+d))*100); }A.500B.5C.4D.400
考题
在窗体上画一个名称为Command1的命令按钮,然后编写如下程序:Private Sub Commandl_Click( )Static X As IntegerStatic Y As IntegerClsY=1Y=Y+5X=5+XPrint X, YEnd Sub程序运行时,3次单击命令按钮Command1后,窗体上显示的结果为【 】。
考题
下列函数定义中,会出现编译错误的是 ______。A.max(int x,int y,int *z) { *z=x>y? x:y;}B.int max(int x,y) {int z; z=x>y? x;y; return z; }C.max(int x,int y) { int z; z=x>y? x:y; return(z); }D.int max(int x,int y) { return(x>y?x:y);}
考题
下列函数定义中,会出现编译错误的是A.max(int x,int y,int *z) { *z=xy ? x:y; }B.int max(int x,y) { int z; z=x>y ? x:y; return z; }C.max(int x,int y) { int z; z=xy?x:y; return(z); }D.int max(int x,int y) { return(x>y?x:y); }
考题
在窗体上画一个名称为Command1的命令按钮,然后编写如下程序:Private Sub Command1_ Click() Static x As Integer Static y As Integer Cls y=1 y=y+5 x=y +x Print x, yEnd Sub程序运行时,三次单击命令按钮Command1后,窗体上显示的结果为______。A.15 16B.15 6C.15 15D.5 6
考题
在窗体上画一个名称为Commandl的命令按钮,然后编写如下程序: Private Sub Command1_Click() Static X As Integer Static Y As Integer Cls Y = 1 Y = Y + 5 X = 5 + X Print X, Y End Sub 程序运行时,三次单击命令按钮Commandl后,窗体上显示的结果为A.15 16B.15 6C.15 15D.5 6
考题
有以下程序段:includedefine MAX(x,y)(x)>(y)?(x):(y)void main(){ int i,j,k; i=
有以下程序段: #include<iostream.h> #define MAX(x,y)(x)>(y)?(x):(y) void main() { int i,j,k; i=10; j=15;k=MAX(i,j)*10; cout<<k<<end1; } 程序执行后的输出结果是( )。A.15B.100C.150D.10
考题
在窗体上画一个命令按钮,名称为Command1。然后编写如下程序: Pnvate Sub Command1_Click() Dim x As Integer,y As Integer,t As Integer x=10:y=20:t=0 If x=y Then t=x:x=y:y=t Print x;y End Sub程序运行后,如果单击命令按钮,则在窗体上显示的内容是( )。A.10 20B.20 0C.20 10D.20 20
考题
窗体中有命令按钮Command1,事件过程如下:Public Function f(x As Integer)As IntegerDim y As Integerx=20y=2f=x*YEnd FunctionPrivate Sub Command 1_Click()Dim y As Integerstatic x As Integerx=10y=5y=f(x)Debug.Print x;yEnd Sub运行程序,单击命令按钮,则立即窗口中显示的内容是( )。A.10 5B.10 40C.20 5D.20 40
考题
在窗体上画一个名称为Command1的命令按钮,并编写如下程序: Private Sub Command1_Click( ) Dim x As Integer Static y As Integer x=10 y=5 Call f1(x,y) Print x,y End Sub Private Sub f1(ByRef x1 As Integer,y1 As Integer) x1=x1+2 y1=y1+2 End Sub程序运行后,单击命令按钮,在窗体上显示的内容是A.10 5B.12 5C.10 7D.12 7
考题
下面程序的输出结果是()。includeusing namespace std;templateT max(T x,T
下面程序的输出结果是( )。 #include<iostream> using namespace std; template<class T> T max(T x,T y) { return(x>= y ? x:y);} template<class T> T max(T x,T y,T z) { T t; t=(x>=y ? x:y); return(t>=z ? t:z); } void main(){ int x = 10,y=18,maxi; float a = 1.2,b = 3.2,c = 2,max2; max1 = max(x,(int)c); max2 = max(a,b,(float)y); cout<<maxi<<endl; cout<<max2<<endl;A.18 3.2B.10 18C.10 3.2D.编译出错
考题
下列程序的输出结果为【 】。ineludeint max(int x, int y){return (x
下列程序的输出结果为【 】。inelude<iostream. h>int max(int x, int y){return (x>y? x: y); }void main() {int n=3, m=12;max(m, n)++cout<<"m="<<m<<", n= "<<n<<end1;}
考题
在窗体上画一个名称为Command1的命令按钮,然后编写如下程序: Private Sub Command1-Click() Static X Am Integer Static Y As Integer Cls Y=1 Y=Y+5 X=5+X Print X,Y End Sub程序运行时,三次单击命令按钮Comand1后,窗体上显示的结果为______。A. 15 16B.15 6C.15 15D.5 6
考题
下列函数定义不正确的是 ( )A.int max { int x y,z; z=x>y? x: y }B.int max(x,y) int x,y; { int z; z=x>y? x:y; return(z) }C.int max(x,y) { int x,y z; z=x>y? x: y; return(z); }D.int max( ) {}
考题
在窗体上画一个名称为Command1的命令按钮,并编写如下程序: Private Sub Command1_Click( ) Dim x As integer Static y As integer x=10 y=5 Call f1(x,y) Print x,y End Sub Private Sub f1(ByRef xl As Integer,y1 As Integer) x1=x1+2 y1=y1+2 End Sub 程序运行后,单击命令按钮,在窗体上显示的内容是A.10 5B.12 5C.10 7D.12 7
考题
在窗体上画一个名称为Command1的命令按钮,并编写如下程序: Public x As IntegerPrivate Sub Command1_Click()Dim y As Integerx=10 : y=5Call f(x, y)Print x; yEnd SubPrivate Sub f(x1 As Integer, y1 As Integer)x1=x+2y1=y+2End Sub程序运行后,单击命令按钮,在窗体上显示的内容是( )。A. 10 5B. 12 7C. 12 2D. 以上都不对
考题
假设有函数模板定义如下:template typename T Max(T a,T b,Tc){c=a+b;}下列选项正确的是()A、)int x,y;char z;Max(x,y,z);B、)double x,y,z;Max(x,y,z);C、)int x,y;float z;Max(x,y,z);D、)float x;double y,z;Max(x,y,z);
考题
运行如下程序后,命令窗口(commandwindows)显示的结果为()A=[13,-56,78;25,63,-735;78,25,563;1,0,-1];y=max(max(A))A、y=564B、y=9C、y=-735D、y=563
考题
下面程序段求两个数中的大数,不正确的是()。A、Max=IIf(x>y,x,y)B、If x>y Then Max=x Else Max=yC、Max=x:If y>=x Then Max=yD、If y>x Then Max=y:Max=x
考题
单选题假设有函数模板定义如下:templateMax(T a,T b,Tc){c=a+b;}下列选项正确的是()A
)int x,y;char z;Max(x,y,z);B
)double x,y,z;Max(x,y,z);C
)int x,y;float z;Max(x,y,z);D
)float x;double y,z;Max(x,y,z);
考题
单选题下面程序段求两个数中的大数,不正确的是()。A
Max=IIf(x>y,x,y)B
If x>y Then Max=x Else Max=yC
Max=x:If y>=x Then Max=yD
If y>x Then Max=y:Max=x
考题
单选题运行如下程序后,命令窗口(commandwindows)显示的结果为()A=[13,-56,78;25,63,-735;78,25,563;1,0,-1];y=max(max(A))A
y=564B
y=9C
y=-735D
y=563
热门标签
最新试卷