Google News
logo
FastAPI - Quiz(MCQ)
What is the purpose of the Pydantic library in FastAPI?
A)
To provide front-end development tools
B)
To provide serialization and deserialization of data
C)
To provide machine learning functionality
D)
To provide database management functionality

Correct Answer :   To provide serialization and deserialization of data


Explanation : Pydantic is a data validation and serialization library that is used in FastAPI to serialize and deserialize data sent to and from endpoints.

Advertisement