Quiz về lập trình Python

Quiz về lập trình Python

10th Grade

15 Qs

quiz-placeholder

Similar activities

Descriptive Text 2

Descriptive Text 2

9th - 12th Grade

20 Qs

Assessment kognitif (Bahasa Inggris)

Assessment kognitif (Bahasa Inggris)

10th Grade

20 Qs

Kuis JKI 1

Kuis JKI 1

10th Grade

20 Qs

Subjunctive test

Subjunctive test

9th - 12th Grade

20 Qs

Cardiology/Heart Quiz

Cardiology/Heart Quiz

9th - 12th Grade

20 Qs

relative clause

relative clause

10th Grade

10 Qs

Long Walk to Freedom

Long Walk to Freedom

10th Grade

15 Qs

St Valentine’s Quiz Bism3

St Valentine’s Quiz Bism3

9th - 12th Grade

20 Qs

Quiz về lập trình Python

Quiz về lập trình Python

Assessment

Quiz

Others

10th Grade

Practice Problem

Hard

Created by

Duy Anh Nguyên

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 1. Biểu thức sau cho kết quả đúng hay sai? S1 = “12345” S2 = “3e4r45” S3 = “45” S3 in S1 S3 in S2

True, False.

True, True.

False, False.

False, True.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 2. 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 print(kq)

True.

False.

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

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

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 3. Chương trình sau cho kết quả là bao nhiêu? name = "Codelearn" print(name[0])

“C”.

“o”.

“c”.

Câu lệnh bị lỗi.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 4. Kết quả của chương trình sau là bao nhiêu? >>> s = “0123145” >>> s[0] = ‘8’ >>> print(s[0])

‘8’.

‘0’.

‘1’.

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

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 5. Trong Python, xâu nào chương trình sẽ báo lỗi.

'This is a string in Python' message = "This is also a string".

‘"Beautiful is better than ugly.". Said Tim Peters’

Xâu không bị lỗi.

“It's also a valid string”

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 6. Trong Python, câu lệnh nào dùng để tính độ dài của xâu s?

len(s).

length(s).

s.len().

s. length().

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 7. 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

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?