WorksheetsPython Programming Quiz
Total questions: 21
Worksheet time: 1hrs 29mins
Identify the type of the following data: 4343
int(整数)
float(浮点数)
Identify the type of the following data: 43.53
int(整数)
float(浮点数)
Identify the type of the following data: 0.0
int(整数)
float(浮点数)
17%2
1
8
8.5
17//2
8
1
8.5
Identify the type of the following data: .54
int(整数)
float(浮点数)
What is the result for: 3 ** 2 * 4
36
24
12
What is the result for: A or B and C
0
1
What is the result for: (A or B) and C
0
1
What is the result for: not A or not B and C
0
1
What is the result for r?
205
410
50
35
What is the output when X = 1?
1
0.5
4
9
What is the output when X = 5?
4
9
76
3
What is the output y when X = 99?
0.01
1
无解
10
哪个变量/函数名是合法的?
2Apple
_4time
def lambda():
打印sum的值是?
3
9
6
1
打印 i 的值是?
2
6
1
3
1. 如果篮球从某一高度h=20落下,每次落地后反弹回原来高度的一半再落下。
那么球在第10次落地时,共经过多少米呢? 第10次反弹多高?
2. 函数:一个人赶着鸭子去每个村庄卖,每经过一个村子卖去所赶鸭子的一半又一只。这样他经过了七个村子后还剩两只鸭子,问他出发时共赶多少只鸭子?经过每个村子卖出多少只鸭子?
3. 日本著名数学游戏专家中村义作教授提出这样一个问题:父亲将2520个桔子分给六个儿子。分完后父亲说:“老大将分给你的桔子的1/8给老二;老二拿到后连同原先的桔子分1/7给老三;老三拿到后连同原先的桔子分1/6给老四;老四拿到后连同原先的桔子分1/5给老五;老五拿到后连同原先的桔子分1/4给老六;老六拿到后连同原先的桔子分1/3给老大”。结果大家手中的桔子正好一样多。问六兄弟原来手中各有多少桔子?
