
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
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
10 questions
Understanding Protein Synthesis
Interactive video
•
7th - 10th Grade
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
