Lecture 9:Back-End Flashcards

1
Q

What does @ symbol do in Python?

A

it is called a decorator, which modifies a function.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

We use Flask as

A

Frame work and library

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

To share code between files and HTML pages we use

A

Flask template which actually written in language called Jinja

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

MVS framework is an acronym of?

A

M: model is our application’s data, such as a SQL database or CSV file
V: view includes templates and visuals for the user interface, like the HTML and CSS.
C: controller contains our “business logic”, code that manages our application overall, given user input. In Flask, this will be our Python code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the difference between Session and Cookie?

A

1-Sessions are server-side files that include user data. It begin when the user logs in to a specific network application and ends when the user logs out. The information remain secure since it is saved in binary or encrypted form

2-cookies are a small text file that is saved on the user’s computer whenever the user first visits a website, The maximum file size for a cookie is 4KB and it is not secure since it is kept on the client-side in a text format that anybody can see

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what is JSON? and its advantages?

A

JavaScript Object Notation
it is a way to store and transmit structured data in a simplified and text-based format like CSV but with more modern tools based on JavaScript. The powerful thing is that it is human and machine-readable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly