QUIZ1

QUIZ1

University

15 Qs

quiz-placeholder

Similar activities

Introduction to Python Programming

Introduction to Python Programming

University

20 Qs

Post Test PKM Robotika App Inventor

Post Test PKM Robotika App Inventor

University

10 Qs

Mastering Express JS Concepts

Mastering Express JS Concepts

12th Grade - University

15 Qs

Quiz 1 | Information Security | Kali Linux Commands

Quiz 1 | Information Security | Kali Linux Commands

University

20 Qs

Lecture 5 - Django Forms

Lecture 5 - Django Forms

University

15 Qs

Pengenalan Aplikasi AppSheet

Pengenalan Aplikasi AppSheet

11th Grade - University

15 Qs

Quiz Informatika

Quiz Informatika

11th Grade - University

20 Qs

Lecture  2 - Models

Lecture 2 - Models

University

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