
Kiến thức lập trình cơ bản
Flashcard
•
Information Technology (IT)
•
10th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

7 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Kết quả của đoạn mã sau là gì?
x = 10
def my_function():
x = 5
print(x)
my_function()
print(x)
Back
5 10
2.
FLASHCARD QUESTION
Front
Điều gì xảy ra khi chạy đoạn mã sau?
y = 20
def change_y():
y = y + 5
print(y)
change_y()
Back
Error occurs
3.
FLASHCARD QUESTION
Front
To change the value of the global variable a in a function, what do we need to do?
Back
Use the global keyword a before assigning a value
4.
FLASHCARD QUESTION
Front
Kết quả của đoạn mã sau là gì?
def my_func():
a = 3
print(a)
my_func()
print(a)
Back
Error occurs
5.
FLASHCARD QUESTION
Front
Kết quả của đoạn mã sau là gì?
b = 7
def test():
global b
b = 12
test()
print(b)
Back
12
6.
FLASHCARD QUESTION
Front
When should we use global variables instead of local variables?
Back
When we need to share data between multiple functions
7.
FLASHCARD QUESTION
Front
Đoạn mã sau in ra kết quả gì?
c = 8
def show():
print(c)
show()
Back
8
Similar Resources on Wayground
10 questions
Print Culture in the Modern World
Flashcard
•
9th - 12th Grade
10 questions
Thành Tựu Về Tư Tưởng, Tôn Giáo
Flashcard
•
10th Grade
5 questions
Củng cố Đạo hàm
Flashcard
•
11th Grade
10 questions
Cuộc cách mạng của Hồ Quý Ly và Triều Hồ
Flashcard
•
KG
5 questions
[TUR] Python NEW_М1L2
Flashcard
•
KG
3 questions
Đường thẳng và mặt phẳng song song
Flashcard
•
11th Grade
2 questions
Tùy bút
Flashcard
•
10th Grade
4 questions
Phong cách giao dịch chuẩn
Flashcard
•
KG
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
10 questions
Halloween Trivia Challenge
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade