Bài tập trắc nghiệm  Python cơ bản xâu

Bài tập trắc nghiệm Python cơ bản xâu

5th Grade

25 Qs

quiz-placeholder

Similar activities

English 5 - Unit 11. What's the matter with you? - L1

English 5 - Unit 11. What's the matter with you? - L1

5th Grade

20 Qs

Adjectives and Nouns M4 Live Quiz

Adjectives and Nouns M4 Live Quiz

10th Grade

20 Qs

latihan soal

latihan soal

10th Grade

20 Qs

Idioms & Adventurous Vocabulary

Idioms & Adventurous Vocabulary

8th Grade

20 Qs

English Quiz Caption

English Quiz Caption

12th Grade

20 Qs

USA year 8

USA year 8

8th Grade

20 Qs

End of year revision (all groups)

End of year revision (all groups)

5th Grade

20 Qs

Causal-Comparative Research MCQs

Causal-Comparative Research MCQs

University

20 Qs

Bài tập trắc nghiệm  Python cơ bản xâu

Bài tập trắc nghiệm Python cơ bản xâu

Assessment

Quiz

English

5th Grade

Practice Problem

Medium

Created by

Edu TSmart

Used 10+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kết quả của đoạn code sau là gì?

Có chữ e

Không có chữ e

Lỗi

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đoạn mã nào kiểm tra một chuỗi có bắt đầu bằng chữ “a”?

if s[0] == "a":

if s[-1] == "a":

if "a" in s:

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Đoạn code sau in ra gì?

abc

a b c

c b a

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kết quả của đoạn mã:

In ra True

In ra False

Không in gì

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào kiểm tra chuỗi s chứa đúng 10 ký tự?

if len(s) == 10:

if s.len() == 10:

if count(s) == 10:

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào in từng ký tự trong chuỗi s nếu nó là chữ hoa?

for c in s: if c.isupper(): print(c)

if c.isupper() for c in s:

print(s.upper())

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào đảo ngược chuỗi s bằng vòng lặp?

for i in range(len(s)): print(s[i])

for i in range(len(s)-1, -1, -1): print(s[i])

for i in s[::-1]: print(i)

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?