wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

coding

Total questions: 37

Worksheet time: 37mins

Name
Class
Date
1.

What is a Variable? / 什么是变量?

a)

A delicious snack / 一种好吃的零食

b)

A box to store data / 一个用来存数据的盒子

c)

A Micro:bit button / Micro:bit 上的按钮

d)

A type of computer game / 一种电脑游戏

2.

Which variable name is correct? / 哪一个是正确的变量名字?

a)

my age = 3

b)

2age = 3

c)

123 = 3

d)

age = 3

3.

How many basic data types did we learn? / 我们学了几种基本数据类型?

a)

0

b)

100

c)

10

d)

2

4.

Which ones are the basic data types? / 哪两个是基本数据类型?

a)

Text and Number / 文本和数字

b)

Box and Bag / 盒子和袋子

c)


Mouse and Keyboard / 鼠标和键盘

d)

Apple and Banana / 苹果和香蕉

5.


What happens here? / 这里会发生什么?
"123" + "123" = ?

a)

0

b)

246

c)

"123123"

d)

Error / 报错

6.

What happens here? / 这里会发生什么?
123 + 123 = ?

a)

246

b)

0

c)

123

d)

"123123"

7.

What is inside 'num'? / 'num' 里面是什么?

a)

display

b)

"num"

c)

3

d)

0

8.

What is inside 'word'? / 'word' 里面是什么?

a)

"B"

b)

3

c)

A

d)

word

9.

What will the Micro:bit show? / Micro:bit 会显示什么?

a)

"True"

b)

"False"

c)

Nothing / 什么都没有

d)

Error / 报错

10.

What will appear? / 会出现什么?
(Hint: < means smaller than / 提示:< 意思是小于)

a)

"True"

b)

2

c)


"False"

d)

5

11.

What will happen? / 会发生什么?
(Hint: > means bigger than / 提示:> 意思是大于)

a)

Error

b)

"True"

d)

"False"

12.


If I press button A, what shows up? / 如果我按下按钮 A,会显示什么?

a)

b)

c)

d)

13.


What does '==' mean in Python? / 在 Python 里 '==' 是什么意思?

a)

Is equal / 等于

b)

Is smaller than / 比...小

c)

Is bigger than / 比...大

d)

error

14.

What is a List in Python? / 什么是 Python 里的列表?

a)

A single number / 一个单独的数字

b)

A button / 一个按钮

c)

Like a train holding many things / 就像一列装着很多东西的火车

d)

A TV screen / 一个电视屏幕

15.

Which symbol do we use to make a List? / 我们用什么符号来制作列表?

a)

(Hashtag / 井号)

b)

" " (Quotes / 引号)

c)

( ) (Parentheses / 圆括号)

d)

[ ] (Square Brackets / 方括号)

16.


Is this code correct? / 这段代码正确吗?

a)

True

b)

False

c)

Only numbers allowed / 只允许数字

d)

Only text allowed / 只允许文本

17.

What is letter? / 这个列表里有什么?

a)

.

Nothing / 什么都没有

b)

4 letters: a, b, c, d / 4个字母:a, b, c, d

c)

Numbers 1, 2, 3, 4 / 数字 1, 2, 3, 4

d)

1 big word "abcd" / 一个大单词 "abcd"

18.

How many items are in this list? / 这个列表里有几样东西?

a)

10

b)

3

c)

2

d)

15

19.

What is a 'For Loop'? / 什么是 'For Loop'?

a)

Repeat forever / 永远重复

b)

Stop everything / 停止一切

c)

Repeat a specific number of times / 重复固定的次数

d)

Do it only once / 只做一次

20.

What is a 'While Loop' (like while True)? / 什么是 'While Loop'(比如 while True)?

a)

Sleep mode / 睡眠模式

b)

Infinite repeat / 无限重复

c)

Repeat 3 times / 重复3次

d)


Do nothing / 什么都不做

