
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
Already have an account?
Similar Resources on Wayground
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Information Technology (IT)
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
20 questions
Cell organelles and functions
Quiz
•
10th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
10 questions
Exploring the Energy Cycle: Photosynthesis and Cellular Respiration
Interactive video
•
6th - 10th Grade
10 questions
Guess the Christmas Movie by the Scene Challenge
Interactive video
•
6th - 10th Grade
