• 2021-04-14
    中国大学MOOC: 给出下面代码:age=23start=2if age%2!=0: start=1for x in range(start,age+2,2): print(x)上述程序输出值的个数是:
  • 12

    内容

    • 0

      Your resume should ___your name,sex,age,address and telephone number. A: resive B: start C: start with D: talk

    • 1

      Historians refer to the years between the Civil War and the start of the 20th century in the U. S. history as the______, an era of industrial giants. A: Golden Age B: Permissive Age C: Gilded Age D: Jazz Age

    • 2

      x = [ 1, 2 ] y = x x += y print(x) 上述代码输出结果为____。 A: [ 1, 2 ] B: [ 1, 2, 1 ] C: [ 2, 1, 2, 1 ] D: [ 1, 2, 1, 2]

    • 3

      中国大学MOOC: x={1:2}x[2]=3print(x)上述代码的输出结果是____。

    • 4

      分段函数:[img=206x91]18037123bea18f3.png[/img],下面程序段中正确的是__________。 A: If x < 0 Then y = 0If x < 1 Then y = 1If x < 2 Then y = 2If x >= 2 Then y = 3 B: If x > =2 Then y = 3ElseIf x > =1 Then y = 2ElseIf x > =0 Then y = 1Else y = 0End If C: If x >= 2 Then y = 3If x >= 1 Then y = 2If x > 0 Then y = 1If x < 0 Then y = 0 D: If x < 0 Then y = 0ElseIf x > 0 Then y = 1ElseIf x > 1 Then y = 2Else y = 3End If E: If x < 0 Then y = 0If 0 <= x <1 Then y = 1If 1 <= x < 2 Then y = 2If x >= 2 Then y = 3