下列代码的执行结果是______ a = 2 print(eval('a') * 'what')
下列代码的执行结果是______ a = 2 print(eval('a') * 'what')
参考答案和解析
B
相关考题:
下列程序段的执行结果是【 】。x=Int(Rnd+4)Select Case XCase 5Print"优秀"Case 4Print"良好"Case 3Print"合格"Case ElsePrint"不合格"End Select
(8)设当前日期为2007年12月27日,星期四,则执行下列语句后的输出结果是。 Print Day(Now) Print Month(Now) Print Year(Now) Print Weekday(Now)
下列代码的执行结果是______。int numbers[]=new int[6];for(int i=1;i<numbers.length;i++){numbers[i]=i-1;System.out.print(numbers[i]+"");}A) 0 1 2 3 4 5B) 1 2 3 4 5 6C) 0 1 2 3 4D) 1 2 3 4 5A.B.C.D.
下列程序段的执行结果是( )。 a = 1: b = 0 Select Case a Case 1 Select Case b Case 0 Print "**0**" Case 1 Print "**1**" End Select Case 2 Print "**2**" End Select A. **0**B. **1**C. **2**D. 0
下列代码的执行结果是()。publicclasstest5{publicstaticvoidmain(Stringargs[]){Strings1=newString("hello");Strings2=newString("hello");System.out.prim(s1==s2);System.out.print(",");System.out.println(s1.equals(s2));}A.true,falseB.true,trueC.false,trueD.false,false
以下程序的执行结果是______ include include void print(int n) { if(n 以下程序的执行结果是______include<iostream.h>include<iomanip.h>void print(int n){if(n!=0){print(n-1);for(int i=1;i<=n;i++=cout<<setw(3)<<i;cout<<endl;}}void main(){print (4);}
编译和执行以下代码,输出结果是( )。 int i=1; switch (i) { case 0: System.out.print("zero,"); break; case 1: System.out.print("one,"); case 2: System.out.print("two,"); default: System.out.println("default"); }A.one,B.one,two,C.one,two,defaultD.default
下列代码的执行结果是( )。 public class test3{ public static void main (string args[]){ System.out.print(100%3); System.out.print(","); System.out.println( 100%3.0); } }A.1,1B.1,1.0C.1.0,1D.1.0,1.0
下列程序的执行结果是______。 print(int*b,int m) { int i; for(i=0;i<m;i++) {*b=i; b++; } printf("%d\n",*--B) ; } main() { int a[5]=}1,2,3,4,5}; print(a,5);}A.5B.4C.3D.2
下列代码的执行结果是( )。 int length="Hell0".length; System.OUt.println(length); A.5S 下列代码的执行结果是( )。 int length="Hell0".length; System.OUt.println(length);A.5B.2C.10D.6
下列代码的执行结果是______。 public class ex55 { public static void main(String args[] ) { String s1=new String("hello"); String s2=new String("hello"); System.out.print (s1==s2); System.out.print (","); System.out.println (s1.equals (s2)); } }A.true, falseB.true, trueC.false, trueD.false, false
单选题下列代码的执行结果是( )。int numbers[] = new int[6];for(int i=1;i numbers[i] =i-1;System.out.print(numbers[i]+" ");}A0 1 2 3 4 5B1 2 3 4 5 6C-1 0 1 2 3 4 D0 1 2 3 4
填空题代码print(1,2,3,sep=’:’)的执行结果为()。