Test Your Flask Knowledge – 20 Questions with Answers The test begins as soon as you click the Start button. You may continue working until the time limit expires. When the time is up, your test will be submitted automatically, whether you have finished or not. Please manage your time carefully and review your answers before the deadline.When your time is up, your test will be submitted automatically, whether you have finished answering or not. Please manage your time wisely. Flask quizAre you ready to test your knowledge of the Flask web framework? This quiz contains 20 carefully crafted questions, ranging from easy basics to advanced concepts, covering everything from routes and templates to Flask extensions and session management. 1 / 201. What is Flask called because it does not include ORM or form validation by default? 1. Full-stack framework 2. Microframework 3. Library 4. Middleware 2 / 202. How do you run Flask on a custom port? 1. flask run -p 8080 2. flask run port=8080 3. app.run(port=8080) 4. Both a and c 3 / 203. How do you return JSON data from a Flask route? 1. return json(data) 2. return jsonify(data) 3. return data.json() 4. return json.dumps(data) 4 / 204. How do you redirect to another route in Flask? 1. redirect('/home') 2. go_to('/home') 3. route('/home') 4. app.redirect('/home') 5 / 205. Which object is used for session handling in Flask? 1. request 2. session 3. cookies 4. app 6 / 206. Which object handles form and query data in Flask? 1. response 2. session 3. form 4. request 7 / 207. How do you pass variables from Flask to HTML templates? 1. Using render_template('file.html', var=value) 2. Using send_file() 3. Using request.form() 4. Using app.variable() 8 / 208. Where do you store CSS and JS files in Flask? 1. static 2. templates 3. assets 4. public 9 / 209. Where are Flask templates usually stored? 1. static 2. templates 3. views 4. html 10 / 2010. What is render_template() used for? 1. To run the server 2. To render HTML templates 3. To handle GET requests 4. To create a Flask app 11 / 2011. Which method handles POST requests? 1. @app.get() 2. @app.route() 3. @app.post_route() 4. @app.post() 12 / 2012. Which method handles GET requests in Flask? 1. @app.post() 2. @app.put() 3. @app.get() 4. @app.route(method='GET') 13 / 2013. How do you enable debug mode in Flask? 1. app.debug = True 2. debug = app(True) 3. app.set_debug(True) 4. flask.debug() 14 / 2014. What is the default port Flask runs on? 1. 5000 2. 8000 3. 3000 4. 8080 15 / 2015.How do you start a Flask server? 1. python flask run 2. flask run 3. python app.run 4. python start flask 16 / 2016. Which decorator is used to define a route in Flask? 1. @app.url() 2. @app.path() 3. @app.route_path() 4. @app.route() 17 / 2017. How do you create a Flask app object? 1. app = Flask() 2. app = Flask(__name__) 3. app = flask() 4. app = Flask(app) 18 / 2018. Which file is the entry point of a Flask application? 1. app.py 2. run.py 3. main.py 4. index.html 19 / 2019. Which command installs Flask? 1. pip install flask 2. pip install FlaskFramework 3. pip install python-flask 4. python install flask 20 / 2020. What is Flask in Python? 1. A web framework 2. A database 3. A frontend library 4. A testing tool Your score isThe average score is 0% 0% Restart quiz