Kết quả của đoạn code sau là gì?
s = "Hello, world!"
print(len(s))
Quiz về kiểu dữ liệu Str
Quiz
•
Information Technology (IT)
•
6th - 8th Grade
•
Medium
Khang Nghĩa
Used 4+ times
FREE Resource
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn code sau là gì?
s = "Hello, world!"
print(len(s))
12
13
14
15
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cách nào dưới đây tạo một chuỗi rỗng?
s = " "
s = str()
s = ' '
Tất cả đều đúng.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào dùng để truy xuất ký tự đầu tiên của chuỗi s = "Python"?
s(0)
s[0]
s{0}
s.first()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
s = "Python"
print(s[-1])
P
n
o
h
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào dưới đây dùng để lấy chuỗi con "thon" từ chuỗi s = "Python"?
s[2:6]
s[-4:]
s[2:]
Cả ba cách.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn code sau là gì?
s = "Python"
print(s[: : -1]
"Python"
"nohtyP"
"n"
Lỗi.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào giúp nối hai chuỗi a = "Hello" và b = "World" thành "Hello World"?
a + b
a + " " + b
a.append(b)
a.join(b)
20 questions
Thử thách 4-Đường đua lập trình - Tin học 7
Quiz
•
7th Grade
13 questions
Pre-assessment
Quiz
•
7th Grade
15 questions
Python Data Structures
Quiz
•
6th - 8th Grade
12 questions
Review loops
Quiz
•
8th Grade - University
14 questions
Python հարցեր 7-րդ դաս
Quiz
•
7th Grade
12 questions
Введення та виведення даних у Python
Quiz
•
7th Grade
20 questions
Thử thách 1-Đường đua lập trình lớp 7
Quiz
•
7th Grade
18 questions
Python 6 сынып
Quiz
•
6th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
20 questions
Final Exam Vocabulary
Quiz
•
6th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
11 questions
Decimal/fraction conversions quick check
Quiz
•
5th - 7th Grade
10 questions
Identifying equations
Quiz
•
KG - University
44 questions
El fin del año- 7th
Quiz
•
7th - 12th Grade
40 questions
Word Study Assessment: Roots, Prefixes, Suffixes, and Vocabulary
Quiz
•
8th Grade
49 questions
How Well Do You Know Your 6th Grade Teachers?
Quiz
•
6th Grade