
Python
Authored by Anh Bàn
Fun
1st Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hàm là gì trong Python?
Hàm trong Python là một biến số
Hàm trong Python là một khối mã được xác định một lần và có thể được gọi nhiều lần để thực hiện một tác vụ cụ thể.
Hàm trong Python chỉ có thể được gọi một lần
Hàm trong Python không thể chứa lệnh điều kiện
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Làm thế nào để định nghĩa một hàm trong Python?
Không cần sử dụng từ khóa 'return' để trả về giá trị
Sử dụng từ khóa 'def' để định nghĩa tên hàm, dấu ngoặc đơn chứa tham số, thụt lề cho các câu lệnh bên trong, và từ khóa 'return' để trả về giá trị.
Không cần thụt lề cho các câu lệnh bên trong hàm
Sử dụng từ khóa 'function' để định nghĩa hàm
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Module là gì trong Python?
Module trong Python là một file chứa mã Python, có thể chứa biến, hàm và lớp. Module được sử dụng để tổ chức mã và giúp tái sử dụng mã một cách dễ dàng.
Module trong Python là một loại thư viện âm nhạc
Module trong Python là một hàm toán học
Module trong Python là một loại thẻ HTML
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Làm thế nào để sử dụng một module trong Python?
import numpy
from module import function
import math
use module
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Thư viện turtle trong Python được sử dụng để làm gì?
Để lập trình game
Để xử lý cơ sở dữ liệu
Để thực hiện phép tính toán
Để vẽ đồ họa hoặc đồ thị
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Làm thế nào để vẽ một hình tròn bằng thư viện turtle?
import turtle t = turtle.Turtle() t.circle(200)
import turtle t = turtle.Turtle() t.circle(0)
import turtle t = turtle.Turtle() t.circle(50)
import turtle # Khởi tạo turtle t = turtle.Turtle() # Vẽ hình tròn với bán kính là 100 t.circle(100) # Hiển thị kết quả turtle.done()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Làm thế nào để vẽ một hình vuông bằng thư viện turtle?
import turtle # Khởi tạo con rùa t = turtle.Turtle() # Vẽ hình vuông t.forward(100) t.right(90) t.forward(100) t.right(90) t.forward(100) t.right(90) t.forward(100) t.right(90) turtle.done()
import turtle t = turtle.Turtle() t.forward(100) t.right(120) t.forward(100) t.right(120) t.forward(100) t.right(120) t.forward(100) t.right(120) turtle.done()
import turtle t = turtle.Turtle() t.forward(100) t.right(45) t.forward(100) t.right(45) t.forward(100) t.right(45) t.forward(100) t.right(45) turtle.done()
import turtle t = turtle.Turtle() t.forward(50) t.right(90) t.forward(150) t.right(90) t.forward(50) t.right(90) t.forward(150) t.right(90) turtle.done()
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
15 questions
Marvel & DC
Quiz
•
1st Grade
14 questions
TMNT quiz.
Quiz
•
KG - 12th Grade
17 questions
Encanto Quiz
Quiz
•
KG - Professional Dev...
20 questions
Monsters
Quiz
•
KG - 12th Grade
19 questions
Dog Breeds
Quiz
•
KG - Professional Dev...
17 questions
One Piece
Quiz
•
1st Grade - Professio...
18 questions
Famous people
Quiz
•
KG - University
13 questions
Animals Habitat
Quiz
•
1st Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade