KIỂM TRA KIỂM XÂU - PYTHON

Quiz
•
Science
•
10th Grade
•
Medium
Trieu Tham
Used 8+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Xâu kí tự được đặt trong cặp dấu:
Nháy đơn (‘’) hoặc nháy kép (“”)
Ngoặc đơn ()
Ngoặc vuông []
Ngoặc nhọn {}
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Hàm len() cho biết:
Độ dài (hay số kí tự) của xâu.
Chuyển xâu ban đầu thành kí tự in hoa.
Vị trí của kí tự đầu tiên trong xâu.
Vị trí của kí tự bất kì trong xâu.
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Cho xâu st=’abc’. Hàm len(st) có giá trị là:
1
2
3
4
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Cho đoạn chương trình sau:
s1=’a’
s2=’b’
print(s1+s2)
Kết quả trên màn hình là:
‘a’
‘b’
‘ab’
‘ba’
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Hàm y.cout(x) cho biết:
Vị trí xuất hiện đầu tiên của x trong y.
Vị trí xuất hiện cuối cùng của x trong y.
Cho biết số kí tự của xâu x+y
Đếm số lần xuất hiện không giao nhau của x trong y.
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Cho đoạn chương trình sau:
S1=’abcd’
S2=’a’
print(S1.cout(S2))
Trên màn hình sẽ xuất hiện giá trị là:
1
2
3
4
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Xâu rỗng là xâu có độ dài bằng:
0
1
2
3
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Energia, Trabalho, Potência e Gravitação

Quiz
•
1st Grade - University
15 questions
Forces and Newton's Second Law

Quiz
•
8th Grade - University
10 questions
Gerak Lurus

Quiz
•
10th Grade
5 questions
BÀI TẬP CỦNG CỐ BAI 18 TIN 10

Quiz
•
10th Grade
15 questions
Newton’s Second Law

Quiz
•
8th Grade - University
10 questions
AP Physics Review 1

Quiz
•
10th Grade - University
15 questions
Electron Configuration Practice

Quiz
•
10th Grade - University
10 questions
Earthquake Mitigation Quiz

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Science
10 questions
Exploring the Scientific Method

Interactive video
•
6th - 10th Grade
10 questions
Exploring Chemical and Physical Changes

Interactive video
•
6th - 10th Grade
10 questions
Exploring the Basics of Density

Interactive video
•
6th - 10th Grade
10 questions
Kinetic and Potential Energy Explained

Interactive video
•
6th - 10th Grade
10 questions
The Evolution of Atomic Theory

Interactive video
•
6th - 10th Grade
10 questions
Exploring Biomes and Ecosystems for Kids

Interactive video
•
6th - 10th Grade
10 questions
Exploring Metals, Nonmetals, and Metalloids

Interactive video
•
6th - 10th Grade
10 questions
Exploring Latitude and Longitude Concepts

Interactive video
•
6th - 10th Grade