Bài tập trắc nghiệm Python cơ bản xâu
Quiz
•
English
•
5th Grade
•
Medium
Edu TSmart
Used 9+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn code sau là gì?
Có chữ e
Không có chữ e
Lỗi
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đoạn mã nào kiểm tra một chuỗi có bắt đầu bằng chữ “a”?
if s[0] == "a":
if s[-1] == "a":
if "a" in s:
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đoạn code sau in ra gì?
abc
a b c
c b a
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn mã:
In ra True
In ra False
Không in gì
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào kiểm tra chuỗi s chứa đúng 10 ký tự?
if len(s) == 10:
if s.len() == 10:
if count(s) == 10:
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào in từng ký tự trong chuỗi s nếu nó là chữ hoa?
for c in s: if c.isupper(): print(c)
if c.isupper() for c in s:
print(s.upper())
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào đảo ngược chuỗi s bằng vòng lặp?
for i in range(len(s)): print(s[i])
for i in range(len(s)-1, -1, -1): print(s[i])
for i in s[::-1]: print(i)
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
25 questions
unit 13-14
Quiz
•
8th Grade
20 questions
Midterm test M.3
Quiz
•
12th Grade
20 questions
Citing Scientific Literature Quiz
Quiz
•
11th Grade
20 questions
Phrasal Verbs Unit 10
Quiz
•
University
20 questions
B3L4 The Art of Cosplay
Quiz
•
10th - 12th Grade
20 questions
In Context
Quiz
•
5th - 9th Grade
20 questions
English in Daily Life Mini Exam
Quiz
•
3rd Grade - University
25 questions
Continuous Tense
Quiz
•
7th - 9th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for English
20 questions
Possessive Nouns
Quiz
•
5th Grade
15 questions
Theme
Lesson
•
3rd - 7th Grade
10 questions
Context Clues
Quiz
•
5th Grade
11 questions
USING CONTEXT CLUES
Lesson
•
5th - 7th Grade
18 questions
Main Idea & Supporting Details
Quiz
•
5th Grade
10 questions
Theme
Quiz
•
3rd - 5th Grade
19 questions
Review- Central Idea, Supporting Details, and Summarizing
Quiz
•
5th - 7th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
