![](https://lstatic.shangxueba.com/sxbzda/h5/images/m_q_title.png)
阅读下面程序,选择正确输出结果_______________。 x = 10 y = 20 if x > 10: if y > 20: z = x + y print('z is', z) else: print(x)
A.10
B.20
C.30
D.没有输出
![](https://lstatic.shangxueba.com/sxbzda/h5/images/tips_org.png)
A.10
B.20
C.30
D.没有输出
第1题
A、没有输出
B、z is 6
C、x is 2
D、程序出错
第2题
A、10
B、20
C、30
D、40
第3题
A、it("x>10")y= 100,
B、if(x> 10)y= 100,
C、if(x>=11)y= 100,
D、ifx>10y= 100,
第4题
A、max = x >y ? x : y
B、if(x>y) print(x)
C、if x>y print(y)
D、if x<y: print(x> y)
第5题
A、第一象限
B、第二象限
C、第三象限
D、第四象限
第6题
A、If x > y Then Max = x Else Max = y
B、Max = x : If y > x Then Max = y
C、Max = y : If x > y Then Max = x
D、If y > x Then Max = y : Max = x
E、If x > y Then Max = x : Max = y
第7题
以下表示上述分段函数的语句序列中错误的是
A) Select Case x
Case is<0
y=5
Case is <=5,is>0
y=2*x
Case Else
y=x*x+1
End Select
B) If x<0 then
y=5
Elself x<=5 then
y=2*x
Else
y=x*x+1
End If
C)y=1 If{x<0,5,1 If(x<=5,2*x,x*x+1)}
D)If x<0 then y=5
If x<=5 and x>=0 then y=2*x
If x>5 then y=x*x+1
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!