Bài tập trắc nghiệm Python cơ bản xâu
Quiz
•
English
•
5th Grade
•
Practice Problem
•
Medium
Edu TSmart
Used 10+ times
FREE Resource
Enhance your content in a minute
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
20 questions
The Forest Troll
Quiz
•
6th Grade
20 questions
English 1 - LIFE - Unit 9: Entertainment
Quiz
•
University
20 questions
degree comparasion
Quiz
•
8th Grade
20 questions
Offering Service/Help Grade XII
Quiz
•
12th Grade
20 questions
UTS BAHASA INGGRIS SEMESTER GANJIL KELAS 9
Quiz
•
9th Grade
20 questions
Future Forms Practice
Quiz
•
9th - 12th Grade
20 questions
Simple presente tense. Culinary verbs
Quiz
•
University
20 questions
ENGLISH GRADE 7
Quiz
•
7th 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 English
14 questions
Context Clues
Quiz
•
4th - 6th Grade
10 questions
Context Clues
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
5th Grade
11 questions
USING CONTEXT CLUES
Lesson
•
5th - 7th Grade
25 questions
Greek and Latin Roots
Quiz
•
5th - 9th Grade
10 questions
Plot - Elements of Plot Practice
Interactive video
•
5th Grade
10 questions
Theme
Quiz
•
3rd - 5th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
