【单选题】【消耗次数:1】
若有定义int*x[3],b[10];则正确的赋值语句是()
x=b[0];
x=b;
x[0]=b[0];
x[0]=b[0];
参考答案:
复制
纠错
相关题目
【单选题】 若有说明语句:int x[3][4];则以下关于x、*x、x[0]、&x[0][0]的正确描述是()。
①  x、*[x]、x[0]和x[0][0]均表示元素x[0][0]的地址
②  只有x、x[0]和x[0][0]表示的是元素x[0][0]的地址
③  只有x[0]和x[0][0]表示的是元素x[0][0]的地址
④  只有x[0][0]表示的是元素x[0][0]的地址
【单选题】 若有定义: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;
【单选题】 下述程序的运行结果( )。 #includevoid main() { int x=1,a=0,b=0; switch(x) { case 0:b++; case 1:a++; case 2:a++;b++; } printf(a=%d,b=%d\n,a,b); }
①  a=2,b=1
②  a=1,b=2
③  a=0,b=1
④  a=1,b=0
【单选题】 设函数f(x)在[a,b]连续,在(a,b)可导,f’(x)0.若f(a)·f(b)0,则y=f(x)在(a,b)( )
①  不存在零点
②  存在唯一零点
③  存在极大值点
④  存在极小值点
【单选题】 若在区间(a,b)内恒有f(x)〈0,f(x)〉0,则在(a,b)内曲线弧y=f(x)为()
①  上升的凸弧
②  下降的凸弧
③  上升的凹弧
④  下降的凹弧
【单选题】 如果函数f(x)在区间(a,b)内恒有f(x)0,f(x)0,则函数的曲线( )
①  单调递增且向上凸
②  单调递减且向上凸
③  单调递增且向下凹
④  单调递减且向下凹
【多选题】 设áB, ù, ú, ¢, 0, 1?是布尔代数, 在 B 上定义二元运算?, x, y?B,x?y = (xùy¢) ú (x¢ùy),则áB, ??能构成:
①  不是代数系统;
②  半群;
③  独异点;
④  群。
【单选题】 下述程序的运行结果( )。 #includevoid main() { int x=1,a=0,b=0; switch(x) { case 0:b++; case 1:a++; case 2:a++;b++; } printf(a=%d,b=%d\n,a,b); } case 1:a++; case 2:a++;b++; } printf(a=%d,b=%d\n,a,b); }
①  a=1,b=1
②  a=2 ,b=1
③  a=2,b=2
④  a=3,b=3
【单选题】 已知函数f(x)可导,则△x→0时, lim [f(x0-x)-f(x0)]/x
①  -f(x)
②  f(-x0)
③  f(x0)
④  2f(x0)
【单选题】 若x=1,执行语句If x<>0 Then x = 0 Else x = 1的结果是( )。
①  实时错误
②  编译错误
③  x=1
④  x=0
随机题目
【判断题】 The secretary and the manager was present at the meeting yesterday.
①  正确
②  错误
【判断题】 Given that they are fresh from the university, the young people have done a good job.
①  正确
②  错误
【判断题】 To a highly imaginative writer, all required is a pad of paper and a pen.
①  正确
②  错误
【单选题】 The number of pages in this dictionary ___ about two thousand.
①  are
②  has
③  have
④  is
【单选题】 And you find that youre not to be ___ with a position of real responsibility.
①  offered
②  trusted
③  furnished
④  retained
【单选题】 She got married although her parents had not given her their ___.
①  allowance
②  consent
③  permit
④  appreciation
【单选题】 The secretary and principal ___ at the meeting now.
①  are speaking
②  is speaking
③  were making a speech
④  have a speech
【单选题】 “If anybody ___, please put down ___ name,” said the teacher to the monitor.
①  ?wants to buy the book/his
②  ?want to buy the book/their
③  ?will buy the book/one’s
④  ?wants to have the book bought/her
【单选题】 The rich ___ not always happy.
①  are
②  is
③  will
④  may
【单选题】 About 60 percent of the students ___ from the south, the rest of them ___ from the north and foreign countries.
①  are/is
②  are/are
③  is/are
④  are