
B28.3-Tin10
Authored by TRUC Ng
Instructional Technology
12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đoạn chương trình sau có lỗi không?
>>>m, n = 10, 4
>>>def f(a):
>>> k = n + m + a
>>> return k
>>>f(5)
Có lỗi tại dòng lệnh def f(a):.
Không có lỗi.
Có lỗi tại dòng lệnh return k.
Đáp án khác.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Giá trị của x, y là bao nhiêu khi thực hiện lệnh f(1, 3)
>>> x, y = 3, 4
>>> def f(x, y):
x = x + y
y = y + 2
return x
2, 3.
4, 5.
5, 4.
3, 4.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đâu là chương trình đúng khi hàm với đầu vào là lis
def Select(A,x): B = [] for k in range(len(A)): if A[k] >= x: B.append(A[k]) Return B
def Select(A,x): B = [] for k in range(len(A)): if A[k] >= x: B.append(A[k]) Return B
def Select(A,x): B = [] for k is range(len(A)): if A[k] >= x: B.append(A[k]) Return B
def Select(A,x) B = [] for k in range(len(A)): if A[k] >= x: B.append(A[k]) Return B
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho biết kết quả của chương trình sau:
def changeme(mylist):
mylist.append([1,2,3,4])
mylist = [10,20,30]
changeme( mylist)
print(mylist)
[10, 20, 30].
[10, 20, 30, 1, 2, 3, 4].
[1, 2, 3, 4].
[10, 20, 30, [1, 2, 3, 4]].
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của chương trình sau là bao nhiêu?
s = "Hôm nay tôi đi học "
def kq(name):
s = "Hello World"
s = s + "!!!"
return s
print(s)
"Hôm nay tôi đi học ".
"Hello World".
"Hello World!!!".
Chương trình bị lỗi.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của chương trình sau là:
def add(x,y):
print(x+y)
x=15
add(x ,10)
add(x,x)
y=20
add(x,y)
25, 35, 30.
35, 30, 25.
25, 30, 35.
Chương trình bị lỗi.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python biến được khai báo và sử dụng bên trong một hàm được gọi là gì?
Biến địa phương.
Biến riêng.
Biến tổng thể.
Biến thông thường.
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
11 questions
Typography
Quiz
•
12th Grade
9 questions
Bài 26: ĐỘNG CƠ KHÔNG ĐỒNG BỘ BA PHA
Quiz
•
12th Grade
13 questions
TUNE UP KONVENSIONAL
Quiz
•
11th - 12th Grade
13 questions
Principios de programación P2
Quiz
•
12th Grade
10 questions
Defensive Design/ Robust Coding
Quiz
•
9th Grade - University
11 questions
Programación: Protocolos de Comunicación en Arduino 2
Quiz
•
12th Grade
15 questions
Actividad #1 - Programación 4tos - 2B 2021
Quiz
•
1st - 12th Grade
15 questions
RESISTORS
Quiz
•
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