
Tin học bài 24

Quiz
•
Computers
•
10th Grade
•
Medium
Tình Hồng
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, câu lệnh nào dùng để tính độ dài của xâu s?
A. len(s).
B. length(s).
C. s.len().
D. s. length().
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
print(kq)
True
False
Chương trình bị lỗi
Vòng hạn vô hạn
3.
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.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, xâu nào chương trình sẽ báo lỗi.
message = "This is also a string".
A. 'This is a string in Python'
B. '"Beautiful is better than ugly.". Said Tim Peters'
C. Không có xâu bị lỗi.
D. 'It\'s also a valid string'
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Xâu “1234%^^%TFRESDRG” có độ dài bằng bao nhiêu?
A.16
B.17
C.18
D.15
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phát biểu nào sau đây là sai?
.
A. Có thể truy cập từng kí tự của xâu thông qua chỉ số.
B. Chỉ số bắt đầu từ 0.
C. Có thể thay đổi từng kí tự của một xâu
D. Python không có kiểu dữ liệu kí tự.
7.
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’
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Củng Cố - Biến và lệnh gán trong Python

Quiz
•
10th Grade
10 questions
Bài 26-Hàm trong Python

Quiz
•
10th Grade
10 questions
Trắc nghiệm xâu

Quiz
•
9th - 12th Grade
10 questions
Trắc nghiệm Bài 26 Hàm trong Python

Quiz
•
10th Grade
5 questions
LUYỆN TẬP

Quiz
•
10th Grade - University
15 questions
BÀI 12- XÂU KÍ TỰ

Quiz
•
10th Grade
5 questions
Trắc nghiệm bài 26

Quiz
•
10th Grade
15 questions
KNTT 10 BÀI 22

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
Exploring Cybersecurity Techniques and Threats

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

Interactive video
•
7th - 12th Grade