【单选题】【消耗次数:1】
若x=1,执行语句If x<>0 Then x = 0 Else x = 1的结果是( )。
实时错误
编译错误
x=1
x=0
参考答案:
复制
纠错
相关题目
【单选题】 写出下面程序的执行结果。main(){ int x=1,y=1,z=0;if(z0)if(y0) x=3;else x=5;printf(%d\tif(z=y0) x=3;else if(y= =0 ) x=5;else x=7;printf(%d\tprintf(%d\t}
①  1 5 1
②  1 7 0
③  3 7 0
④  5 5 0
【单选题】 写出下面程序的执行结果。main(){ int x=1,y=1,z=0;if(z0)if(y0) x=3;else x=5;printf(%d\tif(z=y0) x=3;else if(y= =0 ) x=5;else x=7;printf(%d\tprintf(%d\t
①  1 7 0
②  3 7 0
③  5 5 0
④  1 5 1
【单选题】 写出下面程序的执行结果。main(){ int x=1,y=1,z=0;if(z0)if(y0) x=3;else x=5;printf(%d\tif(z=y0) x=3;else if(y= =0 ) x=5;else x=7;printf(%d\tprintf(%d\t}
①  1 5 1
②  3 7 0
③  5 5 0
④  1 7 0
【单选题】 写出下面程序的执行结果。main(){ int x=1,y=1,z=0;if(z0)if(y0) x=3;else x=5;printf(%d\tif(z=y0) x=3;else if(y= =0 ) x=5;else x=7;printf(%d\tprintf(%d\t}
①  1 7 0
②  3 7 0
③  5 5 0
④  1 5 1
【单选题】 执行下面程序后,运行结果是 #includevoid main( ) { int x=41,y=1; if (x%3==0 x%7==0) { y+=x;printf(y=%d\n} else {y=x;printf(y=%d} }
①  y=41
②  y=43
③  y=42
④  y=1
【单选题】 若有说明语句: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]的地址
【单选题】 minZ=x1-x2,2x1+x2≥1,x1+4x2≤4,x1,x2=0或1,最优解是()。
①  (0,0)
②  (0,1)
③  (1,0)
④  (1,1)
【单选题】 写出下面程序的执行结果。main( ){ int x,y=1; if(y!=0) printf(“%d\t”,x); if(y= =0) else printf(“%d\t\n”,x);
①  1 3
②  1 5
③  5 3
④  5 5
【单选题】 写出下面程序的执行结果。main( ){ int x,y=1; if(y!=0) printf(“%d\t”,x); if(y= =0) else printf(“%d\t\n”,x);}
①  1 3
②  1 5
③  5 3
④  5 5
【简答题】 以下程序输出的结果是[填空1]。#include stdio.hvoid main(){ int x, i;for(i=1; i i++){ x=i;if(++x%2==0)if(++x%3==0)if(++x%7==0)printf(%d\n,x);}printf(“\n”);}
随机题目
【单选题】 Williams proposal,()at a board meeting last week, was to set up a committee to review the marketing plan.
①  discuss 
②  discussing
③  discussed
④  to be discussed
【判断题】 判断线上的内容是否正确:In some countries girls are still ___deprived___ of a good education.
①  正确
②  错误
【判断题】 判断线上的内容是否正确:More efforts, as reported, ___will be made___ in the years ahead to accelerate the supply-side structural reform.
①  正确
②  错误
【判断题】 判断线上的内容是否正确:The past 22 years have really been amazing, and every prediction we’ve made about improvements have al come __true__
①  正确
②  错误
【判断题】 判断线上的内容是否正确:As the years passed, the memories of her childhood ___fired___ away.
①  正确
②  错误
【判断题】 判断线上的内容是否正确:He did not __compromise___ easily, but was willing to accept any constructive advice for a worthy cause.
①  正确
②  错误
【判断题】 判断线上的内容是否正确:___While___some people are motivated by a need for success, others are motivated by a fear of failure.
①  正确
②  错误
【判断题】 判断线上的内容是否正确:—Jack still can’t help being anxious about his job interview. —Lack of self-confidence is his___Achilles’ heel___, I am afraid.
①  正确
②  错误
【判断题】 判断线上的内容是否正确:These two chemicals ____interact_____ with each other at a certain temperature to produce a substance which could cause an explosion.
①  正确
②  错误
【单选题】 Wow. That’s a marvelous room. I’ve never known you’re so artistic!____________
①  Thank you for your compliments.
②  Don’t mention it.
③  Great, I am very art-conscious.
④  It’s fine.