Chuỗi "Python".swapcase() trả về gì?
Xâu 4

Quiz
•
English
•
5th Grade
•
Hard
Edu TSmart
Used 8+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
python
PYTHON
pYTHON
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đoạn mã sau in ra gì?
C O D E
C
C D
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh if s.endswith("!"): trả về True khi nào?
s chứa dấu chấm than
s kết thúc bằng dấu !
s bắt đầu bằng dấu !
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 5: Đoạn mã sau đếm số nguyên âm trong chuỗi là lệnh nào trong Python?
sum(1 for c in s if c in 'aeiou')
sum(1 for c in s if c in '0123456789')
sum(1 for c in s if c in '-0123456789')
sum(1 for c in s if c in '-')
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn mã sau:
3
5
2
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để đảo chuỗi s = "abc" ta dùng lệnh?
s[::-1]
reversed(s)
Cả hai đúng
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đoạn mã nào chuyển ký tự thường thành hoa bằng lặp?
for c in s: print(c.upper())
print(s.upper())
Cả hai đúng
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Super Minds 4 Unit 6

Quiz
•
4th - 5th Grade
30 questions
Ôn tập Scratch - Cơ bản

Quiz
•
3rd - 12th Grade
25 questions
G5 - UNIT 9: WHAT DID YOU SEE AT THE ZOO

Quiz
•
5th Grade
20 questions
Basics of Python Programming Unit-1

Quiz
•
University - Professi...
30 questions
Ôn tập 3

Quiz
•
5th Grade - University
30 questions
Ôn tập 4

Quiz
•
5th Grade - University
20 questions
Final 20P Got Talent

Quiz
•
University
20 questions
Error Identification

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade