
Kiến thức về Django
Authored by B22DCCN034 Anh
Information Technology (IT)
8th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong kiến trúc MTV của Django, "M" đại diện cho thành phần nào?
Model, dùng để định nghĩa cấu trúc dữ liệu và tương tác với database.
Migration, dùng để đồng bộ hóa các thay đổi của database.
Method, dùng để định nghĩa các phương thức trong View.
Module, dùng để phân chia các thành phần của ứng dụng.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ORM (Object-Relational Mapper) là một công cụ giúp bạn làm gì?
Tự động tạo giao diện người dùng dựa trên Models.
Tương tác với cơ sở dữ liệu bằng các đối tượng và phương thức Python, không cần viết SQL.
Phân tích mối quan hệ giữa các bảng trong database.
Tự động tạo các file migration.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào dùng để quét các thay đổi trong file models.py và tạo ra một file migration mới?
python manage.py migrate
python manage.py makemigrations
django-admin makemigrations
python manage.py createschema
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Sau khi đã chạy makemigrations, bạn cần làm gì để áp dụng các thay đổi đó vào database?
python manage.py savechanges
python manage.py update
python manage.py migrate
Khởi động lại máy chủ phát triển.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để định nghĩa một trường lưu trữ chuỗi ký tự ngắn có giới hạn độ dài, bạn sẽ sử dụng loại Field nào?
models.TextField()
models.IntegerField()
models.CharField(max_length=...)
models.StringField()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Mối quan hệ giữa Model Post và Model User (một User có nhiều Post) được định nghĩa bằng loại Field nào trong models.py?
models.OneToOneField
models.ForeignKey
models.ManyToManyField
models.RelationshipField
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong file models.py, một Model phải kế thừa từ lớp nào?
django.db.models.Field
django.db.models.Model
django.views.generic.View
django.db.models.Objects
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
12 questions
Ulangan Harian Bekerja dengan Data Terstruktur
Quiz
•
8th Grade
15 questions
Variables, tipos de datos y operadores
Quiz
•
8th Grade
15 questions
GS6_LevelBài 29: Giới thiệu về chương trình Microsoft PowerPoint
Quiz
•
8th Grade
10 questions
TIN HỌC 8/2
Quiz
•
8th Grade
13 questions
AR and VR Developments
Quiz
•
8th Grade
10 questions
Câu hỏi bài 2 Tìm kiếm thông tin trên web
Quiz
•
5th Grade - University
15 questions
Python Data Structures
Quiz
•
6th - 8th Grade
15 questions
Quiz về Kiểu Dữ Liệu List và Set (1)
Quiz
•
7th Grade - University
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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
7th grade ELA Vocabulary Review
Quiz
•
7th - 8th Grade
22 questions
Phases of the moon
Quiz
•
8th Grade
10 questions
Cell Organelles and Their Functions
Interactive video
•
6th - 10th Grade
14 questions
finding slope from a graph
Quiz
•
8th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
7 questions
Path and Ortho Greek bases
Quiz
•
6th - 8th Grade
20 questions
Relative Pronouns
Quiz
•
4th - 8th Grade
8 questions
8th U6L1: Organizing Data
Quiz
•
8th Grade