
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
Similar Resources on Wayground
15 questions
GDQP và AN 10 bài 2

Quiz
•
10th Grade
13 questions
địa 2

Quiz
•
10th Grade
15 questions
Kiến thức về Pháp luật

Quiz
•
10th Grade
18 questions
Ôn thi gkll (1)

Quiz
•
10th Grade
19 questions
Câu hỏi về lập trình Python

Quiz
•
10th Grade
13 questions
Ôn Tập Môn Địa Lí ( từ câu 1 đên câu 9 )

Quiz
•
10th Grade
12 questions
Ôn tập

Quiz
•
10th Grade
12 questions
Unit 1 Final Vocab GS10

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Others
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
10 questions
Impact of 9/11 and the War on Terror

Interactive video
•
10th - 12th Grade
21 questions
Lab Safety

Quiz
•
10th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
6 questions
Biography

Quiz
•
4th - 12th Grade