
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
Lịch sử Đảng Cộng sản Việt Nam

Flashcard
•
KG
8 questions
Flashcards for Animals in Vietnamese

Flashcard
•
KG
10 questions
TIN 10 CHỦ ĐỀ F CẤU TRÚC LẶP

Flashcard
•
11th Grade
6 questions
R093

Flashcard
•
10th Grade
10 questions
SỰ PHÁT TRIỂN TỪ VỰNG

Flashcard
•
9th Grade
6 questions
Comprehension Questions

Flashcard
•
9th - 12th Grade
9 questions
Python Review 5/23

Flashcard
•
9th - 12th Grade
6 questions
Gốm Việt - Tinh hoa đất trời

Flashcard
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
10 questions
Impact of 9/11 and the War on Terror

Interactive video
•
10th - 12th Grade
21 questions
Lab Safety

Quiz
•
10th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
6 questions
Biography

Quiz
•
4th - 12th Grade