Search Header Logo

Câu hỏi trắc nghiệm - Python cơ bản

Authored by Dung Tran

Information Technology (IT)

10th Grade

Used 2+ times

Câu hỏi trắc nghiệm - Python cơ bản
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào dùng để nhân vật di chuyển đến tọa độ (20, 30)?

hero.move(20, 30)

moveXY(20, 30)

hero.moveXY(20, 30)

hero.goTo(20, 30)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đâu là cách đúng để in ra dòng chữ "Hello"?

hero.say(Hello)

hero.say("Hello")

hero.say('Hello)

say(hero, "Hello")

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Biến nào sau đây là tên hợp lệ trong Python?

3name

@hero

hero_1

my name

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của phép toán 5 + 2 * 3 là?

21

11

13

16

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Dòng lệnh nào dùng để lặp 4 lần?

for i in range(1, 5):

for i = 1 to 4:

repeat(4):

for i in range(4):

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

len("hero") sẽ trả về?

"4"

5

4

"hero"

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

name = "Tharin" thì name[0] là?

T

h

"Th"

0

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?