执行下列程序段输出的结果()。a=3IF a>0 ThenPrint("###")ElsePrint("$$$")End If
执行以下程序段,并输入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]); } }
下列程序段的输出结果为__________。 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.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); } }
执行下列程序段后输出的结果是【 】。 public class Test{ public static void main(String args[]){ int x,y; for(y=1,x=1;y<=50;y++){ if(x>=10)break; if(x%2==1){ x+=5: continue; } x-=3; } System.out.println(y); } }
A.null
B.有错误,变量i没有初始化
C.1
D.0