Kiểu dữ liệu xâu kí tự - xử lí xâu kí tự

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Trịnh CT)
Used 18+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Xâu rỗng là xâu có độ dài bằng:
0
1
2
3
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Cho xâu st='abc'. Hàm len(st) có giá trị là:
1
2
3
4
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Cho xâu st='abc'. S[0]=?
'b'
'a'
'c'
0
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Cho đoạn chương trình sau: s1='a' s2='b' print(s1+s2) Kết quả trên màn hình là:
'a'
'b'
'ab'
'ba'
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Trên màn hình máy tính sẽ xuất hiện xâu: s='abcde' print(s[:4])
'abc'
'bcde'
'abcd'
'cde'
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hàm y.replace(x1,x2) có nghĩa là:
Tạo xâu mới từ xâu y bằng cách thay thế xâu con x2 của y bằng xâu x1.
Tạo xâu mới bằng cách ghép xâu x1 và xâu x2.
Thay thế xâu x1 bằng xâu x1+x2.
Tạo xâu mới từ xâu y bằng cách thay thế xâu con x1 của y bằng xâu x2.
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Cho xâu s1='ha noi', xâu s2='ha noi cua toi'. Khẳng định nào sau đây là đúng?
Xâu s2 lớn hơn xâu s1.
Xâu s1 bằng xâu s2.
Xâu s2 nhỏ hơn xâu s1.
Xâu s2 lớn hơn hoặc bằng xâu s1.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
chính kháo bài 25. một số lệnh làm việc với xâu

Quiz
•
10th Grade
10 questions
Bài toán và thuật toán

Quiz
•
10th Grade
10 questions
KIỂU DỮ LIỆU CÓ CẤU TRÚC

Quiz
•
11th Grade - University
10 questions
XÂU KÍ TỰ

Quiz
•
9th - 12th Grade
9 questions
ONG VỀ TỔ

Quiz
•
9th - 12th Grade
10 questions
BAI 25_10_BAITAP

Quiz
•
10th Grade
11 questions
BAI 24_LỚP 10

Quiz
•
10th Grade
15 questions
Kiểm tra thường xuyên 3 HK1

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

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

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade