QUIZ1

QUIZ1

University

15 Qs

quiz-placeholder

Similar activities

Untitled Quiz

Untitled Quiz

University

15 Qs

Flutter Quiz#1

Flutter Quiz#1

University

20 Qs

Lecture 3 - Views & Urls

Lecture 3 - Views & Urls

University

20 Qs

Python Challenge

Python Challenge

University

15 Qs

JavaEE-servlets-jsp

JavaEE-servlets-jsp

University

11 Qs

Desenvolvimento Mobile

Desenvolvimento Mobile

University

15 Qs

Desarrollo Web Integral  Examen 3 Parcial - Remedial

Desarrollo Web Integral Examen 3 Parcial - Remedial

University

15 Qs

Matplotlib Quiz Class 12th

Matplotlib Quiz Class 12th

12th Grade - University

20 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?