Home » 
        MCQs » 
        MongoDB MCQs
    
        
    Field is a name-value pair in a ___
    
    
    
    15. Field is a name-value pair in a ___.
    
        - Attribute
 
        - Table
 
        - Document
 
        - None of the mentioned above
 
    
    Answer: C) Document
    Explanation:
    A field in a document is a name-value pair that contains information. There are zero or more fields in a document. Fields in relational databases are analogous to columns in traditional databases. In MongoDB, each document stored in a collection is identified by a unique _id field, which serves as the collection's primary key. If the _id field is not present in an inserted document, the MongoDB driver creates an ObjectId for the _id field by generating it automatically.