tin haodepzai

tin haodepzai

9th - 12th Grade

48 Qs

quiz-placeholder

Similar activities

Siêu trí tuệ lớp 4A

Siêu trí tuệ lớp 4A

4th Grade - University

51 Qs

Grade 5. Comparation

Grade 5. Comparation

5th Grade - University

50 Qs

LATIHAN PEMBESARAN 3_KUALITAS AIR DAN PAKAN

LATIHAN PEMBESARAN 3_KUALITAS AIR DAN PAKAN

12th Grade

50 Qs

Promotional Media in Sports & Entertainment

Promotional Media in Sports & Entertainment

9th - 12th Grade

50 Qs

Baterai (Aki Sepeda Motor)

Baterai (Aki Sepeda Motor)

10th - 12th Grade

45 Qs

GDCT-C1- bài 6

GDCT-C1- bài 6

12th Grade

46 Qs

PTS PKKR SEMESTER GENAP XI TKR 2 SMKN 1 MONDOKAN

PTS PKKR SEMESTER GENAP XI TKR 2 SMKN 1 MONDOKAN

11th 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

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?