Flask Flashcards

1
Q

What is URL mapping/routing?

A

The process of determining how a web server response to a request for a specific URL

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

What is a decorator in Python?

A

A function that takes another function as an argument and returns the new function that typically extends or alters the behavior of the original function.

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

Why is POST considered more secure than GET?

A

Because it doesn’t put data in the url parameter.

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

What is the statement placeholder for Jinja2?

A

{% %}

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

What is the expression placeholder for Jinja2?

A

{{ }}

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

What does typing “flask run” in the terminal do?

A

It runs flask

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

What does typing “http-server” in the terminal do?

A

It runs http

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