网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

计算两个变量的和,然后显示其结果:  DECLARE @x int = 10, @y int = 20, @z int SET  @z = @x + @y  Print @z


参考答案

更多 “ 计算两个变量的和,然后显示其结果:  DECLARE @x int = 10, @y int = 20, @z int SET  @z = @x + @y  Print @z” 相关考题
考题 下面结构体的定义语句中,错误的是A)struct ord {int x;int y;int z;}; struct ord a;B)struct ord {int x;int y;int z;} struct ord a;C)struct ord {int x;int y;int z;} a;D)struct {int x;int y;int z;} a;

考题 以下程序运行后输出结果是【】。int a=30,b=40;void fun(int x,int y){ int z;z=(xy)?x:y;a=z+10;b=z+20;}main(){printf("a=%d,b=%d\n",a,b);fun(a,b);prinf("a=%d,b=%d\n",a,b);}

考题 下面结构体的定义语句中,错误的是( )。A.struct ord{int x;int y;int z;};struct ord a;B.struct ord{int x;int y;int z;};ord a;C.struct ord{int x;int y;int z;}a;D.struct{int x;int y;int z;}a;

考题 以下程序的输出结果是 【10】 。fun (int x,int y,int z){ z =x*x+y*y;}main (){int a=31;fun (6,3,a)printf ("%d", a)}

考题 下面结构体的定义语句中,错误的是( )。 A.struct ord{int x;int Y;int Z;};struet ord a;SXB 下面结构体的定义语句中,错误的是( )。A.struct ord{int x;int Y;int Z;};struet ord a;B.struct ord{int x;int y;int Z;}struct ord a;C.struct ord{int X;int Y;int Z;}a;D.struct{int X;int y;int Z;}a;

考题 以下能正确定义整型变量x、y和z并为其赋初值5的语句是( )。 A.int x=y=z=5;B.int x,y,z=5;C.int x=5,y=5,z=5;D.x=5,y=5,z=5;"

考题 以下程序执行后的输出结果是( )。include usingnamespacestd;void try(int,int,int,in 以下程序执行后的输出结果是( )。 #include <iostream> using namespace std; void try(int,int,int,int); int main ( ) { int x,y,z,r; x=1; y=2; try(x,y,z,r); cout<<r<<end1; return 0; } void try(int x,int y, int z,int r) { z = x+y; x = X*X; y = y*y; r = z+x+y; }A.18B.9C.10D.不确定

考题 下列函数定义中,会出现编译错误的是 ______。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);}

考题 以下程序的输出结果是 ( ) fun (int x,int y, int z) { z=x * x+y * y;} main( ) { int a=31; fun(5,2,a); print{("%d",a); }A.0B.29C.31D.无定值

考题 下列函数定义中,会出现编译错误的是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); }

