QUIZ1

QUIZ1

University

15 Qs

quiz-placeholder

Similar activities

Lecture 4 - Django Templates

Lecture 4 - Django Templates

University

15 Qs

Software Development

Software Development

University

15 Qs

ITP1 Week 14 Recap

ITP1 Week 14 Recap

University

15 Qs

Вопросы по C# от Naviuki

Вопросы по C# от Naviuki

University

12 Qs

User Research (Binus University)

User Research (Binus University)

University

12 Qs

Curso de Videovigilancia

Curso de Videovigilancia

University

12 Qs

Introducción Django

Introducción Django

University

19 Qs

Post Test PKM Robotika App Inventor

Post Test PKM Robotika App Inventor

University

10 Qs

QUIZ1

QUIZ1

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

Gatera Antoine

Used 3+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What command is used to create a new Django project?

django-admin startproject projectname
startproject django-admin projectname
django-admin newproject projectname
django create project projectname

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which file is used to define the settings and configurations of a Django project?

app.yaml
settings.json
config.py
settings.py

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What command is used to create a new Django app?

django create app
python manage.py startapp
manage.py newapp
python startapp

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which file contains the app configuration in a Django app?

views.py
urls.py
apps.py
settings.py

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of models.py in a Django app?

The primary purpose of models.py in a Django app is to define the data models.
To define URL routing in a Django app.
To manage static files in a Django app.
To handle user authentication in a Django app.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the role of views.py in a Django app?

views.py is responsible for managing the database.
views.py handles user authentication and authorization.
The role of views.py in a Django app is to define the logic for handling requests and returning responses.
views.py is used for defining URL patterns in the app.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command creates migration files for changes in models?

makemigrations
update_migrations
generate_migrations
create_migrations

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?