bài 22

bài 22

10th Grade

17 Qs

quiz-placeholder

Similar activities

“Christmas Bells” Analysis

“Christmas Bells” Analysis

10th Grade

20 Qs

latihan soal kelas 6 tentang beriman pada hari kiamat

latihan soal kelas 6 tentang beriman pada hari kiamat

9th - 12th Grade

20 Qs

DOST SCIQUIZ REVIEWER

DOST SCIQUIZ REVIEWER

9th - 12th Grade

15 Qs

Infancy Development Exam

Infancy Development Exam

9th - 12th Grade

20 Qs

exercise EC

exercise EC

9th - 12th Grade

20 Qs

STORYTELLING ENCLUSTA

STORYTELLING ENCLUSTA

9th - 12th Grade

13 Qs

Fundamentals of Bank Management

Fundamentals of Bank Management

10th Grade

15 Qs

🇮🇩 Semangat 45: Game Literasi Kemerdekaan ⚡

🇮🇩 Semangat 45: Game Literasi Kemerdekaan ⚡

9th Grade - University

15 Qs

bài 22

bài 22

Assessment

Quiz

Others

10th Grade

Practice Problem

Hard

Created by

Duy Anh Nguyên

FREE Resource

AI

Enhance your content in a minute

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

17 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

A. True, False.

B. True, True.

C. False, False.

D. 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)

A. True.

B. False.

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

D. 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])

A. “C”.

B. “o”.

C. “c”.

D. 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])

A. ‘8’.

B. ‘0’.

C. ‘1’.

D. 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.

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

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

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

D. “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?

A. len(s).

B. length(s).

C. s.len().

D. 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

A. 5.

B. 6.

C. 4.

D. 3

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?