1/23
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
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. 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. 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. Which of the following is an example of a CMS?
A. Django
B. Flask
C. WordPress
D. React
C — WordPress
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. 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. Django is built with which programming language?
A. PHP
B. Python
C. Ruby
D. Java
B — Python
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. 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. 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. Which of the following is NOT a common middleware function?
A. Logging
B. Caching
C. Compression
D. HTML styling
D — HTML styling
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. 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. Which tag in HTML defines the start and end of a web document?
A. <body>
B. <html>
C. <head>
D. <meta>
B — <html>
15. In HTML, the <img> tag requires which key attribute?
A. link
B. src
C. url
D. path
B — src
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. 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. 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. 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. 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
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
12. Which part of Django handles user requests and responses?
A. Model
B. View
C. Template
D. Database
B — View
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
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