Search Header Logo

DBA_Quiz 1

Authored by Nguyệt Đinh

Computers

University

Used 3+ times

DBA_Quiz 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the equivalent of a record in MongoDB?

Collection

Field

Document

Database

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

There is a collection named film in my db, which of the followings list all films which are in year 2022 and the type is ether romantic or drama.(choose all possible)

db.film.find({year:2022,$or:[{type:'romantic'},{type:'drama'}]})

db.film.find({year:2020,type:['romantic','drama']})

db.film.find({year:2022,type:{'romantic','drama'}})

db.film.find({year:2022, type:{$in:['romantic','drama']}})

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What's the magic number for MongoDB?

8080

80

27017

3306

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What fun command in MongoDB is used to display a list of databases?

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What command turns a MongoDB database into thin air?

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command would you use to create or switch to a database in MongoDB?

use

switchDatabase()

createDatabase(database name)

db.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following commands will display all the collections in your current database?

list collections

show collections

list collection

show collection

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?