🌍 All Study Guides📊 Dashboard📰 Blog💡 About
IBM Applied AI to IBM AI Developer Professional Certificate • STUDY MODE

PRACTICE QUIZ

QUESTION 1 OF 34

Which of the following methods sends HTML form data to the server? Explanation! POST request is used to send data to the server.

A
HEAD
B
POSTCorrect Answer
C
PUT
D
GET
QUESTION 2 OF 34

What is @app.route used for? Explanation! The @app.route decorator is used to define a route. The decorator takes the path as an argument.

A
To define a routeCorrect Answer
B
To display an output
C
To create a dictionary
D
To return the length of an object
QUESTION 3 OF 34

Which of the following are two objects provided by Flask that are used for each client call? (Select two) Explanation! Flask provides a Request and a Response object for each client call.

A
ResponseCorrect Answer
B
methods
C
RequestCorrect Answer
D
curl
QUESTION 4 OF 34

You can use dynamic routes to create ______ endpoints. Explanation! You can use dynamic routes to create RESTful endpoints.

A
API
B
RESTfulCorrect Answer
C
Object
D
Dynamic
QUESTION 5 OF 34

When working with a Flask server, what is the code number for a successful response? Explanation! A successful response with a status code of 200 will be sent back when the given code executes.

A
404
B
200Correct Answer
C
500
D
403
QUESTION 6 OF 34

True or false. The Requests library is designed to simplify the process of sending HTTP requests. Explanation! The Requests library is designed to simplify the process of sending HTTP requests.

A
TrueCorrect Answer
B
False
QUESTION 7 OF 34

The decorator takes the path as an __________. Explanation! The decorator takes the path as an argument.

A
Output
B
Route
C
Object
D
ArgumentCorrect Answer
QUESTION 8 OF 34

What is the @app decorator used to create? Explanation! Use the @app decorator to create URL handlers.

A
URL handlersCorrect Answer
B
Objects
C
Python files
D
Config Objects
QUESTION 9 OF 34

In Flask, what code indicates the success or failure of the request? Explanation! The status_code indicates the success or failure of the request.

A
content_type
B
content_length
C
mime-type
D
status_codeCorrect Answer
QUESTION 10 OF 34

In Flask, which code sets the media type of the response? Explanation! The mime-type sets the media type of the response.

A
status_code
B
content_length
C
mime-typeCorrect Answer
D
content_type
QUESTION 11 OF 34

What does UUID stand for? Explanation! UUID stands for Universal Unique Identifier.

A
Unique Universal Identifier
B
Universal Unique IdentifierCorrect Answer
C
Unique Unit Identifier
D
Unit Unique Identifier
QUESTION 12 OF 34

Every HTTP response contains a _________-digit code. Explanation! Every HTTP response contains a three-digit code indicating different error and success statuses.

A
One
B
Two
C
ThreeCorrect Answer
D
Four
QUESTION 13 OF 34

Flask server automatically returns a ______ OK status when you return from the @app.route method. Explanation! Error codes from 200 to 299 indicate the request has been received and the requested operation is successful.

A
300
B
200Correct Answer
C
599
D
404
QUESTION 14 OF 34

Flask is a _______ web framework application that provides users with tools for building web applications. Explanation! Flask is considered lightweight because it comes with fewer features than other frameworks.

A
Heavyweight
B
LightweightCorrect Answer
C
Medium weight
D
Average weight
QUESTION 15 OF 34

Which of the following provides web application access? Explanation! A web application is a software or program accessible through a web browser.

A
Virtual machine
B
Downloadable application
C
Program
D
Web browserCorrect Answer
QUESTION 16 OF 34

Which of the following companies uses Speech Recognition technology acquired from IBM in the past?

A
Google
B
Microsoft
C
Apple
D
NuanceCorrect Answer
QUESTION 17 OF 34

Which of the following services enables SMS- and Voice-based communication via REST API?

A
IBM Voice Gateway
B
TwilioCorrect Answer
QUESTION 18 OF 34

What type of file did we ask Text to Speech return?

A
wavCorrect Answer
B
webm
QUESTION 19 OF 34

How were the service functions chained?

A
speak_text(message_assistant(recognize_audio()))Correct Answer
B
recognize_audio(message_assistant(speak_text()))
QUESTION 20 OF 34

Which of the following methods sends HTML form data to the server?

A
HEAD
B
POSTCorrect Answer
C
PUT
D
GET
QUESTION 21 OF 34

What is @app.route used for?

A
To define a routeCorrect Answer
B
To display an output
C
To create a dictionary 
D
To return the length of an object
QUESTION 22 OF 34

Which of the following are two objects provided by Flask that are used for each client call? (Select two) 

A
Response  Correct Answer
B
methods
C
Request  Correct Answer
D
curl
QUESTION 23 OF 34

You can use dynamic routes to create ______ endpoints.

A
API
B
RESTfulCorrect Answer
C
Object
D
Dynamic
QUESTION 24 OF 34

When working with a Flask server, what is the code number for a successful response?

A
404
B
200Correct Answer
C
500
D
403
QUESTION 25 OF 34

True or false. The Requests library is designed to simplify the process of sending HTTP requests.

A
TrueCorrect Answer
B
False 
QUESTION 26 OF 34

The decorator takes the path as an __________.

A
Output 
B
Route
C
Object
D
ArgumentCorrect Answer
QUESTION 27 OF 34

What is the @app decorator used to create?

A
URL handlersCorrect Answer
B
Objects
C
Python files
D
Config Objects
QUESTION 28 OF 34

In Flask, what code indicates the success or failure of the request?

A
content_type
B
content_length
C
mime-type
D
status_codeCorrect Answer
QUESTION 29 OF 34

In Flask, which code sets the media type of the response?

A
status_code
B
content_length
C
mime-typeCorrect Answer
D
content_type
QUESTION 30 OF 34

What does UUID stand for?

A
Unique Universal Identifier
B
Universal Unique IdentifierCorrect Answer
C
Unique Unit Identifier 
D
Unit Unique Identifier 
QUESTION 31 OF 34

Every HTTP response contains a _________-digit code.

A
One
B
Two
C
ThreeCorrect Answer
D
Four
QUESTION 32 OF 34

Flask server automatically returns a ______ OK status when you return from the @app.route method.

A
300
B
200Correct Answer
C
599
D
404
QUESTION 33 OF 34

Flask is a _______ web framework application that provides users with tools for building web applications.

A
Heavyweight
B
LightweightCorrect Answer
C
Medium weight
D
Average weight
QUESTION 34 OF 34

Which of the following provides web application access?

A
Virtual machine
B
Downloadable application
C
Program
D
Web browserCorrect Answer
E
Google Advanced Data Analytics
F
Google Cybersecurity Professional Certificate
G
Meta Marketing Analytics Professional Certificate
H
Google Digital Marketing & E-commerce Professional Certificate
I
Google UX Design Professional Certificate
J
Meta Social Media Marketing Professional Certificate
K
Google Project Management Professional Certificate
L
Meta Front-End Developer Professional Certificate

Ready to test your recall?

Which of the following methods sends HTML form data to the server? Explanation! POST request is used to send data to the server.

A
HEAD
B
POST
C
PUT
D
GET

How confident are you in this answer?