Google News
logo
TinyDB - Quiz(MCQ)
What is the syntax for retrieving a document from a TinyDB database based on a specific criteria?
A)
getDocuments({field1: value1})
B)
retrieveDocument({field1: value1})
C)
findDocuments({field1: value1})
D)
searchDocuments({field1: value1})

Correct Answer :   findDocuments({field1: value1})


Explanation : To retrieve a document from a TinyDB database based on specific criteria, developers can use the findDocuments() function and pass in a dictionary object containing the search criteria.

Advertisement