Web Development Drill
Flask
What is Flask? drill python_web_development
- Answer
- A lightweight web framework for Python.
How do you create a new Flask app? drill python_web_development
- Answer
- Using the `Flask` class and passing the app name to the constructor.
What is the purpose of the `route` decorator in Flask? drill python_web_development
- Answer
- To map a URL to a specific function.
How do you run a Flask app? drill python_web_development
Django
What is Django? drill python_web_development
- Answer
- A high-level web framework for Python.
How do you create a new Django project? drill python_web_development
- Answer
- Using the `django-admin startproject` command.
What is the purpose of the `urls.py` file in Django? drill python_web_development
- Answer
- To define URL patterns for the app.
How do you run a Django app? drill python_web_development
- Answer
- Using the `python manage.py runserver` command.
HTML and CSS
What is HTML? drill python_web_development
- Answer
- HyperText Markup Language, used for structuring content on the web.
What is CSS? drill python_web_development
- Answer
- Cascading Style Sheets, used for styling content on the web.
How do you create a new HTML element? drill python_web_development
How do you style an HTML element with CSS? drill python_web_development
- Answer
- Using CSS selectors and properties.
JavaScript
What is JavaScript? drill python_web_development
- Answer
- A programming language used for client-side scripting on the web.
How do you create a new JavaScript variable? drill python_web_development
- Answer
- Using the `let` or `const` keyword.
What is the purpose of the `console.log` function in JavaScript? drill python_web_development
- Answer
- To print output to the console.
How do you add an event listener to an HTML element with JavaScript? drill python_web_development
- Answer
- Using the `addEventListener` method.
Databases
What is a database? drill python_web_development
- Answer
- A collection of organized data.
What is SQL? drill python_web_development
- Answer
- Structured Query Language, used for managing relational databases.
How do you create a new database table? drill python_web_development
What is an ORM? drill python_web_development
- Answer
- Object-Relational Mapping, a technique for interacting with databases using objects.
APIs
What is an API? drill python_web_development
- Answer
- Application Programming Interface, a set of rules for building software.
What is REST? drill python_web_development
- Answer
- Representational State of Resource, an architectural style for building APIs.
How do you make an API request? drill python_web_development
- Answer
- Using HTTP methods (GET, POST, PUT, DELETE).
What is JSON? drill python_web_development
- Answer
- JavaScript Object Notation, a data format used for exchanging data between systems.