
Câu hỏi trắc nghiệm Python

Quiz
•
Information Technology (IT)
•
10th Grade
•
Medium
Tấn Lê
Used 2+ times
FREE Resource
45 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn chương trình sau: s= 'abcde' print(s[1:4])
'abc'
'bcde'
'bcd'
'cde'
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chọn phát biểu không đúng?
Các lệnh mô tả hàm phải viết lùi vào theo quy định của Python.
Theo sau tên hàm có thể có hoặc không có các tham số.
Không thể gọi một chương trình con trong Python là một hàm.
Để sử dụng hàm cần khai báo hàm và viết lời gọi thực hiện.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chương trình sau cho kết quả là bao nhiêu? name = "Codelearn" print(name[0])
"C"
"o"
"c"
Câu lệnh bị lỗi.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, một hàm có thể trả về một giá trị qua tên của nó nếu như có lệnh
return (giá trị)
return <giá trị>
return ('giá trị')
return <giá trị> :
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, một hàm được khai báo bằng từ khóa nào?
import
def
funtion
form
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho biết đâu là khai báo đúng cho hàm TongTich(a,b) có tham số truyền vào là 2 số a, b và giá trị trả về là tổng và tích của 2 số a và b đó
def TongTich(a,b):
return a+b; a*b
def TongTich(a,b) return a+b return a*b
def TongTich(a,b): return a+b, a*b
def TongTich(a,b): return a+b, a*b
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của lệnh print("0123456789".find("012abc"))
yes
1
-1
0
Create a free account and access millions of resources
Similar Resources on Wayground
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