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
Chuỗi "Python".swapcase() trả về gì?
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
30 questions
Ôn tập 4

Quiz
•
5th Grade - University
20 questions
Error Identification

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

Quiz
•
5th Grade
21 questions
TOEIC VOCABULARY Unit 2: Business documents

Quiz
•
University
20 questions
Ôn tập tin 6

Quiz
•
6th Grade
28 questions
UNIT 6: ENDANGERED SPECIES

Quiz
•
12th Grade
20 questions
Unit 9: What did you see at the zoo?

Quiz
•
5th Grade
20 questions
5th Grade Unit 2 Review Spelling and Grammar

Quiz
•
5th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade