执行下列程序段,输出结果的第二行内容是()。f=['apple','pear','banana','orange']n=len(f)for i in range(n):print(i,f[i])
A.pear
B.apple
C.orange
D.banana
A.pear
B.apple
C.orange
D.banana
A.首行缩进四个空格
B.未行取消缩进
C.第二行改为z1
D.第三行z+中z+1
执行以下程序段,并输入1.23,则程序的输出结果应是【 】。 N=Str(InputBox("请输入一个实数:")) p=InStr(N,".") Print Mid(N,p)
执行下面的程序段,输出结果为【 】。 public class Q { public Static Void main(String args[]) { int anar[]=new int[5]; System.out.println(anar[0]); } }
A.Write Session("user_name") %>
B.张三
C.李四
D.张三李四
E.语法有错,无法正常输出
下列程序段的输出结果为__________。 int a=2; switch (a) { case2: System.out.print("Value is2."); case3: System.out.pritln("Value is3."); break; default: System.out.println("end"); break: }
A.null
B.有错误,变量i没有初始化
C.1
D.0
A.2
B.9
C.11
D.27
下列程序段的输出结果为【 】。 public class Test { void printValue(int m) { do { Systern.out,println("The value is "+m); } while(-m>10); } public static void main(String arg[]){ int i=10; Test t=new Test(); t.print Value(i); } }