【单选题】【消耗次数:1】
已知X类,则当程序执行到语句:X array[3];时,调用了( )次构造函数。
0
1
2
3
参考答案:
复制
纠错
相关题目
【单选题】 已知X类,则当程序执行到语句:X array[3];时,调用了( )次构造函数。
①  0
②  1
③  2
④  3
【单选题】 已知函数f(x)可导,则△x→0时, lim [f(x0-x)-f(x0)]/x
①  -f(x)
②  f(-x0)
③  f(x0)
④  2f(x0)
【单选题】 假定一个类的构造函数为“B(intax,intbx):a(ax),b(bx){}”,执行“Bx(1,2),y(3,4);x=y;”语句序列后x.a的值为()
①  1
②  2
③  3
④  4
【单选题】 已知点M(1,-2)、N(3,-1)和直线x+2y-1=0,则( )
①  M在直线上、N不在直线上
②  M不在直线上、N在直线上
③  M、N都不在直线上
④  M、N都在直线上
【单选题】 若有定义:intx,a;赋值语句a=(x%3==0)?0:1;与()语句不等价。
①  if(x%3!=0)a=1;elsea=0;
②  if(x%3)a=0;elsea=1;
③  if(x%3==0)a=0;elsea=1;
④  if(!(x%3==0))a=1;elsea=0;
【单选题】 假定一个类的构造函数为“A(int i=4, int j=0) {a=i;b=j;}”, 则执行“A x (1);”语句后,x.a和x.b的值分别为()
①  1和0
②  1和4
③  4和0
④  4和1
【单选题】 假定一个类的构造函数为“A(int i=4, int j=0) {a=i;b=j;}”, 则执行“A x (1);”语句后,x.a和x.b的值分别为()
①  1和0
②  1和4
③  4和0
④  4和1
【单选题】 若x=1,执行语句If x<>0 Then x = 0 Else x = 1的结果是( )。
①  实时错误
②  编译错误
③  x=1
④  x=0
【单选题】 已知E(X)=1,E(Y)=2,E(XY)=3,则X,Y的协方差Cov(X,Y)=( )
①  2
②  1
③  0
④  3
【单选题】 执行循环语句for (x=0,y=0;(x!=3)&&(x<8);x++)y++;后y 的值是()。
①  3
②  8
③  0
④  不确定
随机题目
【单选题】 Do you like [填空]?
①  vegetable
②  vegetables
③  an vegetable
④  vegetablies
【单选题】 There is [填空] on the table.
①  two cups of water
②  some waters
③  some water
④  any waters
【单选题】 There [填空] a box of candies on the table.
①  are
②  is
③  have
④  were
【单选题】 The [填空] in our garden are very beautiful.
①  cloth
②  water
③  flowers
④  grass
【判断题】 A: Her mother isnt a nurse, is she? B: Yes, she isnt.
①  正确
②  错误
【判断题】 It’s a hard job.
①  正确
②  错误
【判断题】 A: Who is She? B: Her name is Susan.
①  正确
②  错误
【判断题】 Two pieces of bread are over there.
①  正确
②  错误
【判断题】 Maths are very difficult to learn.
①  正确
②  错误
【单选题】 —Hi, Tory, can I use your computer for a while this afternoon?—Sorry. __________.
①  Its repaired
②  It has been repaired
③  Its being repaired
④  It had been repaired