
Câu hỏi trắc nghiệm Python
Quiz
•
Information Technology (IT)
•
10th Grade
•
Practice Problem
•
Medium
Tấn Lê
Used 2+ times
FREE Resource
Enhance your content in a minute
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
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
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
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
20 questions
Cell Organelles
Quiz
•
10th Grade
25 questions
Complementary and Supplementary Angles
Quiz
•
7th - 10th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
10 questions
Exploring the Layers of the Earth
Interactive video
•
6th - 10th Grade
