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
[Tin 8_Spreadsheet]_Kiểm tra thường xuyên

Quiz
•
8th Grade
21 questions
ÔN TÂP PYTHON TIN 10

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

Quiz
•
8th Grade
20 questions
Thao tác tệp trong C++

Quiz
•
9th - 12th Grade
15 questions
Củng Cố - Biến và lệnh gán trong Python

Quiz
•
10th Grade
20 questions
Bài 11: KIỂU MẢNG MỘT CHỀU

Quiz
•
1st - 10th 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
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Mathematics
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
11 questions
Decimal/fraction conversions quick check

Quiz
•
5th - 7th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University
20 questions
Solving Linear Equations for y

Quiz
•
9th - 12th Grade
11 questions
Graph Match

Quiz
•
9th - 12th Grade
16 questions
Function or Non-Function?

Quiz
•
8th - 10th Grade
20 questions
Math Review

Quiz
•
7th Grade