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)
Create a free account and access millions of resources
Similar Resources on Wayground
18 questions
Python Basics Quiz for Beginners

Quiz
•
6th Grade
21 questions
ÔN TẬP RCV3

Quiz
•
6th Grade
20 questions
Understanding Iteration and Selection

Quiz
•
7th Grade
15 questions
SNLT-HP1-B5

Quiz
•
6th - 8th Grade
15 questions
Quiz sobre el ornitorrinco y la programación

Quiz
•
8th Grade - University
19 questions
Введение в язык программирования Python

Quiz
•
8th Grade
18 questions
Google Spreadsheet

Quiz
•
7th Grade
20 questions
Ch. 15 Exam Review

Quiz
•
8th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Information Technology (IT)
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
12 questions
Continents and the Oceans

Quiz
•
6th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade