Câu hỏi về Python

Câu hỏi về Python

10th Grade

47 Qs

quiz-placeholder

Similar activities

INFORMATIKA

INFORMATIKA

9th Grade - University

50 Qs

Tin10_GHKI_HoangD

Tin10_GHKI_HoangD

10th Grade

50 Qs

KIỂM THỬ, GỠ LỖI, HÀM TIN 10 KNTT

KIỂM THỬ, GỠ LỖI, HÀM TIN 10 KNTT

10th Grade

42 Qs

ĐỀ CƯƠNG ÔN TẬP GIỮA KÌ 1 LỚP 10

ĐỀ CƯƠNG ÔN TẬP GIỮA KÌ 1 LỚP 10

10th Grade

43 Qs

CTDL10

CTDL10

9th - 12th Grade

45 Qs

SOAL OFFICE SMAN 1 DAMAI

SOAL OFFICE SMAN 1 DAMAI

10th Grade

50 Qs

Untitled Quiz

Untitled Quiz

10th Grade

45 Qs

7 CĐ 1 P1

7 CĐ 1 P1

7th Grade - University

45 Qs

Câu hỏi về Python

Câu hỏi về Python

Assessment

Quiz

Information Technology (IT)

10th Grade

Practice Problem

Medium

Created by

Ngọc Thái

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

47 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 1. Để dừng ngay lập tức một vòng lặp trong Python, ta dùng câu lệnh nào?

continue

pass

break

exit

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 2. Kết quả của biểu thức sau là gì?

3

4

5

6

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 3. Cho chuỗi s = "Python3.10". Kết quả của s.split(".") là:

"Python3", "10"

["Python3", "10"]

("Python3", "10")

["P", "y", ...]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 4. Để kiểm tra xem phần tử x có nằm trong danh sách L hay không, dùng biểu thức nào?

x ∈ L

L.contains(x)

x in L

L.has(x)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 5. Giá trị trả về của abs(-7 // 3) là:

2

3

-3

-2

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 6. Khi khai báo hàm, để đặt giá trị mặc định cho tham số:

def f(a=1, b=2):

def f(a==1, b==2):

def f(a:1, b:2):

def f(default a, default b):

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 7. Biến nào là biến toàn cục (global)?

Khai báo tại đầu module

Khai báo bên trong một hàm

Khai báo trong khối if

Khai báo trong vòng lặp 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?