
Ôn Tập Python Căn Bản
Authored by Ngo B2205367
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
28 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Có bao nhiêu biểu thức lôgic sau đúng? 1) s1 in s. 2) s2 i 3) s3 in s. 4) s4 in s.
2.
1.
3.
4.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, câu lệnh break được sử dụng để làm gì trong vòng lặp for?
Kết thúc vòng lặp và thoát khỏi nó.
Xử lý ngoại lệ.
Kiểm tra điều kiện và thực hiện các câu lệnh tương ứng.
Chuyển sang lần lặp tiếp theo mà không thực hiện các câu lệnh còn lại trong vòng lặp.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để tách một xâu thành danh sách các từ ta dùng lệnh nào?
Lệnh find().
Lệnh len().
Lệnh split().
Lệnh join().
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hàm sau có chức năng gì? def sum(a, b): print("sum = " + str(a + b))
Trả về tổng của hai số a và b được truyền vào.
Trả về hai giá trị a và b.
Tính tổng hai số a và b.
Tính tổng hai số a và b và hiển thị ra màn hình.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chương trình sau bị lỗi ở dòng lệnh thứ bao nhiêu? def add(a, b): x = a + b return(x) add(1, 2) add(5, 6)
3.
2.
1.
Không bị lỗi.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ngoài việc kết hợp lệnh for và range để duyệt phần tử trong danh sách, có thể sử dụng câu lệnh nào khác?
in range.
in.
while.
int.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong vòng lặp for, biến điều khiển (iterating variable) được sử dụng để làm gì?
Kiểm tra điều kiện để tiếp tục hoặc thoát khỏi vòng lặp.
Chỉ định số lần lặp cụ thể.
Lưu trữ giá trị của phần tử hiện tại trong tập hợp.
Đếm số lần lặp.
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
29 questions
Ôn Tập Môn Tin Học Lớp 9
Quiz
•
9th Grade - University
25 questions
ÔN TẬP TIN HỌC HỌC KÌ 1
Quiz
•
3rd Grade - University
32 questions
Tin 4-kỳ I
Quiz
•
4th Grade - University
26 questions
Ôn Lớp 3
Quiz
•
3rd Grade - University
23 questions
Chủ đề: Máy tính cơ bản 2
Quiz
•
2nd Grade - Professio...
26 questions
Kiểm Tra Cuối Kì I Lớp 8
Quiz
•
9th Grade - University
25 questions
ÔN THI TIN 4 HKI - THVTS 24-25
Quiz
•
4th Grade - University
28 questions
Tin học 7-Ôn tập CK1
Quiz
•
7th Grade - University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
18 questions
Great Lakes States
Quiz
•
KG - University
7 questions
DNA, Chromosomes, Genes, and Traits: An Intro to Heredity
Interactive video
•
11th Grade - University
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
7 questions
Narrative Writing 1
Interactive video
•
4th Grade - University