Loading...
QUIZ

Certification Test

 
Que No. 1 ) What is the role of the request and response objects in Flask?

A.) To manage the Flask application's state
B.) To represent the HTTP request and response, respectively
C.) To configure server settings
D.) To serve static files


Que No. 2 ) How can you install Flask in a Python project?

A.) By downloading it from the Flask website
B.) Using the pip install flask command
C.) By copying and pasting the Flask code into your project
D.) Flask is included by default in Python


Que No. 3 ) What is Flask's built-in server called for development purposes?

A.) Apache
B.) Nginx
C.) Gunicorn
D.) Werkzeug


Que No. 4 ) What is the purpose of the app.run() method in Flask?

A.) To configure SSL certificates
B.) To start the Flask application and listen for incoming requests
C.) To define routes
D.) To serve static files


Que No. 5 ) What is the role of the render_template function in Flask?

A.) To handle database queries
B.) To define route handlers
C.) To render HTML templates
D.) To manage sessions


Que No. 6 ) What is Flask's built-in mechanism for handling form submissions?

A.) form-parser
B.) request-parser
C.) flask-forms
D.) request.forms


Que No. 7 ) What is the purpose of the redirect function in Flask?

A.) To serve static files
B.) To send a 404 error response
C.) To configure SSL certificates
D.) To perform URL redirection


Que No. 8 ) Which module is commonly used with Flask for handling database operations?

A.) sqlite
B.) flask-db
C.) sqlalchemy
D.) database-handler


Que No. 9 ) What is the purpose of the session object in Flask?

A.) To manage the Flask application's state
B.) To serve static files
C.) To configure server settings
D.) To store session data across requests


Que No. 10 ) Which module is used for creating and managing authentication in Flask applications?

A.) flask-auth
B.) passlib
C.) passlib flask-login
D.) auth-handler