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 String Operations Quiz

Quiz
•
8th Grade
20 questions
Thử thách 8 - đường đua lập trình lớp 7

Quiz
•
7th Grade
20 questions
Thử thách 9 - đường đua lập trình - tin 7

Quiz
•
7th Grade
15 questions
Small Basic Programming Quiz

Quiz
•
7th Grade
22 questions
ÔN TẬP CRV1

Quiz
•
6th Grade - University
15 questions
Selection Programming_If condition

Quiz
•
8th Grade - University
21 questions
PYTHON 1

Quiz
•
6th - 8th Grade
16 questions
While Loop Iteration Quiz

Quiz
•
7th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Information Technology (IT)
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
30 questions
Teacher Facts

Quiz
•
6th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
22 questions
Figurative Language

Quiz
•
7th Grade