Python level 2
Quiz
•
Mathematics, Computers
•
7th - 12th Grade
•
Hard
duy Nguyen
Used 28+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh return dùng để?
Kết thúc vòng lặp
Trả lại giá trị
Kết thúc vòng lặp và trả lại giá trị
Kết thúc hàm và trả lại giá trị
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đâu là cú pháp của truyền nhiều tham số trong hàm?
def <tên hàm>(*biến):
Câu lệnh
...
def <tên hàm>(x=0,y=3):
Câu lệnh
...
def <tên hàm>(a,b)
Câu lệnh
...
def <tên hàm>(a)
Câu lệnh
...
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Tác dụng của hàm là gì?
Chỉ cần viết 1 lần
Có thể sử dụng lại
Cập nhật nhanh gọn
Chỉ cần viết 1 lần,Có thể sử dụng lại,Cập nhật nhanh gọn
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh global dùng để làm gì
Khai báo biến nội bộ
Khai báo biến toàn cầu
Khai báo biến trong hàm
Khai báo lại giá trị biến
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong học phần 2 có bao nhiêu cách khai báo module?
1
2
3
4
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để random ra số thực ngầu nhiên ta dùng cú pháp nào?
import random
random.randint(số thứ 1, số thứ 2)
import random
random.randrange(số thứ 1, số thứ 2)
import random
random.uniform(số thứ 1, số thứ 2)
import random
random.choice(số thứ 1, số thứ 2)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Nếu gọi module math vào bằng cách:
from math import*
Hãy tìm câu lệnh để viết ra phép căn 9
math.sqrt(9)
sqrt(9)
math.sprt(9)
sprt(9)
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
ôn tập học kì 2 môn tin 7
Quiz
•
7th Grade
15 questions
Ôn tập kỳ 2 tin 6
Quiz
•
1st - 12th Grade
20 questions
ÔN TẬP TIN 9 GIỮA KÌ 2
Quiz
•
12th Grade - University
20 questions
CẤP SỐ CỘNG VÀ CẤP SỐ NHÂN
Quiz
•
11th Grade
15 questions
TIN 9 ĐỀ 2
Quiz
•
9th Grade
20 questions
Ôn tập chủ đề F
Quiz
•
11th Grade
20 questions
JSA10
Quiz
•
11th Grade
20 questions
k7. Bài 12. Sử dụng ảnh minh họa .....
Quiz
•
7th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Mathematics
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
16 questions
Adding and Subtracting Integers
Quiz
•
7th Grade
24 questions
3.1 Parallel lines cut by a transversal
Quiz
•
8th Grade
14 questions
One Step Equations
Quiz
•
5th - 7th Grade
12 questions
Graphing Inequalities on a Number Line
Quiz
•
9th Grade
13 questions
Analyze Proportional Relationships and Their Applications
Quiz
•
7th Grade
13 questions
Solving Two-Step Equations
Quiz
•
7th Grade
20 questions
Slope from a Graph
Quiz
•
8th Grade
