
bài 22
Quiz
•
Others
•
10th Grade
•
Hard
Duy Anh Nguyên
FREE Resource
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 1. Biểu thức sau cho kết quả đúng hay sai? S1 = “12345” S2 = “3e4r45” S3 = “45” S3 in S1 S3 in S2
A. True, False.
B. True, True.
C. False, False.
D. False, True.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 2. 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 print(kq)
A. True.
B. False.
C. Chương trình bị lỗi.
D. Vòng lặp vô hạn.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 3. 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.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 4. 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.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 5. Trong Python, xâu nào chương trình sẽ báo lỗi.
A. 'This is a string in Python' message = "This is also a string".
B. ‘"Beautiful is better than ugly.". Said Tim Peters’
C. Xâu không bị lỗi.
D. “It's also a valid string”
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 6. 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().
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 7. Có bao nhiêu xâu kí tự nào hợp lệ? 1) “123_@##” 2) “hoa hau” 3) “346h7g84jd” 4) python 5) “01028475” 6) 123456
A. 5.
B. 6.
C. 4.
D. 3
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Aquatic Ecosystem Quiz
Quiz
•
10th Grade
16 questions
X PH 1
Quiz
•
9th - 12th Grade
15 questions
SIMPLE PAST, SIMPLE PRESENT AND CONTINUOUS
Quiz
•
9th - 12th Grade
15 questions
Quiz Fastabiqul Khairat
Quiz
•
10th Grade
20 questions
kuizZz cihuuyy
Quiz
•
9th - 12th Grade
20 questions
4th grade English
Quiz
•
4th Grade - University
20 questions
5555
Quiz
•
5th Grade - University
15 questions
Ôn Thi Lịch Sử Lớp 10
Quiz
•
10th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Others
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
10 questions
Halloween Trivia Challenge
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
