tin haodepzai

tin haodepzai

9th - 12th Grade

48 Qs

quiz-placeholder

Similar activities

AP Unit 5/Gen. Psychology Ch. 5 States of Consciousness

AP Unit 5/Gen. Psychology Ch. 5 States of Consciousness

11th Grade

43 Qs

Chapter 2 Quiz

Chapter 2 Quiz

9th - 12th Grade

50 Qs

Chapter 21:  Haircoloring

Chapter 21: Haircoloring

9th - 12th Grade

50 Qs

KEJURUAN TEKNIK KOMPUTER DAN JARINGAN

KEJURUAN TEKNIK KOMPUTER DAN JARINGAN

12th Grade

50 Qs

3015.U1.HerramientasTallerReparación (Total)

3015.U1.HerramientasTallerReparación (Total)

9th Grade

47 Qs

MAKANAN HERBAL

MAKANAN HERBAL

12th Grade

50 Qs

Dioda

Dioda

10th - 12th Grade

45 Qs

Hiuz KTCK I Tin 12 2023-2024 1.1

Hiuz KTCK I Tin 12 2023-2024 1.1

12th Grade

53 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

Already have an account?