

Kiến thức lập trình cơ bản
Flashcard
•
Information Technology (IT)
•
10th Grade
•
Practice Problem
•
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
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
10 questions
Seasonal Menu
Flashcard
•
KG
5 questions
QUÝT THAM
Flashcard
•
KG
5 questions
Ôn tập Tiếng Nhật h101/bài 2
Flashcard
•
KG
6 questions
機械設計部向けのテスト
Flashcard
•
KG - University
6 questions
Tìm hiểu khóa học tiếng Đức
Flashcard
•
KG
7 questions
Digital Citizenship
Flashcard
•
KG
7 questions
Python - Flow control
Flashcard
•
11th Grade
10 questions
Minecraft
Flashcard
•
KG
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
10 questions
Cell Organelles and Their Functions
Interactive video
•
6th - 10th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade
22 questions
El Imperfecto
Quiz
•
9th - 12th Grade
20 questions
Grammar
Quiz
•
9th - 12th Grade
12 questions
Equation of a Circle
Lesson
•
10th Grade
18 questions
Mendelian Genetics
Quiz
•
10th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade