
Hàm - Chương trình con

Quiz
•
Science
•
10th Grade
•
Medium
IT hl
Used 19+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để định nghĩa hàm trong Python sử dụng từ khoá nào?
type
def
int
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
"…là giá trị được truyền vào khi gọi hàm". Nội dung trong dấu "…" là gì?
Tham số
Đối số
Tên hàm
Giá trị trả về
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Xác định đối số trong đoạn chương trình sau:
def vidu(a,b,c):
t=a+b+c
return t
print(vidu(10,6,5))
t
a,b,c
vidu
10,6,5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Nếu muốn biến bên ngoài vẫn có tác dụng bên trong hàm thì cần khai báo lại biến này bên trong hàm với từ khoá nào?
return
def
insert
global
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chọn đáp án đúng nhất. Trong Python các biến khai báo bên trong hàm đều có tính
phức tạp
cục bộ
đa dạng
an toàn
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chọn đáp án đúng nhất. Trong Python các biến khai báo bên ngoài hàm gọi là biến
phức tạp
cục bộ
toàn cục
an toàn
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đoạn chương trình sau in ra giá trị là:
def vidu(a,b):
z=a-b
return z
x,y,z=6,5,9
vidu(x,y)
print(z)
10
9
6
5
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Tốc độ phản ứng và CBHH

Quiz
•
10th - 12th Grade
10 questions
OPTICS

Quiz
•
10th Grade
10 questions
Tin học

Quiz
•
10th Grade
15 questions
S Block

Quiz
•
6th Grade - University
15 questions
Unit 9

Quiz
•
7th Grade - University
10 questions
Energi Terbarukan

Quiz
•
10th Grade
15 questions
ENNYSTON SCIENCE COMPETION: 2ND ROUND - JUNIOR 2

Quiz
•
10th Grade
11 questions
2023 P5 Hidroponik

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Science
10 questions
Exploring the Scientific Method

Interactive video
•
6th - 10th Grade
10 questions
Exploring Chemical and Physical Changes

Interactive video
•
6th - 10th Grade
10 questions
Exploring Newton's Laws of Motion

Interactive video
•
6th - 10th Grade
10 questions
Exploring Metals, Nonmetals, and Metalloids

Interactive video
•
6th - 10th Grade
20 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
10 questions
Exploring Earth's Spheres and Their Interactions

Interactive video
•
6th - 10th Grade
10 questions
Exploring the Periodic Table

Interactive video
•
6th - 10th Grade
10 questions
Exploring Atoms, Elements, Molecules, and Compounds

Interactive video
•
6th - 10th Grade