
CÁC THỦ TỤC ĐƠN GIẢN (PYTHON)
Quiz by Hồng
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Measure skills
from any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
6 questions
Show answers
- Q1Các thủ tục nào là bắt buộc khi vào hoặc ra khỏi một phần tử trong đơn giản Python?DefThủ tục vào: __enter__, thủ tục ra: __exit__PrintMain30s
- Q2Hàm nào dùng để chuyển đổi một chuỗi thành chữ hoa trong Python?upper()lower()swapcase()capitalize()30s
- Q3Hàm nào dùng để đếm số lượng ký tự trong một chuỗi trong Python?count()index()size()len()30s
- Q4Hàm nào dùng để tách một chuỗi thành một list các từ dựa trên khoảng trắng trong Python?split()divide()separate()extract()30s
- Q5Hàm nào dùng để xóa khoảng trắng ở đầu và cuối chuỗi trong Python?trim()remove()strip()clear()30s
- Q6Hàm nào dùng để kiểm tra xem một chuỗi có phải chỉ gồm các ký tự số hay không trong Python?isnumeric()isalpha()isalnum()isdigit()30s