simple

simple

University

12 Qs

quiz-placeholder

Similar activities

TP-Link Deco X95 網路知識小測驗!

TP-Link Deco X95 網路知識小測驗!

1st Grade - Professional Development

8 Qs

Ch06-Synchronization Tools_part3

Ch06-Synchronization Tools_part3

University

9 Qs

土木工程施工技術6.

土木工程施工技術6.

University

10 Qs

Ch09-Main Memory_part1

Ch09-Main Memory_part1

University

10 Qs

数字技术

数字技术

University

9 Qs

第2章 电子商务网络安全技术(1)

第2章 电子商务网络安全技术(1)

University

10 Qs

健康用電腦小知識

健康用電腦小知識

3rd Grade - University

10 Qs

Python Tuples Quiz

Python Tuples Quiz

University

15 Qs

simple

simple

Assessment

Quiz

Computers

University

Hard

Created by

Shiwen Zhang

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

在 Python 中输出“Hello World”的正确语法是什么?

print("Hello World")  

echo "Hello World"

echo("Hello World");

p("Hello World")

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

如何在 Python 代码中插入注释?

#This is a comment  

/*This is a comment*/

//This is a comment

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

哪一个不是合法的变量名?

my-var

_myvar

my_var

Myvar

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

如何创建一个数值为 5 的变量?

其他两个答案都是正确的  

x = int(5)

x = 5

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Python 文件的正确文件扩展名是什么?


.py

.pyt

.pt

.pyth

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

如何创建一个带有浮点数 2.8 的变量?

其他两个答案都是正确的  

x = float(2.8)

x = 2.8

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

在 Python 中输出变量或对象类型的正确语法是什么?

print(type(x))

print(typeof x)

print(typeof(x))

print(typeOf(x))

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?