SDN302_-_FA_2024_-_FE_3014.webp
M

SDN302_-_FA_2024_-_FE_3014.webp

Kizspy | Question: 9
(Choose 1 answer)
You need to connect to a MongoDB server, create a new database named 'library', create a collection named 'books' within the 'library' database, and list all databases on the server. Arrange positions in order:
A. Step 1 is to create a new database reference using client.db('library')
Step 2 is to create a new collection using await db.createCollection('books');
Step 3 is to list all databases using await adminDb.listDatabases();
B. Step 1 is to create a new collection using await db.createCollection('books');
Step 2 is to create a new database reference using client.db('library')
Step 3 is to list all databases using await adminDb.listDatabases();
C. Step 1 is to list all databases using await adminDb.listDatabases();
Step 2 is to create a new collection using await db.createCollection('books');
Step 3 is to create a new database reference using client.db('library')
D. Step 1 is to list all databases using await adminDb.listDatabases();
Step 2 is to create a new database reference using client.db('library')
Step 3 is to create a new collection using await db.createCollection('books');
FUOVER

Thông tin

Category
SDN302
Thêm bởi
Minh Tâm1
Ngày thêm
Lượt xem
3,645
Lượt bình luận
22
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom