
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
7 questions
Imobilizările necorporale
Flashcard
•
KG
10 questions
Key Vocab: Joseph McNeil Interview
Flashcard
•
8th Grade
10 questions
AI for Youth – Machine and Minds
Flashcard
•
8th Grade
6 questions
Subprograme C++
Flashcard
•
10th Grade
9 questions
Chủ đề 11
Flashcard
•
KG
10 questions
ẤN ĐỘ CỔ ĐẠI
Flashcard
•
KG
10 questions
Trắc nghiệm Chủ đề 4
Flashcard
•
10th Grade
10 questions
Luyện tập chủ đề Bệnh truyền nhiễm
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