Hello everyone, the editor is here to answer the following questions for you, junior high school information technology python programming question bank network disk, junior high school information technology python programming teaching, let us take a look today!
ID:12450455
Resource size: 934KB
Profile:
2019-2020 Junior High School Information Technology 【Easy Lesson Preparation】Python Programming
Lesson 8 Selection Structure
1.
var1 = 100
if var1:
print (var1)
else:
print (‘var1’)
The result of the above program is ( )
A. 100B. 'var1'C. 200D. Program error
2.
num=6
if num%2==0:
if num%3==0:
print ("The number you entered is divisible by 2 and 3")
else:
print ("The number you entered is divisible by 2, but not by 3")
else:
if num%3==0:
print ("The number you entered is divisible by 3, but not by 2")
else:
print ("The number you entered is not divisible by 2 and 3")
The result of the above program is ( )
A. The number you entered is divisible by 2 and 3
B. The number you entered is divisible by 2 but not by 3
c. you
Information in the compressed package:
Lesson 08 Selection Structure (Selected Exercises)-2019-2020 Junior High School Information Technology 【Easy Lesson Preparation】Python Programming (Courseware and Lesson Plan Exercises) / Lesson 08 Selection Structure (Selected Exercises) (Original Volume Version).doc
Lesson 08 Selection Structure (Selected Exercises)-2019-2020 Junior High School Information Technology [Easy Lesson Preparation] Python Programming (Courseware and Lesson Plan Exercises) / Lesson 08 Selection Structure (Selected Exercises) (Analytic Version).doc [From e Netcom client]