
Bài tập trắc nghiệm Python cơ bản xâu
Authored by Edu TSmart
English
5th Grade
Used 14+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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)
Access all questions and much more by creating a free account
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
22 questions
Notice
Quiz
•
12th Grade
20 questions
Class 7
Quiz
•
7th Grade
20 questions
AW-Ch17
Quiz
•
University
20 questions
Vocabularies 1
Quiz
•
8th Grade
20 questions
present simple positive
Quiz
•
6th Grade
20 questions
Phrasal verbs about enviroment
Quiz
•
5th Grade - University
20 questions
New Horizon1 Unit2
Quiz
•
6th Grade
20 questions
Prepositions of places
Quiz
•
1st - 12th Grade
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for English
20 questions
Main Idea and Details
Quiz
•
5th Grade
12 questions
Figurative Language Review
Interactive video
•
5th Grade
20 questions
Prefix and Suffix Review
Quiz
•
3rd - 5th Grade
15 questions
Nonfiction Text Features
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
5th Grade
15 questions
Theme - 5th grade
Quiz
•
5th Grade
11 questions
Figurative Language
Lesson
•
5th - 7th Grade
25 questions
Prepositions and Prepositional Phrases
Quiz
•
3rd - 5th Grade