
Câu hỏi về lập trình Python
Quiz
•
World Languages
•
10th Grade
•
Practice Problem
•
Easy
Pes Game
Used 3+ times
FREE Resource
Enhance your content in a minute
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hàm f được khai báo f(a, b). Vậy số lượng đối số truyền vào là bao nhiêu?
3
2
1
4
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn chương trình: >>> def f(x,y): z = x + y return x*y*z >>> f(2,2) Chương trình trả về kết quả nào sau đây?
10
16
20
30
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn chương trình: >>>def f(x, y): a = x + y print(a + n) >>>n = 2 >>>f(1,2) Chương trình trả về kết quả nào sau đây?
5
10
2
Chương trình bị lỗi.
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Câu 4. Cho ví dụ sau:
>>>def func(a,b,c):
return a+b+c
>>>m,n=2,7
>>>func(15,m,n)
a). Các đối số của chương trình là 15, m, n
b). Lệnh gọi hàm là func (a,b,c):
c) a, b, c là các đối số
f) nếu ta gọi func(1,2,3) : thì chương trình sẽ thu được kết quả là 20
d). Tên hàm là func
e). nếu ta gọi func (m,n,i) thì chương trình sẽ báo lỗi
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 5. Cho các lệnh sau:
>>>def f(a,b):
m=5*(a+b)
print(m+n)
>>>n = 10
>>>f(2,1)
a). Các giá trị 2,1 là biến cục bộ của chương trình
b) Các biến m, n, a, b là các biến cục bộ của chương trình
c). Kết quả của chương trình là 25
d)Biến n vừa là biến của hàm và không là biến của chương trình chính
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phương thức nào sau đây dùng để thêm phần tử vào list trong python?
abs()
link()
append()
add()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào để duyệt từng phần tử của danh sách?
for
while - for
for kết hợp với lệnh range()
while kết hợp với lệnh range()
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
20 questions
6A.1: Demonstrative Adjectives D'ACCORD 1
Quiz
•
9th - 12th Grade
15 questions
Les Adjectifs Démonstratifs
Quiz
•
9th - 12th Grade
20 questions
Les verbes pronominaux (reflexive verbs)
Quiz
•
9th - 12th Grade
16 questions
Conjugate ¨tener¨: present tense!
Quiz
•
6th - 12th Grade
17 questions
e1 L6.1 saber v. conocer
Quiz
•
9th - 12th Grade
20 questions
Identifiez le verbe conjugué
Quiz
•
5th - 11th Grade
17 questions
E3 - ECUADOR
Quiz
•
9th - 12th Grade
15 questions
¿Cómo te arreglas? - Verbos Reflexivos & Vocabulario
Quiz
•
7th - 12th Grade
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
Discover more resources for World Languages
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
20 questions
Ser vs. Estar
Quiz
•
10th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
20 questions
ser/ir preterite
Quiz
•
10th Grade
20 questions
Preterito indefinido - Regulares / Irregulares
Quiz
•
9th - 12th Grade
19 questions
Gustar and similar verbs
Quiz
•
9th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
25 questions
Preterito regular
Quiz
•
10th - 12th Grade
