
bài 22
Quiz
•
Others
•
10th Grade
•
Practice Problem
•
Hard
Duy Anh Nguyên
FREE Resource
Enhance your content in a minute
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
Halloween
Quiz
•
10th Grade
17 questions
AP Geo Vocab Pt1
Quiz
•
9th - 12th Grade
20 questions
Hortatory Exposition: Definition, Purpose, Comparison
Quiz
•
9th - 12th Grade
15 questions
PAMSI
Quiz
•
9th - 12th Grade
15 questions
Tes Formatif Kekongruenan dan Kesebangunan
Quiz
•
9th - 12th Grade
17 questions
Literatură universală
Quiz
•
9th - 12th Grade
20 questions
Penilaian Akhir Semester 1: Bahasa Inggris
Quiz
•
9th - 12th Grade
15 questions
Pre - Quizz
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Others
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
10 questions
Understanding Protein Synthesis
Interactive video
•
7th - 10th Grade
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
