
ÔN TẬP HK2-Trắc nghiệm Python
Authored by Quizizz Pro6
Computers
10th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Đoạn mã nào sau đây sẽ tạo ra một danh sách các số nguyên từ 1 đến 5?
dayso = list(range(1, 6)).
dayso = [1, 2, 3, 4, 5].
dayso = (1, 2, 3, 4, 5)
dayso = {1, 2, 3, 4, 5}
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Trong ngôn ngữ lập trình, xâu kí tự là gì?
A. Một loại biến đặc biệt dùng để lưu trữ số nguyên.
B. Một danh sách các ký tự nhưng không thay đổi từng ký tự của xâu.
C. Một cấu trúc dữ liệu dùng để lưu trữ các phép toán số học.
D. Một dãy các ký tự Unicode.
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Để khai báo một xâu kí tự trong Python, ta sử dụng cặp dấu nào?
A. " "
B. [ ]
C. ( )
D. ' '
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho chương trình sau và thực hiện trong Python khi nhập xâu s = "Năm học 2023-2024" s=input() demso=0 for i in s: if i in "0123456789": demso=demso+1 print(demso) Chương trình in ra số các chữ số có trong xâu s.
Chương trình in ra các chữ số có trong xâu s.
chương trình in ra số các chữ số có trong xâu s
kết quả chương trình là 20232024
kết quả chương trình là 8
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đối tượng dưới đây thuộc kiểu dữ liệu nào? A = [1, 2, '3']
list
int
float
string
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phương thức nào sau đây dùng để thêm phần tử vào cuối list trong python?
abs()
link()
append()
add()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho arr = ['xuan', 'hạ', 1. 4, 'đông', '3', 4.5, 7]. Đâu là giá trị của arr[3]?
1.4
'đông'
'hạ'
'3'
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
20 questions
CSS 10 - QUIZ
Quiz
•
10th Grade
21 questions
CÂU HỎI ÔN TAP HKI
Quiz
•
5th Grade - University
20 questions
Yr 11 ICT quiz 1 Networks & Security
Quiz
•
10th - 11th Grade
15 questions
Digital Etiquette
Quiz
•
4th Grade - University
20 questions
Nghe do hoa va phat trien phan mem
Quiz
•
10th Grade
15 questions
KKHP Roblox Game Development Quiz
Quiz
•
4th - 12th Grade
15 questions
CIW
Quiz
•
9th - 12th Grade
20 questions
Microsoft Excel
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade