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
Similar Resources on Wayground
20 questions
Class 7. Unit 3 (vocab+ present perfect, past simple)

Quiz
•
7th Grade
21 questions
đề số 59

Quiz
•
1st - 5th Grade
20 questions
G23 - Unit 1 - Lesson 5

Quiz
•
1st - 5th Grade
25 questions
UNIT 7 - PLACES TO GO

Quiz
•
1st - 5th Grade
20 questions
Foundation 2: Vocabulary Review 2

Quiz
•
University
20 questions
Unit 1- My new school - Vocabulary

Quiz
•
6th - 7th Grade
30 questions
E6_global success_unit 7_grammar

Quiz
•
6th - 8th Grade
30 questions
Voca RC Unit 1

Quiz
•
KG - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for English
16 questions
Figurative Language

Quiz
•
5th Grade
20 questions
Context Clues

Quiz
•
5th Grade
10 questions
Main Idea and Supporting Details

Quiz
•
3rd - 6th Grade
10 questions
Context Clues

Quiz
•
5th Grade
9 questions
Simple, Compound, and Complex Sentences

Lesson
•
4th - 5th Grade
20 questions
Compound Subject and Predicate

Quiz
•
3rd - 5th Grade
20 questions
Character traits

Quiz
•
5th Grade
20 questions
Context Clues

Quiz
•
5th Grade