举一反三
- 下列程序共输出_______个值:age = 23start...+ 2, 2): print(x)
- American children start school at age .
- 下面程序的输出值是多少?print([x * x for x in range(1, 11) if x % 2 == 0])
- American children usually start to go to school at the age of _____.
- a = [x for x in range(4) if x % 2 ==1],语句print(a)输出为 A: [1, 2, 3] B: [0, 1, 2, 3] C: [0, 2] D: [1, 3]
内容
- 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