考题 有如下程序: include using namespace std; void f1(int x, int y){int z= 有如下程序:#include<iostream>using namespace std;void f1(int x, int y){int z=x; x=y; y=z;)void f2(int x, int y){int z=x; x=y; y=z;}intmain(){int x=10, y=26;f1(x, y);f2(x, y);cout<<y<<end1;return 0;}运行时的输出结果是( )。A) 10B) 16C) 26D) 36A.B.C.D.

考题 有以下程序段,其输出的结果是______。int x,y,z;X=y=z=0;++x‖++y ++z;cout<<x<<","<<y<<","<<z<<endl;

考题 下列函数定义中,会出现编译错误的是A.max(int x,int y,int*z) {*z=x>y?xy;}B.int max(int x,y) {int z; z=x>y?xy; return z; }C.max(int x,int y) {int z; z=x>y?xy;return(z); }D.int max(int x,int y) { return(x>y?xy);}

考题 若有以下变量和函数说明:includecharCh='*';void sub(int x,int y,char ch,double* 若有以下变量和函数说明: #include<iostream.h> charCh='*'; void sub(int x,int y,char ch,double*Z) { switch(ch) { case'+':*Z=x+y;break; case'-':*Z=x-y;break: case'*':*Z=x*y;break; case'/':*z=x/y;break: } } 以下合法的函数调用语句是( )。A.sub(10,20,Ch,y);B.sub(1.2+3,2*2,'+',Z);C.sub(sub(1,2,'+',y),sub(3,4'+',x),'-',y);D.sub(a,b,x,ch);

考题 请选出以下程序的输出结果_______。includesub(x,y,z)int x,y,*z;{*z=y-x;}main(){int 请选出以下程序的输出结果_______。 #include<stdio.h> sub(x,y,z) int x,y,*z; {*z=y-x;} main(){ int a,b,c; sub(10,5,A) ;sub(7,a,B) ;sub(a,b,C) ; printf("%d,%d,%d\n",a,b,C) ; }A.5,2,3B.-5,-12,-7C.-5,-12,-17D.5,-2,-7

考题 以下程序输出结果是 ______。includevoid fun(int x,int y,int z){z=x+y;}void main 以下程序输出结果是 ______。 #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.0B.4C.10D.无定值

考题 下面结构体的定义语句中,错误的是A.struct ord{int x;int y;int z;};struet ord a;B.atruet ord{int x;int y;int z;}struct ord a;C.struet ord{int x;int y;int z;}a;D.struct{int x;int y;int z;)a;

考题 下面结构体的定义语句中,错误的是( )。A.struct ord{int x;int Y;int z;}struct ord a;B.struct ord{int x;im Y;im z;};struct ord a;C.struct ord{int x;int Y;int Z;}a;D.struct{int x;int Y;int z;}a;

考题 以下程序执行后的输出结果是include using namespace std;void try(int,int,int,int) 以下程序执行后的输出结果是 #include <iostream> using namespace std; void try(int,int,int,int); int main () { int x,y,z,r; x =1 ; y = 2; try(x,y,z,r); cout<<r<<endl; return 0; } void try(int x,int y,int z,int r) { z = x+y; x = x*x; y = y*y; r = z+x+y; }A.18B.9C.10D.不确定

考题 下列函数定义不正确的是 ( )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( ) {}

考题 x,y是整数型变量,z产生一个范围在[y,x]之间的随机整数的语句是( )。A.z=Int(Rnd*(y-x+1))+xB.z=Int(Rnd*y) + xC.z=Int(Rnd*x)+yD.z=Int(Rnd*(y-x)) + x

考题 以下程序执行后的输出结果是include.using namespace std;void try(int,int,int,int) 以下程序执行后的输出结果是 #include<iostream>. using namespace std; void try(int,int,int,int); int main() { int x,y,z,r; x=1; y=2; try(x,y,z,r); cout<<r<<end1; return 0; } void try(int x,int y, int z,int r) { z = x+y; x = x*x; y = y*y; r = z+x+y; }A.18B.9C.10D.不确定

考题 以下程序输出的结果是()。includeusing namespace std;int main(){int **x,*y,z=10;y= 以下程序输出的结果是( )。 #include<iostream> using namespace std; int main() { int **x,*y,z=10; y=z; x=y; cout<< **x+1<<endl; return 0; }A.11B.x的地址C.y的地址D.运行错误

考题 计算两个变量的和,然后显示其结果:  DECLARE @x int = 10, @y int = 20, @z int SET  @z = @x + @y  Print @z

考题 public class ConstOver {  public ConstOver (int x, int y, int z)  {  }  }   Which two overload the ConstOver constructor?()   A、 ConstOver ( ) { }B、 Protected int ConstOver ( ) { }C、 Private ConstOver (int z, int y, byte x) { }D、 Public Object ConstOver (int x, int y, int z) { }E、 Public void ConstOver (byte x, byte y, byte z) { }

考题 多选题public class ConstOver {  public ConstOver (int x, int y, int z)  {  }  }   Which two overload the ConstOver constructor?()AConstOver ( ) { }BProtected int ConstOver ( ) { }CPrivate ConstOver (int z, int y, byte x) { }DPublic Object ConstOver (int x, int y, int z) { }EPublic void ConstOver (byte x, byte y, byte z) { }

考题 多选题给定java代码如下所示,在A处新增下列()方法,是对cal方法的重载。public class Test {  public void cal(int x, int y, int z) { } //A }Apublic int cal(int x,int y,float z){return 0;}Bpublic int cal(int x,int y,int z){return 0;}Cpublic void cal(int x,int z){}Dpublic viod cal(int z,int y,int x){}

考题 问答题计算两个变量的和,然后显示其结果:  DECLARE @x int = 10, @y int = 20, @z int SET  @z = @x + @y  Print @z