General Questions related to Project
1.Explain your project?
2. Demonstrate the whole application and explain your code?
3.Demo app?
4.Explain database schema?
2.Explain data structures Arrays and Lists?
Ans. 1.List
(i)A list is a collection of items in a single variable.
(ii)You can store different types of data (numbers, strings, etc.) in one list.
(ii)Lists are flexible you can add, remove, or change items easily.
fruits = ["apple", "banana", "cherry"]
2. Array
(i)An array also stores a collection of items, but usually of the same type (like all numbers)
(ii)Arrays are more efficient for math and large numeric data.
(iii)In Python, arrays are available using the array module or NumPy library
use lists when you need versatility, and use arrays when you need speed and performance for numeric data.
----------------------------------------------------------------
What are HTTP Methods?
HTTP methods tell a web server what kind of action to perform on a resource (like a web page or API data).
HTTP methods are the ways a web browser or app communicates with a server to perform different actions. The GET method is used to retrieve data from the server, such as viewing a web page or fetching user information. The POST method is used to send new data to the server, like submitting a form or creating a new account. The PUT method is used to update an existing resource completely, replacing the old data with new data. The PATCH method is similar to PUT but is used to update only part of the data, such as changing just one field in a record. Finally, the DELETE method is used to remove data from the server. Together, these methods form the basic set of operations that allow clients and servers to exchange and manage information on the web.
--------------------------------------------------------------------------
HTML styling?
In HTML, styling is used to make web pages look attractive and well organized. Styling controls how elements like text, images, and buttons appear on the screen such as their color, size, font, and layout. There are three main ways to add style in HTML:
(1) inline styling, where styles are written directly inside an HTML tag using the style attribute; (2)internal styling, where styles are written inside a <style> tag in the HTML <head> section; and (3)external styling, where a separate CSS (Cascading Style Sheets) file is linked to the HTML page using a <link> tag. Among these, external CSS is preferred because it keeps the design separate from the content, making the code cleaner and easier to maintain.
ORM?
ORM (Object Relational Mapping) is a technique that helps developers interact with a database using programming language objects instead of writing SQL queries. It converts data between database tables and objects in code, making database operations easier and faster to manage.
What is a Flask?
Flask is a lightweight web framework in python used to build web applications and APIs. It is simple, flexible, and easy to use because it provides the basic tools to create routes, handle requests, and connect to databases, while allowing developers to add extra features as needed. Flask is often called a micro framework because it doesn’t include unnecessary built in tools, giving developers full control over how their app works.
/home, the app might show the homepage, and when they visit /login, it might display the login page. In frameworks like Flask, routing is done using decorators such as @ app.route('/'), which connects a URL path to a specific function that returns the correct response to the user.
No comments:
Post a Comment