
Python

Quiz
•
Fun
•
1st Grade
•
Easy
Anh Bàn
Used 1+ times
FREE Resource
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()
Create a free account and access millions of resources
Similar Resources on Wayground
18 questions
"Slowly, Slowly,Slowly,'" said the Sloth

Quiz
•
1st - 4th Grade
18 questions
Miraculous Ladybug Expert S1-S3

Quiz
•
1st Grade - University
15 questions
ZOOMANJI- NATURE TRIVIA (ROUND 1)

Quiz
•
KG - University
17 questions
The Legend of Korra

Quiz
•
KG - Professional Dev...
15 questions
Adopt Me Quiz

Quiz
•
KG - 12th Grade
23 questions
python minecraft until lesson 6

Quiz
•
1st Grade
15 questions
Test Chân Thân

Quiz
•
1st Grade - Professio...
22 questions
animals

Quiz
•
KG - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade