
Ô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
15 questions
Linux-2 Quiz 2 -- LAMP
Quiz
•
1st - 12th Grade
15 questions
Empowerment Technologies
Quiz
•
KG - 12th Grade
15 questions
Excel
Quiz
•
10th - 12th Grade
17 questions
Kiến thức về trang tính
Quiz
•
7th Grade - University
18 questions
Managing Modern Teams
Quiz
•
10th - 11th Grade
16 questions
Základní části počítače a ergonomie
Quiz
•
9th - 10th Grade
20 questions
History of Package Design
Quiz
•
9th - 12th Grade
15 questions
Cyber Security KS4
Quiz
•
8th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
14 questions
[AP CSP] JavaScript Programming Quiz
Quiz
•
9th - 12th Grade
10 questions
Understanding Computers and Computer Engineering
Interactive video
•
7th - 12th Grade
37 questions
Python - Tuples, Lists, and List Methods
Quiz
•
9th - 12th Grade