
Bài 24: Xâu kí tự

Quiz
•
Science
•
10th Grade
•
Easy
dong bui
Used 1+ times
FREE Resource
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Xâu "1234%^^%TFRESDRG" có độ dài bằng bao nhiêu?
16
17
18
15
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Sau khi thực hiện lệnh sau, biến s2 sẽ có kết quả là: s1 ="3986443" s2 = "" for ch in s1: if int(ch) % 2 == 0: s2 = s2 + ch print(s2)
A. 3986443.
B. 8644.
C. 39864.
D. 443.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của chương trình sau nếu s = "python1221" là gì? s = input("Nhập xâu kí tự bất kì:") kq = False for i in range(len(s)-1): if s[i] == "2" and s[i+1] == "1": kq = True break print(kq)
A. True.
B. False.
C. Chương trình bị lỗi.
D. Vòng lặp vô hạn.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chương trình sau cho kết quả là bao nhiêu? name = "Codelearn" print(name[0])
A. “C”.
B. “o”.
C. “c”.
D. Câu lệnh bị lỗi.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của chương trình sau là bao nhiêu? >>> s = "0123145" >>> s[0] = '8' >>> print(s[0])
A. ‘8’.
B. ‘0’.
C. ‘1’.
D. Chương trình bị lỗi.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của chương trình sau là bao nhiêu? >>> s = "abcdefg" >>> print(s[2])
A. ‘c’.
B. ‘b’.
C. ‘a’.
D. ‘d’
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chương trình trên giải quyết bài toán gì? s = "" for i in range(10): s = s + str(i) print(s)
A. In một chuỗi kí tự từ 0 tới 10.
B. In một chuỗi kí tự từ 0 tới 9.
C. In một chuỗi kí tự từ 1 tới 10.
D. In một chuỗi kí tự từ 1 đến 9.
Create a free account and access millions of resources
Similar Resources on Wayground
31 questions
Series and Parallel Circuit Diagrams

Quiz
•
9th - 10th Grade
24 questions
Tính Chất Kim Loại

Quiz
•
9th Grade - University
30 questions
Đề ôn KTTT giữa HK2 - Lớp 10 (Hóa học)

Quiz
•
10th Grade
24 questions
Forensics Fingerprints Review

Quiz
•
9th - 12th Grade
22 questions
AQA B1b - Stem Cells & Cell Division

Quiz
•
9th - 10th Grade
25 questions
3D Printing

Quiz
•
7th Grade - University
21 questions
KHTN 9 - Trắc nghiệm Đ/S

Quiz
•
9th - 12th Grade
30 questions
Ôn tập-Tin 4-HK1

Quiz
•
5th Grade - University
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Science
17 questions
Lab Safety

Interactive video
•
10th Grade
10 questions
Exploring the Scientific Method

Interactive video
•
6th - 10th Grade
13 questions
Amoeba Sisters: Biomolecules

Interactive video
•
9th - 12th Grade
10 questions
Exploring Latitude and Longitude Concepts

Interactive video
•
6th - 10th Grade
26 questions
Macromolecules and Enzymes Review.

Quiz
•
10th Grade
10 questions
Exploring Atoms, Elements, Molecules, and Compounds

Interactive video
•
6th - 10th Grade
15 questions
Graphing in Science

Quiz
•
10th Grade
10 questions
Understanding Variables and Experiments with Mythbusters

Interactive video
•
6th - 10th Grade