Kết quả của đoạn code sau là gì?
Bài tập trắc nghiệm Python cơ bản xâu

Quiz
•
English
•
5th Grade
•
Hard
Edu TSmart
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Đoạn code sau in ra gì?
abc
a b c
c b a
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Quizizz
20 questions
UNIT 3: TEENAGERS (1)

Quiz
•
8th Grade
24 questions
Tin 10 bài 16

Quiz
•
10th Grade
20 questions
Ôn tập tin 6

Quiz
•
6th Grade
27 questions
Unit 4: Verb

Quiz
•
University
20 questions
CÂU ĐIỀU KIỆN (CÂU ĐIỀU KIỆN)

Quiz
•
10th Grade
20 questions
CÂU ĐIỀU KIỆN (CÂU ĐIỀU KIỆN)

Quiz
•
10th Grade
20 questions
vocabulary English 7 unit 6

Quiz
•
8th Grade
20 questions
G8. Unit 2.0

Quiz
•
8th Grade
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for English
34 questions
ELA Eog review 5th grade

Quiz
•
5th Grade
35 questions
Rain Reign Final Quiz Review

Quiz
•
5th - 6th Grade
15 questions
Disney Trivia

Quiz
•
KG - 5th Grade
20 questions
Parts of Speech

Quiz
•
5th Grade
20 questions
Parts of Speech

Quiz
•
5th Grade
10 questions
reading comprehension

Passage
•
5th Grade
18 questions
Figurative Language

Quiz
•
4th - 7th Grade
10 questions
Kyle Keeley's Adventure Quiz

Quiz
•
5th Grade