【单选题】【消耗次数:1】
函数模板定义如下: templateMax( T a, T b ,T c){c=a+b;}下列选项正确的是( )
int x, y; char z; Max(x, y, z);
double x, y, z; Max( x, y, z);
int x, y; float z; Max( x, y, z);
float x; double y, z; Max( x,y, z);
参考答案:
复制
纠错
相关题目
【单选题】 已知if (xy||xz);z=x; x=y; y=z;int x=30,y=50,z=80;语句执行后变量x、y、z的值分别为:。
①  x=50, y=80, z=80
②  x=50, y=30, z=30
③  x=30, y=50, z=80
④  x=80, y=30, z=50
【单选题】 已知 int x=30,y=50,z=80;以下语句执行后变量x、y、z的值分别为:。if (xy||xz)z=x; x=y; y=z;
①  x=50, y=80, z=80
②  x=80, y=30, z=50
③  x=30, y=50, z=80
④  x=50, y=30, z=30
【单选题】 已知 int x=30,y=50,z=80;以下语句执行后变量x、y、z的值分别为:。if (xy||xz)z=x; x=y; y=z;
①  x=50, y=80, z=80
②  x=50, y=30, z=30
③  x=30, y=50, z=80
④  x=80, y=30, z=50
【单选题】 设有说明:char w;int x;float y;double z;则表达式w*x+z-y 值的数据类型为().
①  float
②  char
③  int
④  double
【单选题】 若已定义int x=-16,y=-12,z;语句z=x<=y;运行后z的值为()。
①  t
②  1
③  f
④  0
【单选题】 有如下程序段,从键盘输入数据的正确形式应是( )。(注:?代表空格) int x,y,z; scanf(x=%d,y=%d,z=%d,x,y,
①  123
②  x=1, y=2, z=3
③  1, 2, 3
④  x=1?y=2?z=3
【判断题】 公式“x$y(F(x, y) ù G(y, z)) ú $xH(x, y, z)”中的全称量词x的辖域为:$y(F(x, y) ù G(y, z)) 。
①  正确
②  错误
【单选题】 下面程序的输出结果是() main( ) {int x=40,y=4,z=4; x=y==z; printf(%d,x); x=x==(y-z); printf(%d,x); }
①  40
②  41
③  11
④  10
【单选题】 已知x=45,y'=a',z=0;则表达式(x>=z&&y'<z'||!y)的值是()。
①  0
②  语法错
③  1
④ 
【单选题】 已知int x=5,y=5,z=5;执行语句x%=y+z;后,x的值是( )
①  0
②  1
③  5
④  6
【单选题】 设X,Y是相互独立的两个随机变量,它们的分布函数分别为FX(x),FY(y),则Z = max {X,Y}的分布函数是
①  FZ(z)= max { FX(x),FY(y)}
②  FZ(z)= max { |FX(x)|,|FY(y)|}
③  FZ(z)= FX(x)·FY(y)
④  都不是
随机题目
【单选题】 This house will probably come on the ____ next month.
①  fair
②  market
③  shop
④  store
【单选题】 I’m sure your suggestion will ____ the problem.
①  contribute to solving
②  be contributed to solve
③  contribute to solve
④  be contributed to solving
【单选题】 ____ before, his first performance for the amateur dramatic group was a success.
①  Though having never acted
②  As he had never acted
③  Despite he had never acted
④  In spite of his never having acted
【单选题】 “If we fail to act now,” said Tom, “We’ll find ourselves ____ in action later on.”
①  paid back
②  paid for
③  paid up
④  paid off
【单选题】 The statement had to be delivered to someone who could ____ it to the press.
①  relieve
②  release
③  emit
④  discharge
【单选题】 When the idea of winning in sports is carried to excess, ____ competition can turn into disorder and violence.
①  honestly
②  honest
③  honorable
④  honorary
【单选题】 He had acquired a(n)____ command of the English language.
①  ordinary
②  immense
③  extraordinary
④  temporary
【单选题】 Danny left this ____ message on my answering machine: “I must see you. Meet me at twelve o’clock.” Did he mean noon or midnight?
①  ambiguous
②  responsible
③  implicit
④  thoughtful
【单选题】 — May I stop here? —No, you_____.
①  mustn’ t
②  might not
③  needn’ t
④  won’ t
【单选题】 Our ____ sensitivity decreases with age. By age 60, most people have lost 40 percent of their ability to smell and 50 percent of their taste buds.
①  sensible
②  senseless
③  sensitive
④  sensory