Developing AI Applications with Python and Flask | Week 2
Course Name: Developing AI Applications with Python and Flask
Course Link: Developing AI Applications with Python and Flask
These are Developing AI Applications with Python and Flask Week 2 Answer Coursera Quiz
Module 2 Practice Quiz: Web App Deployment using Flask
Q1. Which of the following methods sends HTML form data to the server?
- POST
- PUT
- HEAD
- GET
Answer: POST
Q2. What is @app.route used for?
- To display an output
- To define a route
- To return the length of an object
- To create a dictionary
Answer: To define a route
These are Developing AI Applications with Python and Flask Week 2 Answer Coursera Quiz
Q3. Which of the following are two objects provided by Flask that are used for each client call? (Select two)
- curl
- Request
- methods
- Response
Answer: Request
Response
Q4. You can use dynamic routes to create ______ endpoints.
- Dynamic
- API
- Object
- RESTful
Answer: RESTful
Q5. When working with a Flask server, what is the code number for a successful response?
- 404
- 403
- 200
- 500
Answer: 200
These are Developing AI Applications with Python and Flask Week 2 Answer Coursera Quiz
Module 2 Graded Quiz: Web App Deployment using Flask
Q1. True or false. The Requests library is designed to simplify the process of sending HTTP requests.
- True
- False
Answer: True
Q2. The decorator takes the path as an ________.
- Route
- Object
- Argument
- Output
Answer: Argument
Q3. What is the @app decorator used to create?
- Python files
- Objects
- Config Objects
- URL handlers
Answer: URL handlers
These are Developing AI Applications with Python and Flask Week 2 Answer Coursera Quiz
Q4. In Flask, what code indicates the success or failure of the request?
- status_code
- content_length
- content_type
- mime-type
Answer: status_code
Q5. In Flask, which code sets the media type of the response?
- status_code
- mime-type
- content_length
- content_type
Answer: mime-type
Q6. What does UUID stand for?
- Unique Unit Identifier
- Unique Universal Identifier
- Universal Unique Identifier
- Unit Unique Identifier
Answer: Universal Unique Identifier
These are Developing AI Applications with Python and Flask Week 2 Answer Coursera Quiz
Q7. Every HTTP response contains a ________-digit code.
- One
- Two
- Three
- Four
Answer: Three
Q8. Flask server automatically returns a ________ OK status when you return from the @app.route method.
- 599
- 404
- 300
- 200
Answer: 200
Q9. Flask is a _________ web framework application that provides users with tools for building web applications.
- Heavyweight
- Medium weight
- Lightweight
- Average weight
Answer: Lightweight
Q10. Which of the following provides web application access?
- Downloadable application
- Virtual machine
- Web browser
- Program
Answer: Web browser
These are Developing AI Applications with Python and Flask Week 2 Answer Coursera Quiz
More Weeks of this course: Click Here
More Coursera Courses: http://progiez.com/coursera