tin haodepzai

tin haodepzai

9th - 12th Grade

48 Qs

quiz-placeholder

Similar activities

PAS GTM  GANJIL KELAS XII 2025/2026

PAS GTM GANJIL KELAS XII 2025/2026

12th Grade

53 Qs

smart start 2 unit 2,3,4

smart start 2 unit 2,3,4

2nd Grade - University

50 Qs

địa hk1 lớp 11

địa hk1 lớp 11

2nd Grade - University

47 Qs

THAM KHẢO DỰ THI ĐOÀN-ĐỘI

THAM KHẢO DỰ THI ĐOÀN-ĐỘI

1st - 12th Grade

50 Qs

Reaction kinetics for AQA

Reaction kinetics for AQA

12th Grade

50 Qs

Арх кіріспе сессия

Арх кіріспе сессия

10th Grade - University

50 Qs

Ôn tập sinh học

Ôn tập sinh học

11th Grade

45 Qs

12 AKL_KA MYOB

12 AKL_KA MYOB

12th Grade

50 Qs

tin haodepzai

tin haodepzai

Assessment

Quiz

Specialty

9th - 12th Grade

Practice Problem

Easy

Created by

LQ Mobile

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

48 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Chương trình sau thực hiện công việc gì?

>>> S = 0

>>> for i in range(len(A)): if A[i] < 0:

S = S + A[i] >>> print(S)

Tính tổng các phần tử trong A

Tính tổng các phần tử dương trong A

Duyệt từng phần tử trong A

Tính tổng các phần âm trong A

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Để khởi tạo danh sách b có 5 phần tử 1, 2, 3, 4, 5 ta dùng cú pháp:

b = 1, 2, 3, 4, 5

b = (1, 2, 3, 4, 5)

b = [1, 2, 3, 4, 5]

b = [1,5]

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Để kiểm tra một giá trị có nằm trong danh sách hay không, ta dùng cú pháp nào sau đây?

<danh sách> in <giá trị>

<giá trị> in <danh sách>

<giá trị> on <danh sách>


<giá trị> insert <danh sách>


4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Kết quả của chương trình sau là bao nhiêu?

>>> s = “123456”

>>> print(s[3])

‘4’

‘5’

‘3’

‘2’

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Lệnh nào sau đây dùng để tách xâu

join()

split()

copy()

remove()

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Kết quả của các câu lệnh sau là gì?

s = "123456abcdde "

print(s.find("34"))

0.

2.

1.

3

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Đoạn chương trình sau sẽ in ra số nào? >>> def f(a,b):

t = a - b

return t*a*b

>>> f(5,2)

10

35.

30

20

Create a free account and access millions of resources

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

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

Already have an account?