Câu lệnh return dùng để?
Python level 2

Quiz
•
Mathematics, Computers
•
7th - 12th Grade
•
Hard
duy Nguyen
Used 27+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Quizizz
20 questions
Bài TX1 - HK2 - Tin học 11

Quiz
•
11th Grade
20 questions
Bài 13 Biểu diễn dữ liệu

Quiz
•
8th Grade
22 questions
Tuần 26- Ôn tập Python - Trắc nghiệm

Quiz
•
10th Grade
15 questions
Ôn tập HK2 Python 10

Quiz
•
10th Grade
21 questions
C++Bien_pheptoan_CB

Quiz
•
1st Grade - University
20 questions
Kiến thức về Thuật toán và Chương trình

Quiz
•
8th Grade - University
19 questions
TIN HỌC 8 - CĐ6

Quiz
•
8th Grade
20 questions
KIỂM TRA TIN HỌC CHK2

Quiz
•
4th Grade - University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Mathematics
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
15 questions
Volume Prisms, Cylinders, Cones & Spheres

Quiz
•
8th Grade
14 questions
One Step Equations

Quiz
•
5th - 7th Grade
37 questions
7th Grade Summer Recovery Review

Quiz
•
7th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
10 questions
Area and Circumference of a Circle

Quiz
•
7th Grade
12 questions
Scatterplots and Trendlines

Quiz
•
8th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade