Web Development & Django Concepts

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/23

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

24 Terms

1
New cards

1. Early versions of the web (Web 1.0) were mostly:
A. Interactive and user-driven
B. Static and manually coded pages
C. Focused on social media and sharing
D. Cloud-hosted and scalable

B — Static and manually coded pages

2
New cards

2. One major problem with early manual web development was:
A. Too much automation
B. Lack of customization options
C. It was redundant, not scalable, and less secure
D. No way to use HTML

C — It was redundant, not scalable, and less secure

3
New cards

3. What is a Content Management System (CMS) mainly used for?
A. Writing code manually for every web page
B. Managing and publishing content without coding
C. Building only single-page applications
D. Handling server deployment

B — Managing and publishing content without coding

4
New cards

4. Which of the following is an example of a CMS?
A. Django
B. Flask
C. WordPress
D. React

C — WordPress

5
New cards

5. Compared to CMS, Web Frameworks are better suited for:
A. Small companies wanting quick websites
B. Building custom, complex web applications
C. Managing static HTML content
D. Hosting pre-built blog pages

B — Building custom, complex web applications

6
New cards

6. What is the main reason developers use web frameworks?
A. To manually write all backend code
B. To simplify development by using pre-built functions and structure
C. To replace HTML and CSS
D. To remove the need for databases

B — To simplify development by using pre-built functions and structure

7
New cards

7. Django is built with which programming language?
A. PHP
B. Python
C. Ruby
D. Java

B — Python

8
New cards

8. Django follows which design pattern?
A. Model-View-Controller (MVC)
B. Model-View-Template (MVT)
C. Controller-Model-Template (CMT)
D. Template-Model-Controller (TMC)

B — Model-View-Template (MVT)

9
New cards

9. In Django’s MVT architecture, the View is responsible for:
A. Handling user requests and returning responses
B. Storing data and relationships
C. Rendering HTML directly
D. Defining CSS and JavaScript

A — Handling user requests and returning responses

10
New cards

10. What does middleware in Django do?
A. Manages frontend user interfaces
B. Intercepts and modifies requests and responses
C. Compiles Python code
D. Encrypts only the database

B — Intercepts and modifies requests and responses

11
New cards

11. Which of the following is NOT a common middleware function?
A. Logging
B. Caching
C. Compression
D. HTML styling

D — HTML styling

12
New cards

12. Authentication in Django means:
A. Verifying if a user is logged in
B. Determining what a user can access
C. Encrypting database data
D. Managing server connections

A — Verifying if a user is logged in

13
New cards

13. Authorization in Django refers to:
A. Checking login credentials
B. Giving or denying permission to access certain resources
C. Sending user emails
D. Redirecting URLs

B — Giving or denying permission to access certain resources

14
New cards

14. Which tag in HTML defines the start and end of a web document?
A. <body>
B. <html>
C. <head>
D. <meta>

B — <html>

15
New cards

15. In HTML, the <img> tag requires which key attribute?
A. link
B. src
C. url
D. path

B — src

16
New cards

16. What does HTTP stand for?
A. HyperText Transfer Protocol
B. HyperTool Transfer Program
C. HighTech Transmission Process
D. Host Text Transport Protocol

A — HyperText Transfer Protocol

17
New cards

17. Which part of an HTTP message contains information like browser type and accepted formats?
A. Body
B. Header
C. Method
D. Footer

B — Header

18
New cards

18. What is the purpose of an HTTP request?
A. To send information from the server to the client
B. To retrieve or submit data from the client to the server
C. To store data locally
D. To compress server files

B — To retrieve or submit data from the client to the server

19
New cards

19. A URL uniquely identifies:
A. A line of code
B. A web server
C. A specific resource on a web server
D. A computer’s IP address

C — A specific resource on a web server

20
New cards

20. Why is Django considered “high-level”?
A. It hides low-level details and provides built-in features like authentication, ORM, and templates
B. It only works with Python 3.12+
C. It focuses only on frontend design
D. It is limited to simple static pages

A — It hides low-level details and provides built-in features like authentication, ORM, and templates

21
New cards

11. In MVC, what is the role of the Controller?
A. Stores and retrieves data
B. Displays the visual output
C. Receives input and updates the Model or View accordingly
D. Manages file storage and security

C — Receives input and updates the Model or View accordingly

22
New cards

12. Which part of Django handles user requests and responses?
A. Model
B. View
C. Template
D. Database

B — View

23
New cards

9. In Django’s MVT architecture, what does the Template do?
A. Handles database queries
B. Contains the business logic
C. Defines how data is presented to the user
D. Controls routing between pages

C — Defines how data is presented to the user

24
New cards

10. Which of the following best describes the Model in MVC architecture?
A. Manages the data and business logic of the application
B. Displays information to the user
C. Handles user input and routes it to the system
D. Defines the structure of HTML templates

A — Manages the data and business logic of the application