Câu 18: C100DEV: MongoDB Associate Developer
Given a people collection with the following documents:{ _id: 0, name: “Emma”, sports: [ “Soccer”, “Badminton” ] },{ _id: 1, name: “James”, sports: [ “Basketball”, “Tennis” ] },{ _id: 2, name: “Lucas”, sports: [ “Soccer”, “Basketball” ] },{ _id: 3, name: “Sophia”, sports: “Tennis” },{ _id: 4, name: “Mike”, sports: [ “…
Nội dung câu hỏi
Given a people collection with the following documents:{ _id: 0, name: “Emma”, sports: [ “Soccer”, “Badminton” ] },{ _id: 1, name: “James”, sports: [ “Basketball”, “Tennis” ] },{ _id: 2, name: “Lucas”, sports: [ “Soccer”, “Basketball” ] },{ _id: 3, name: “Sophia”, sports: “Tennis” },{ _id: 4, name: “Mike”, sports: [ “Basketball”, “Soccer” ] },{ _id: 5, name: “Grace”, sports: [ “Soccer”, “Basketball”, “Badminton”, “Table Tennis” ] },What option lists all the documents that match the following query? db.people.find( {sports: “Tennis” } )
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. { _id: 3, name: “Sophia”, sports: “Tennis” },
- B. { _id: 1, name: “James”, sports: [ “Basketball”, “Tennis” ] },{ _id: 3, name: “Sophia”, sports: “Tennis” }, — đáp án hiện tại
- C. { _id: 1, name: “James”, sports: [ “Basketball”, “Tennis” ] },{ _id: 3, name: “Sophia”, sports: “Tennis” },{ _id: 5, name: “Grace”, sports: [ “Soccer”, “Basketball”, “Badminton”, “Table Tennis” ] },
- D. { _id: 1, name: “James”, sports: [ “Basketball”, “Tennis” ] },
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.