下面程序的运行结果是( )。 X=-2.3y=125z=Len(StrS(x)+StrS(y))Print Z
A.4
B.8
C.9
D.3
第1题:
11、如下程序的输出结果是___________def myfun(x,y=200,z=100): print(x,y,z) myfun(50,100)
第2题:
9、下面程序的运行结果是()。 x,y,z = 5,-2,8 if x>y: if y>=0: z=0 else: z+=2 print(z) 知识点:分支的逻辑
A.10
B.没有结果
C.0
D.8
第3题:
9、下面关于字符串比较的代码中,哪些 正确 ?
A.代码为: strs1 = 'abcd' strs2 = 'a' print(strs1 > strs2) 输出为: True
B.代码为: strs1 = 'abcd' strs2 = 'a' print(strs1 <> strs2) 输出为: False
C.代码为: strs1 = 'abcd' strs2 = ' abcd' print(strs1 == strs2) 输出为: True
D.代码为: strs1 = 'ab' strs2 = 'a123' print(strs1 > strs2) 输出为: True
E.代码为: strs1 = 'a' strs2 = "a" print(strs1 == strs2) 输出为: True
第4题:
55、下列程序的运行结果是____。 x=[1,2,3] y=x+[4] print(len(x+y))
第5题:
下面关于字符串比较的代码中,哪些 正确 ?
A.代码为: strs1 = 'abcd' strs2 = 'a' print(strs1 > strs2) 输出为: True
B.代码为: strs1 = 'abcd' strs2 = 'a' print(strs1 <> strs2) 输出为: False
C.代码为: strs1 = 'abcd' strs2 = ' abcd' print(strs1 == strs2) 输出为: True
D.代码为: strs1 = 'ab' strs2 = 'a123' print(strs1 > strs2) 输出为: True
E.代码为: strs1 = 'a' strs2 = "a" print(strs1 == strs2) 输出为: True
第6题:
下面程序运行的结果是______。 main() { int x,y,z; x=0; y=z=-1; x+=-z---y; printf("x=%d\n",x); }
A.x=4
B.x=0
C.x=2
D.x=3
第7题:
下面程序运行的结果是______。 main() { int x,y,z; x=0;y=z=-1; x+=-z---y; printf("x=%d\n",x); }
A.x=4
B.x=0
C.x=2
D.x=3
第8题:
下面程序的运行结果为【 】。
x=-2.3
y=125
z=Len(Str$(x)+Str$(y))
Print Z
第9题:
下面程序的运行结果为【 】。
x+-2.3
y=125
z=Len (Str$(x)+Str$(y))
Print 2