
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
15 questions
Ôn Tập Môn Tin Học Lớp 3
Quiz
•
3rd Grade - University
10 questions
Buổi 1: Giới thiệu link kiện
Quiz
•
6th - 8th Grade
15 questions
Quiz sobre el ornitorrinco y la programación
Quiz
•
8th Grade - University
10 questions
Information Technology Concepts
Quiz
•
8th Grade
9 questions
Увлекательный мир Python
Quiz
•
6th Grade - University
15 questions
IC3_GS6_Level3_Bài 4:Thu hẹp phạm vi tìm kiếm(2)
Quiz
•
8th Grade
10 questions
Lego Spike & Python - Challenge 3 Quiz
Quiz
•
6th - 8th Grade
10 questions
Kiểm tra 15 phút Tin học 6 - HK1
Quiz
•
6th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
15 questions
Graphing Inequalities
Quiz
•
7th - 9th Grade
10 questions
Cell Organelles and Their Functions
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
10 questions
SOL REVIEW 4: Organizational Patterns
Quiz
•
6th - 8th Grade
12 questions
Final Figurative Language Review
Lesson
•
6th - 8th Grade
8 questions
8th U5L20 Volume of Sphere
Quiz
•
8th Grade