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
Unit 1: What's your address?

Quiz
•
4th - 5th Grade
23 questions
Global success 5 Unit 1 Review

Quiz
•
5th Grade
20 questions
Everybody up - Unit 1: Senses

Quiz
•
1st - 5th Grade
20 questions
NM1. Unit 4. Toys

Quiz
•
1st - 5th Grade
20 questions
Basic Grammar Unit 1 -2

Quiz
•
6th Grade
20 questions
REVIEW FOR MID TERM TEST GRADE 7 - 22-23

Quiz
•
7th Grade
20 questions
Vocab Quiz 15.8 + U1

Quiz
•
9th - 12th Grade
24 questions
IC3 Spark GS6 LV1 BÀI 5

Quiz
•
12th Grade - University
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 English
20 questions
Run-On Sentences and Sentence Fragments

Quiz
•
3rd - 6th Grade
20 questions
4 Types of Sentences

Quiz
•
3rd - 5th Grade
16 questions
Figurative Language

Quiz
•
5th Grade
6 questions
Biography

Quiz
•
4th - 12th Grade
20 questions
Context Clues

Quiz
•
5th Grade
11 questions
1.4:Thunder Rose (Comprehension)

Quiz
•
5th Grade
18 questions
Main Idea & Supporting Details

Quiz
•
5th Grade
20 questions
Proper and Common nouns

Quiz
•
2nd - 5th Grade