
Kiến thức về Django
Quiz
•
Information Technology (IT)
•
8th Grade
•
Practice Problem
•
Medium
B22DCCN034 Anh
Used 1+ times
FREE Resource
Enhance your content in a minute
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
Create a free account and access millions of resources
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
10 questions
LOOPS AND FLOW CONTROL STATEMENTS
Quiz
•
8th Grade
15 questions
Khảo Sát Chất Lượng Môn TIN 8
Quiz
•
8th Grade - University
7 questions
Office 365 Program Screen Quiz
Quiz
•
6th - 8th Grade
7 questions
Daniel Popel
Quiz
•
8th Grade
6 questions
Вікторина за логічними виразами у Python
Quiz
•
8th Grade
5 questions
THÔNG TIN TRONG MÁY TÍNH
Quiz
•
6th - 8th Grade
14 questions
IC3_GS6_Level3_Bài 3: Thu hẹp phạm vi tìm kiếm
Quiz
•
8th Grade
15 questions
THI HKI Tin học - Khối 1 và 2
Quiz
•
1st Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Information Technology (IT)
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
15 questions
scatter plots and trend lines
Quiz
•
8th Grade
20 questions
Solving Systems of Equations by Graphing
Quiz
•
8th Grade
20 questions
Christmas Song Emojis
Quiz
•
8th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
