执行下列代码后,运行结果是()
A.stu={'202101':'小明','202102':'小红','202103':'小丽'}
B.print(len(stu))
C.0
D.1
E.3
F.6
C、0
A.stu={'202101':'小明','202102':'小红','202103':'小丽'}
B.print(len(stu))
C.0
D.1
E.3
F.6
C、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.运行成功,但不输出
A.hello
B.hel
C.hlo
D.hlm
A.周五周末no result
B.周五周末
C.语法错误,没有运行结果
阅读下列代码 pubicclassTest2{ publicstaticvoidmain(Stringargs[]){ System.out.println(5/2);)} 其执行结果是上【 】。
若有如下程序: include"stdio.h" main() {char s[30]; strcpy(&s[0],"abc"); strcpy(&s[1],"de"); strcpy(&s[2],"f"); printf("%s\n",s); } 则程序运行后的输出结果是【 】。
A.true true true
B.false false true
C.false false false
D.false true false
A.40
B.40.0
C.36
D.36.0
A. 2.5
B. 2.0
C.3
D.2
A.finallyexceptioninmainfinished
B.exceptioninmainfinally
C.finallyfinished
D.finallyexceptioninmainfinished