【单选题】【消耗次数:1】
下述程序的运行结果( )。 #includevoid main() { int n; for(n=1;nn++) { if(n%3==0)continue; printf(%d } }
12345678
124689
12457810
1234456
参考答案:
复制
纠错
相关题目
【单选题】 下述程序的运行结果( )。 #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 p,a=0; if(p=a!=0)printf(%d\n else printf(%d\n,p+2); }
①  1
②  2
③  3
④  5
【单选题】 下述程序的运行结果( )。 #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 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=4; while(n--) printf(%d\n,--n); }
①  2 0
②  1 0
③  2 1
④  3 0
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=4,b=3,c=5,t=0; if(aa=b;b=t; if(aa=c;c=t; printf(%d,%d,%d\n,a,b,c); }
①  5,1,3
②  4,5,6
③  5,0,3
④  3,4,7
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=4,b=3,c=5,t=0; if(aa=b;b=t; if(aa=c;c=t; printf(%d,%d,%d\n,a,b,c); }
①  5,0,3
②  4,5,6
③  5,1,3
④  3,4,6
【单选题】 下述程序的运行结果( )。 #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
【单选题】 下述程序的运行结果( )。 #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
随机题目
【单选题】 PowerPoint可将编辑文档存为多种格式文件,但不包括_____格式。
①  ppt
②  pot
③  psd
④  html
【单选题】 在幻灯片放映时,切换效果的设置方法是单击_____菜单,选择“幻灯片切换”命令,然后在对话框中进行选择。
①  格式
②  工具
③  视图
④  幻灯片放映
【单选题】 在PowerPoint中要将多处出现的同一个错误单词进行更正,最快捷的方法是_____。
①  用插入光标逐字查找,先删除错误文字再输入正确文字
②  使用[编辑]菜单中的[替换]命令
③  使用[撤消]与[恢复]命令
④  使用[定位]命令
【单选题】 在PowerPoint2010中打开一个已有的演示文稿A1.ppt后,又进行了“新建”操作,则_____。
①  A1.ppt被关闭
②  A1.ppt和新建文稿均处于打开状态
③  A1.ppt将被新建文件所替代
④  新建文稿打开但A1.ppt被关闭
【单选题】 在PowerPoint2010中,下列对放映描述不正确的是_____。
①  可以自动播放
②  可以手动播放
③  只能播放一遍,不能循环
④  只能从首页开始播放
【单选题】 下列通过桌面快捷方式打开PowerPoint文档的方法中,不实现上述操作的是_____。
①  左键双击图标
②  在图标上按Enter键
③  右击图标
④  右击图标后在弹出的快捷菜单中点击“打开”命令
【单选题】 PowerPoint文件默认扩展名为_____。
①  .pot
②  .txt
③  .exe
④  .ppt
【单选题】 如果要改变幻灯片的大小和方向,可以选择“文件”菜单中的_____。
①  页面设置
②  格式
③  关闭
④  保存
【单选题】 在制作PowerPoint演示文稿时可以使用设计模版,方法是单击_____菜单,选中“应用设计模版”命令。
①  编辑
②  格式
③  视图
④  工具
【单选题】 在PowerPoint中执行了误操作,可以通过下列_____命令恢复。
①  打开
②  撤消
③  保存
④  关闭