Python

Python

12th Grade

20 Qs

quiz-placeholder

Similar activities

Kiểu dữ liệu xâu kí tự trong Python

Kiểu dữ liệu xâu kí tự trong Python

10th Grade - University

18 Qs

Python Programming Quiz

Python Programming Quiz

9th Grade - University

20 Qs

Python Basic II

Python Basic II

11th Grade - University

20 Qs

Python String

Python String

12th Grade

20 Qs

Print command Quiz Day2

Print command Quiz Day2

5th - 12th Grade

16 Qs

Python Quiz 1

Python Quiz 1

1st - 12th Grade

18 Qs

python_1

python_1

5th - 12th Grade

22 Qs

Python Basics

Python Basics

8th - 12th Grade

23 Qs

Python

Python

Assessment

Quiz

Computers

12th Grade

Medium

Created by

note cw

Used 40+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

如何在Python中声明一个变量?

int i = 0;

Dim i = 0

i = 0

var i = 0;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

如何在Python中注释代码?

\\ Python中的注释以两个反斜杠开始

-- Python中的注释以两个连字符开始

# Python中的注释以#开始

// Python中的注释以两个正斜杠开始

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

在 Python要"輸出"可以使用哪個指令?

if

output

print

for

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

下面的程序输出是什么?

name = 'Dave'

print (name)

Dave

'Dave'

name

(name)

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Python有一个复杂的元组(Tuple)实现。下列元组操作的正确输出是什么?

tupA = (‘Spam’, ‘Ham’, 0, 2)

tupB = (‘Beans’, ‘Toast’, 5, 10)


print(tupB[0])

print(tupB + tupA)

Beans

(Beans, Toast, 5, 10, Spam, Ham, 0, 2)

Beans

(Beans, Toast , Spam, Ham, 5 , 10 , 0, 2)

Beans

Beans, Toast, 5, 10, Spam, Ham, 0, 2

Beans

(Spam, 0, 2, Ham, 5, 10)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

下列哪一行程式在Python中不會被執行?

print ("Hello Python")

print ('Hello World')

print(round(3.1415))

# print ('Hen 棒棒')

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

“ab”+”c”*2 结果是

abc2

abcabc

abcc

ababcc

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?