【单选题】【消耗次数:1】
下述程序的运行结果( )。 #includevoid main() { int p,a=0; if(p=a!=0)printf(%d\n else printf(%d\n,p+2); }
1
2
3
5
参考答案:
复制
纠错
相关题目
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=1,b=2,c=3; if(c=a)printf(%d\n else printf(%d\n }
①  1
②  3
③  5
④  6
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=5,b=4,c=3,d=2; if(ac)printf(%d\n else if((c-1=d)==1)printf(%d\n,d+1); else printf(%d\n,d+2); }
①  0
②  1
③  2
④  3
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=5,b=4,c=3,d=2; if(ac)printf(%d\n else if((c-1=d)==1)printf(%d\n,d+1); else printf(%d\n,d+2); }
①  1
②  2
③  3
④  4
【单选题】 下述程序的运行结果( )。 #includevoid main() { int n; for(n=1;nn++) { if(n%3==0)continue; printf(%d } }
①  12345678
②  124689
③  12457810
④  1234456
【简答题】 #includestdio.hint main(){int a[10]={0,1,2,3,4,5,6,7,8,9};int *p;p=a;printf(%d\n,*p);p++;printf(%d\n,*p);}程序输出结果为[填空1]和[填空2]。
【简答题】 int a[10]={0,1,2,3,4,5,6,7,8,9};int *p;int i;p=a;printf(%d\n,*p++);printf(%d\n,*++p);程序输出结果为[填空1]和[填空2]。
【单选题】 以下程序运行的输出结果是。main(){ int p=30;printf(%d\n,(p/320?p/10:p%3)); }
①  0
②  1
③  2
④  3
【单选题】 下述程序的运行结果( )。 #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
【单选题】 下述程序的运行结果( )。 #includevoid main() { char ch; int i=0; for(ch=achzch++) { printf(%c ,ch); if(i%10==0) printf(\n } printf(\n }
①  a b c d e f g h i j k l m n o p q r s t u v w x y z
②  a b c d e f g h i j k l m n o p q r s t u v w x y z
③  a b c d e f g h i j k l m n o p q r s t u v w x y z
④  a b c d e f g h i j k l m n o p q r s t u v w x y z
【单选题】 下述程序的运行结果( )。 #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
随机题目
【单选题】 在幼儿期,进行想象的必要条件是( )。
①  语言
②  成人的语言描述
③  实际行动
④  外界情景
【单选题】 ( )是促进幼儿心理发展的最好的活动形式。
①  游戏
②  学习
③  劳动
④  交往
【单选题】 在不理解的情况下,幼儿也能熟悉地背诵古诗( )。
①  意义记忆
②  理解记忆
③  机械记忆
④  逻辑记忆
【单选题】 人们在谈论现在的孩子比过去的孩子聪明。这说明儿童心理发展特征的( )。
①  延续性
②  多变性
③  稳定性
④  可变性
【单选题】 小学生评价自己的言行时,更多地看见自己的优点,忽视自己的不足,这表明儿童的自我评价缺乏( )。
①  独立性
②  全面性
③  社会性
④  稳定性
【单选题】 下列选项中不属于不良的亲子互动类型的是( )。
①  拒绝型
②  支配型
③  过度保护型
④  放任自由型
【单选题】 标志教育心理学成为一门独立学科的代表著作及教育家是( )。
①  桑代克及其《教育心理学》
②  夸美纽斯及其《大教学论》
③  斯金纳及其《程序教学》
④  布鲁纳及其《教育过程》
【单选题】 幼儿学习语言过程中最早出现的句型是( )。
①  电报局
②  单词句
③  联合复合句
④  判断句
【单选题】 双生子爬楼梯实验说明儿童心理发展过程中的( )作用。
①  遗传因素
②  家庭教育
③  文化环境
④  生理成熟
【单选题】 ( )是婴儿学习的一种特殊方式。
①  习惯化与去习惯化
②  经典条件作用
③  操作条件作用
④  模仿