21.


How many times will this code repeat? / 这段代码会重复几次?

a)


10 times / 10次

b)

9 times / 9次

c)

100 times / 100次

d)

0 times / 0次

22.

What numbers will 'i' show? / 'i' 会显示哪些数字?

a)

10, 10, 10, 10...

b)

1, 2, 3, 4, 5, 6, 7, 8, 9, 10

c)

0 to 100

d)


0, 1, 2, 3, 4, 5, 6, 7, 8, 9

23.


What is 'i' in the loop? / 循环里的 'i' 是什么?

a)

Image / 图像

b)

A variable that counts for us / 一个帮我们计数的变量

c)

Internet / 互联网

d)

iPhone / 苹果手机

24.


What shape do we use for Start and End? / 开始和结束用什么形状?

a)

b)

c)

d)

25.

What shape is for Treatment (Action/Process)? / 处理(动作/过程)是用什么形状?

a)

b)

c)

d)

26.

What shape is for Decision Judging? / 决定和判断是用什么形状?

a)

b)

c)

d)

27.


What shows the Path and Direction? / 什么显示路径和方向?

a)

b)

c)

d)

28.


What does pin.read_digital() do? / pin.read_digital() 是做什么的?

a)

Read the current pin / 读取当前引脚的状态

b)

Change the pin / 改变引脚

c)

Touch the pin / 触摸引脚

d)

Turn off the pin / 关闭引脚

29.

What does pin.write_digital(1) do? / pin.write_digital(1) 是做什么的?

a)

Sleep mode / 睡眠模式

b)

Ask the pin a question / 问引脚一个问题

c)

Read the pin / 读取引脚

d)

Change current pin (Turn On) / 改变当前引脚(打开)

30.


What does pin.is_touched() mean? / pin.is_touched() 是什么意思?

a)

The pin is broken / 引脚坏了

b)

Write to the pin / 写入引脚

c)

Touched change current pin / 触摸改变引脚(检测触摸)


d)

The pin is invisible / 引脚是隐形的

31.

If I want to turn on an LED light connected to Pin 0, I use: / 如果我想打开连接在 Pin 0 的 LED 灯,我用:

a)


pin0.write_digital(0)

b)

pin0.write_digital(1)

c)

pin0.is_touched()

d)

pin0.read_digital()

32.


Which pins can handle touch? / 哪些引脚可以感应触摸?

a)

Pin 0, 1, 2

b)

The USB cable / USB 线

c)

The buttons A and B / 按钮 A 和 B

d)

Only Pin 0 / 只有 Pin 0

33.


Digital means only two numbers. What are they? / Digital(数字信号)只有两个数字。它们是什么?

a)

1 and 2

b)

10 and 20

c)


A and B

d)

0 and 1

34.

What does random.randint(1, 9) do? / random.randint(1, 9) 是做什么的?

a)

Always choose 9 / 总是选 9

b)

Always choose 1 / 总是选 1

c)

Pick a random number between 1 and 9 / 随机选一个 1 到 9 之间的数字

d)

Count to 9 / 数到 9

35.

Logic and: When is (A and B) True? / 逻辑 and:什么时候 (A and B) 是真的?

a)

It is never True / 永远不是真的

b)

When only one is True / 当只有一个是真的

c)

When BOTH A and B are True / 当 A 和 B 两个都是真的

d)

When both are False / 当两个都是假的

36.

Logic or: When is (A or B) True? / 逻辑 or:什么时候 (A or B) 是真的?

a)

Only if both are True / 只有当两个都是真的

b)

If at least ONE of them is True / 只要其中一个是真的

c)

It means Minus / 意思是减法

d)

Only if both are False / 只有当两个都是假的

37.

Logic not: What is not True? / 逻辑 not:not True(非真)是什么?

a)

Zero / 零

b)

True / 真

c)

Maybe / 也许

d)

False / 假