TRẮC NGHIỆM VUI PYTHON

Quiz
•
Information Technology (IT)
•
10th Grade
•
Hard
Dung Tin
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp đúng để viết vòng lặp for trong Python là gì?
for (i = 0; i < 5; i++)
for i in range(5):
for i to 5:
for each i in range(5)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn code sau là gì?
for i in range(3):
print(i, end=" ")
1 2 3
0 1 2
0 1 2 3
1 2 3 4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Vòng lặp while nào sau đây sẽ chạy vô hạn?
while True:
print("Hello")
while 0:
print("Hi")
while False:
print("Hey")
while 1 == 0:
print("Python")
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đoạn code sau thực hiện chức năng gì?
i = 0
while i < 5:
print(i)
i += 1
In các số từ 1 đến 5
In các số từ 0 đến 4
In số 5 lần số 0
Vòng lặp vô hạn
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để thêm phần tử vào cuối danh sách my_list, ta dùng lệnh nào?
my_list.add(5)
my_list.push(5)
my_list.append(5)
my_list.insert_last(5)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để nối hai chuỗi s1 = "Hello" và s2 = "World" thành "HelloWorld", ta viết:
s1 + s2
s1 . s2
add(s1, s2)
join(s1, s2)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đoạn code sau là ví dụ của loại hàm nào?
def greet():
print("Hello, world!")
Hàm trả về giá trị
Hàm không trả về giá trị
Hàm có tham số
Lỗi
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
TEST 1 MWORD2016

Quiz
•
10th Grade
6 questions
Vòng 3. Kiểu danh sách

Quiz
•
10th Grade
10 questions
Understanding Data and Encoding

Quiz
•
6th Grade - University
9 questions
Kiến thức về hàm print() trong Python

Quiz
•
2nd Grade - University
15 questions
Bài 19: Câu lệnh rẽ nhánh IF

Quiz
•
10th Grade
10 questions
Bài 2 - Tin học 10

Quiz
•
10th Grade
15 questions
AI và đạo đức người dùng

Quiz
•
9th - 12th Grade
15 questions
Quiz de Robótica com Arduino e mBlock

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Information Technology (IT)
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
7 questions
EAHS PBIS Lesson- Bathroom

Lesson
•
9th - 12th Grade
57 questions
How well do YOU know Neuwirth?

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
4 questions
Study Skills

Lesson
•
5th - 12th Grade