Search Header Logo

Kiểm tra 15 phút - Lập trình python

Authored by Hothanh Tuan

Computers

10th Grade

Used 2+ times

Kiểm tra 15 phút - Lập trình python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, để in ra màn hình dòng chữ 'Hello World!', ta sử dụng lệnh nào?

print('Hello')

show('Hello World!')

display('Hello World!')

print('Hello World!')

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, để khai báo một biến có giá trị là 5, ta sử dụng cú pháp nào?

variable_name = 5

variable_name: 5

5 = variable_name

variable_name == 5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, để lấy độ dài của một chuỗi 'Hello', ta sử dụng hàm nào?

len()

count()

size()

length()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, để kiểm tra xem một số có phải là số nguyên tố hay không, ta sử dụng hàm nào?

isPrime()

isprime()

check_prime()

is_prime()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, để tạo một vòng lặp for chạy từ 0 đến 9, ta sử dụng cú pháp nào?

for i in range(10)

for i in range(0, 10, 1)

for i in range(9)

for i in range(1, 10)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, để tạo một hàm có tên là 'double' nhận vào một số và trả về số đó nhân đôi, ta sử dụng từ khóa nào?

def

loop

return

function

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, để kiểm tra xem một phần tử có tồn tại trong một list hay không, ta sử dụng toán tử nào?

on

in

not

for

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?