
Tin học bài 24
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Medium
Tình Hồng
Used 1+ times
FREE Resource
Enhance your content in a minute
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
QBASIC Programming
Quiz
•
5th - 10th Grade
11 questions
Social Engineering
Quiz
•
10th Grade
15 questions
SOAL KOMPUTER KELAS 8 SEMESTER GANJIL
Quiz
•
7th - 12th Grade
10 questions
Network
Quiz
•
10th - 11th Grade
10 questions
Evaluación primero y segundo primaria
Quiz
•
1st - 12th Grade
12 questions
Cyber security
Quiz
•
10th - 12th Grade
10 questions
Anime
Quiz
•
KG - University
10 questions
Tin học 10 _ Bài 16 _Định dạng văn bản
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
