Câu hỏi về lập trình Python

Câu hỏi về lập trình Python

10th Grade

23 Qs

quiz-placeholder

Similar activities

TIK KELAS 10

TIK KELAS 10

10th Grade

20 Qs

J808 LO4.4 Prevention Measures (Encryption and Backup)

J808 LO4.4 Prevention Measures (Encryption and Backup)

10th - 11th Grade

20 Qs

KT thường xuyên

KT thường xuyên

10th Grade

20 Qs

SUMATIF MS WORD X E 4 DAN 5

SUMATIF MS WORD X E 4 DAN 5

10th Grade

20 Qs

TEST1.PY

TEST1.PY

10th Grade - University

20 Qs

QUIZ DADAKAN KELAS 7

QUIZ DADAKAN KELAS 7

1st Grade - University

20 Qs

Humans Need Not Apply (Video 9)

Humans Need Not Apply (Video 9)

10th Grade

20 Qs

Câu hỏi về lập trình Python

Câu hỏi về lập trình Python

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Tran Khuu

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

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

23 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của chương trình sau nếu s = "python1221" là gì? s = input("Nhập xâu kí tự bất kì:") kq = False for i in range(len(s)-1): if s[i] == "2" and s[i+1] == "1": kq = True break print(kq)

True.

False.

Chương trình bị lỗi.

Vòng lặp vô hạn.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Xâu rỗng là xâu có độ dài bằng bao nhiêu?

1.

2.

0.

3.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Chương trình trên giải quyết bài toán gì? s = "" ư s = s + str(i) print(s)

In một chuỗi kí tự từ 0 tới 10.

In một chuỗi kí tự từ 0 tới 9.

In một chuỗi kí tự từ 1 tới 10.

In một chuỗi kí tự từ 1 đến 9.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để biết độ dài của xâu s ta dùng hàm gì?

str(s).

len(s).

length(s).

s.len().

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Có bao nhiêu xâu kí tự nào hợp lệ? 1) "123_@##" 2) "hoa hau" 3) "346h7g84jd" 4) python 5) "01028475" 6) 123456

5.

6.

4.

3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho s = "123456abcdefg", s1 = "124", s2 = "235", s3 = "ab", s4 = "56" + s3 Có bao nhiêu biểu thức lôgic sau đúng? 1) s1 in s. 2) s2 in s. 3) s3 in s. 4) s4 in s.

1.

2.

3.

4.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của chương trình sau là bao nhiêu? >>> s = "abcdefg" >>> print(s[2])

'c'.

'b'.

'a'.

'd'.

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?