1. Can flask routes return the boolean values?
Ans. Yes, Flask routes can return boolean values (True or False).
"True" or "False") in the HTTP response since all responses must be text or JSON.If you want to return a real boolean for an API, use josnify(True/False)
2. What is cell padding and cell spacing?
Ans.
Cell padding is the space inside a table cell, between the cell’s content and its border.
Cell spacing is the space between the borders of two cells in a table.example:-
Cell padding → space inside the cell (content ↔ border).
Cell spacing → space between cells (border ↔ border).
3. How many ways can we store the data on the client side?
Ans.
There are three main ways to store data on the client side:
-
Cookies – small pieces of data stored by the browser and sent with every request.
-
Local Storage – stores data permanently in the browser (until manually cleared).
-
Session Storage – stores data temporarily for a single browser session (cleared when the tab is closed)
4.What is git and VCS?
Ans.
Git is a tool that helps track changes in your code and manage different versions of your project.
VCS (Version Control System) is a system that allows multiple people to work on the same project, keep track of changes, and go back to earlier versions if needed — Git is one example of a VCS.Example:-
Git example:
You make changes to your project and run
You make changes to your project and run
git commit -m "Added login feature" — Git saves that version so you can go back to it later if needed.VCS example:
A team uses a VCS (like Git) to work on the same code. Each member can edit files, track changes, and merge updates without losing anyone’s work.
A team uses a VCS (like Git) to work on the same code. Each member can edit files, track changes, and merge updates without losing anyone’s work.
No comments:
Post a Comment