Double monosomic
设i,j为类X定义的double型变量名,下列X类的构造方法中不正确的是
A:X(double k) i=k;
B:X( ) i=6;
C:X(double m,double n) i=m;j=n;
D:double X(double k) i=k;return i;
若程序中定义了以下函数
double myadd(double a,double b)
return(a+b) ;
并将其放在调用语句之后,则在调用之前应该对函数进行说明,以下选项中错误的说明是
A:double myadd(double a,b) ; B:double myadd(double,double); C:double myadd(double b,doublea) ; D:double myadd(double x,double y);
若有以下定义;char a;int b; float c;double d;则表达式“a*b+d-c”值的类型为 ( )
A:float B:int C:char D:double
设变量a是int型,f是float型,i是double型,则表达式10+'a'+i*f值的数据类型为( )。
A:int B:float C:double D:不确定
已知char a iht b;float c;double d;则表达式a*b+c-d结果为( )。
A:double B:int C:float D:char
有以下程序;
int f1(double
A:
return a*a;
int f2(double x,double y)
double a, b;
a=n(x);
b=f1(y);
return a+b;
main()
double w;
w=f2(1.1,2.0);
┇
变量w中的值是 ( )A) 5.21 B:5 C:5.0 D:0.0
若程序中定义了以下函数:
double myadd(double a,double b)
return (a+b);
并将其放在调用语句之后,则在调用之前应该对该函数进行说明,以下选项中错误的说明是
A:double myadd(doublea,b); B:double myadd(double,double); C:double myadd(doubleb,doublea); D:double myadd(doublex,double y);
In a commonly used fuel oil system, the oil is stored in tanks in the double bottom from
which it is pumped to _____ and heated.
A:a service tank B:a settling tank C:an expansion tank D:a double bottom tank
The function of a centrifugal pump double volute casing is to _____.
A:reduce radial thrust to the impeller B:double the liquid velocity through the pump when compared to a single volute C:reduce hydraulic end thrust D:provide the effect of multi-staging