首页 > 英语
题目内容 (请给出正确答案)
[单选题]

执行下列代码后,运行结果是()

A.stu={'202101':'小明','202102':'小红','202103':'小丽'}

B.print(len(stu))

C.0

D.1

E.3

F.6

答案
收藏

C、0

如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“执行下列代码后,运行结果是()”相关的问题
第1题
阅读下面的JavaScript代码,程序运行后,正确的执行结果是()。A、优秀 B、良好 C、及格 D、不及格

A.优秀

B.良好

C.及格

D.不及格

点击查看答案
第2题
下列代码的执行结果是 public class Test{ public int aMethod() { static int i=0;

下列代码的执行结果是 public class Test{ public int aMethod() { static int i=0; i+ +; System.out.println(i); } public static void main(String args[ ]){ Test test = new Test(); test.aMethod(); } }

A.编译错误

B.0

C.1

D.运行成功,但不输出

点击查看答案
第3题
下列程序执行后的输出结果是( )。 voidfuncl(int i): voidfunc2(int i); char st[]="hello,friend!"; voidfuncl(int i) { printf("%c",st[i]); if(i<3){i+=2;func2(i);} } void func2(int i) { printf("%c",st[i]); if(i<3){i+:2;funcl(i);} } main() { inti=0: futicl(i); printf("\n"); }

A.hello

B.hel

C.hlo

D.hlm

点击查看答案
第4题
下面的javascript代码的执行结果是():A、周五周末no result B、周五周末 C、语法错误,没有运行

A.周五周末no result

B.周五周末

C.语法错误,没有运行结果

点击查看答案
第5题
如果在python程序中执行下面代码,运行的结果是()

A.print(2*3-1=,2*3-1)

B.4

C.5

D.2*3-1=2*3-1

E.2*3-1=5

点击查看答案
第6题
阅读下列代码 pubicclassTest2{ publicstaticvoidmain(Stringargs[]){ System.out.println(5/

阅读下列代码 pubicclassTest2{ publicstaticvoidmain(Stringargs[]){ System.out.println(5/2);)} 其执行结果是上【 】。

点击查看答案
第7题
若有如下程序: include"stdio.h" main() {char s[30]; strcpy(&s[0],"abc"); st

若有如下程序: include"stdio.h" main() {char s[30]; strcpy(&s[0],"abc"); strcpy(&s[1],"de"); strcpy(&s[2],"f"); printf("%s\n",s); } 则程序运行后的输出结果是【 】。

点击查看答案
第8题
阅读下面一段代码,下列选项中,程序的运行结果是()

A.true true true

B.false false true

C.false false false

D.false true false

点击查看答案
第9题
下列代码的执行结果是:public class Test1{public static void main(String args[]){float t=9.0f;int q=5;System.out.println((t++)*(--q));}}()

A.40

B.40.0

C.36

D.36.0

点击查看答案
第10题
下列代码的执行结果是。public class A{public static void main(String[]args){System.out.println(5/2);}}()

A. 2.5

B. 2.0

C.3

D.2

点击查看答案
第11题
给定以下JAVA代码,这段代码编译运行后输出的结果是()publicclassTest{publicstaticintaMethod(inti)throwsException{try{returni/10;}catch(Exceptionex){thrownewException("exceptioninaaMothod");}finally{System.out.print("finally");}}publicstaticvoidmain(String[]args){try{aMethod(0);}catch(Exceptionex){System.out.print("exceptioninmain");}System.out.print("finished");}}

A.finallyexceptioninmainfinished

B.exceptioninmainfinally

C.finallyfinished

D.finallyexceptioninmainfinished

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改