Está en la página 1de 8

22/3/23, 18:29 EVALUACIÓN NoSQL M5B: Attempt review

Started on Thursday, 2 March 2023, 8:02 AM


State Finished
Completed on Thursday, 2 March 2023, 8:12 AM
Time taken 10 mins
Grade 13.00 out of 15.00 (86.67%)

Question 1

Correct

Mark 1.00 out of 1.00

Seleccione la opción correcta:

Para crear una base de datos llamada "blog", se utiliza el comando:

Select one:
a. use database blog

b. use blog

c. create blog

d. database blog

Su respuesta es correcta.
The correct answer is: use blog

Question 2

Correct

Mark 1.00 out of 1.00

Seleccione la respuesta correcta:


Mostrar todas las impresoras que tienen un precio mayor o igual a 3500.

Select one:
a. db.impresoras.find({ rubro : {$eq: 'impresora'}, precio : { $gte: 3500 } })

b. db.articulos.find({{$eq: 'impresora'}, precio : { $gte: 3500 } })

c. db.articulos.find({ rubro : {$eq: 'impresora'}, precio : { $gte: 3500 } }) 

d. db.articulos.find({ rubro : {$eq: 'impresora'}{ $gte: 3500 } })

Su respuesta es correcta.
The correct answer is:
db.articulos.find({ rubro : {$eq: 'impresora'}, precio : { $gte: 3500 } })

https://eduv.tecazuay.edu.ec/mod/quiz/review.php?attempt=23143&cmid=16713 1/8
22/3/23, 18:29 EVALUACIÓN NoSQL M5B: Attempt review

Question 3

Correct

Mark 1.00 out of 1.00

Mostar todos los artículos cuyo stock se encuentra comprendido entre 0 y 4.

Select one:
a. db.articulos.find({ stock : {$gte: 0, $lte: 4} }) 

b. db.articulos.find({ stock : {$lte: 0, $gte: 4} })

c. db.articulos.find({ stock : {$gte: 0  $lte: 4} })

d. db.articulos.find({ stock : {$gte: 4, $lte: 0} })

Su respuesta es correcta.
The correct answer is:
db.articulos.find({ stock : {$gte: 0, $lte: 4} })

Question 4

Correct

Mark 1.00 out of 1.00

Recupere los medicamentos cuyo laboratorio sea 'Roche' o cuyo precio sea menor a 5.

Select one:
a. db.medicamentos.find({ $or:[{laboratorio:'Roche'} , {precio:{$lt:5}}] }) 

b. db.medicamentos.find({ $not:[{laboratorio:'Roche'} , {precio:{$lt:5}}] })

c. db.medicamentos.find({ $and:[{laboratorio:'Roche'} , {precio:{$lt:5}}] })

d. db.medicamentos.find({ $eq:[{laboratorio:'Roche'} , {precio:{$lt:5}}] })

Su respuesta es correcta.

The correct answer is:


db.medicamentos.find({ $or:[{laboratorio:'Roche'} , {precio:{$lt:5}}] })

https://eduv.tecazuay.edu.ec/mod/quiz/review.php?attempt=23143&cmid=16713 2/8
22/3/23, 18:29 EVALUACIÓN NoSQL M5B: Attempt review

Question 5

Correct

Mark 1.00 out of 1.00

Muestre todos los documentos de la colección medicamentos cuyo laboratorio sea igual a "Bayer" y su precio sea mayor a 10

Select one:
a. db.medicamentos.find({precio:'Bayer':{$gt:10}})

b. db.medicamentos.find({laboratorio:'10',precio:{$gt:Bayer}})

c. db.medicamentos.find({laboratorio:'Bayer',precio:{$gt:10}}) 

d. db.medicamentos.find({'Bayer',precio:{$gt:10}})

Su respuesta es correcta.
The correct answer is:
db.medicamentos.find({laboratorio:'Bayer',precio:{$gt:10}})

Question 6

Correct

Mark 1.00 out of 1.00

Borrar los documentos de la colección 'articulos' cuyo rubro son impresoras

Select one:
a. db.articulos.deleteMany({rubro:{$eq : 'impresora' }}) 

b. db.articulos.deleteMany({rubro:$eq:'impresora'})

c. db.impresoras.deleteMany({rubro:'impresora'})

d. db.articulos.deleteMany({rubro'impresora'})

Su respuesta es correcta.

The correct answer is:


db.articulos.deleteMany({rubro:{$eq : 'impresora' }})

https://eduv.tecazuay.edu.ec/mod/quiz/review.php?attempt=23143&cmid=16713 3/8
22/3/23, 18:29 EVALUACIÓN NoSQL M5B: Attempt review

Question 7

Correct

Mark 1.00 out of 1.00

Agregar el campo proveedores con el array ['Martinez','Gutierrez'] para el artículo cuyo _id es 6.

Select one:
a. db.articulos.updateOne({ _id: {$eq:6}} , {$pull: {proveedores:['Martinez','Gutierrez']}} )

b. db.articulos.updateOne({ _id: {$eq:6}} , {$put: {proveedores:['Martinez','Gutierrez']}} )

c. db.articulos.updateOne({ _id: {$nin:6}} , {$set: {proveedores:['Martinez','Gutierrez']}} )

d. db.articulos.updateOne({ _id: {$eq:6}} , {$set: {proveedores:['Martinez','Gutierrez']}} ) 

Su respuesta es correcta.
The correct answer is:
db.articulos.updateOne({ _id: {$eq:6}} , {$set: {proveedores:['Martinez','Gutierrez']}} )

Question 8

Incorrect

Mark 0.00 out of 1.00

Modificar el precio del mouse 'LOGITECH M90' a 45,00

Select one:
a. db.articulos.updateOne({ nombre: {$:'LOGITECH M90'}} , {$set: {precio:500}} )

b. db.articulos.updateOne({ nombre: {$eq:'LOGITECH M90'}} , {$set: {precio:500}} ) 

c. db.articulos.updateOne({ nombre: {$eq:'LOGITECH M90'}} , {$set: {precio:45.00}} )

d. db.articulos.update({ nombre: {$eq:'LOGITECH M90'}} , {$set: {precio:45.00}} )

Su respuesta es incorrecta.

The correct answer is:


db.articulos.updateOne({ nombre: {$eq:'LOGITECH M90'}} , {$set: {precio:45.00}} )

https://eduv.tecazuay.edu.ec/mod/quiz/review.php?attempt=23143&cmid=16713 4/8
22/3/23, 18:29 EVALUACIÓN NoSQL M5B: Attempt review

Question 9

Incorrect

Mark 0.00 out of 1.00

Eliminar el campo 'pedir' de todos los documentos

Select one:
a. db.articulos.updateMany({} , {$set: {pedir:''}} )

b. db.articulos.updateOne({} , {$unset: {pedir:''}} ) 

c. db.articulos.updateMany({} , {$unset: {pedir:''}} )

d. db.articulos.updateMany({} , {$unset: {" ''}} )

Su respuesta es incorrecta.
The correct answer is:
db.articulos.updateMany({} , {$unset: {pedir:''}} )

Question 10

Correct

Mark 1.00 out of 1.00

Fijar el stock en cero para todos los artículos del rubro monitor.

Select one:
a. db.articulos.updateMany({ rubro: {$eq:'monitor'}} , {$set: {stock:0}} ) 

b. db.articulos.updateMany({ rubro: {$eq:'monitor'}} , {$set: {stock:100}} )

c. db.articulos.updateOne({ rubro: {$eq:'monitor'}} , {$set: {stock:0}} )

d. db.articulos.update({ rubro: {$eq:'monitor'}} , {$set: {stock:0}} )

Su respuesta es correcta.

The correct answer is:


db.articulos.updateMany({ rubro: {$eq:'monitor'}} , {$set: {stock:0}} )

https://eduv.tecazuay.edu.ec/mod/quiz/review.php?attempt=23143&cmid=16713 5/8
22/3/23, 18:29 EVALUACIÓN NoSQL M5B: Attempt review

Question 11

Correct

Mark 1.00 out of 1.00

Seleccione la respuesta correcta:

Instrucción para mostrar todas las bases de datos existentes.

Select one:
a. select dbs

b. show database dbs

c. dbs show

d. show dbs

Su respuesta es correcta.
The correct answer is: show dbs

Question 12

Correct

Mark 1.00 out of 1.00

Seleccione la respuesta correcta:


Instrucción para Eliminar la colección "posts"

Select one:
a. db.posts.drop()

b. db.posts()

c. db.post.deleteMany({})  

d. db.dropDatabase()

Su respuesta es correcta.

The correct answer is: db.posts.drop()

https://eduv.tecazuay.edu.ec/mod/quiz/review.php?attempt=23143&cmid=16713 6/8
22/3/23, 18:29 EVALUACIÓN NoSQL M5B: Attempt review

Question 13

Correct

Mark 1.00 out of 1.00

Seleccione la respuesta correcta:

Para mostrar todos los libros con un precio inferior a 30 tenemos que utilizar la instrucción:

Select one:
a. db.libros.find({ precio: { lt : 30 } })

b. db.libros.find({ precio: { $gtl : 30 } })

c. db.libros.find({ precio: { $lt : 30 } }) 

d. db.libros.find({ precio: { $gt : 30 } })

Su respuesta es correcta.

The correct answer is:


db.libros.find({ precio: { $lt : 30 } })

Question 14

Correct

Mark 1.00 out of 1.00

Seleccione la respuesta correcta:

Recuperar todos los libros que en el campo cantidad tiene 50 o más:

Select one:
a. db.libros.find( { cantidad: { $gte : 50 }}) 

b. db.libros.find( { cantidad: { $gt : 50 }})

c. db.libros.find( { cantidad: { $lte : 50 }})

d. db.libros.find( { precio: { $gte : 50 }})

Su respuesta es correcta.

The correct answer is:


db.libros.find( { cantidad: { $gte : 50 }})

https://eduv.tecazuay.edu.ec/mod/quiz/review.php?attempt=23143&cmid=16713 7/8
22/3/23, 18:29 EVALUACIÓN NoSQL M5B: Attempt review

Question 15

Correct

Mark 1.00 out of 1.00

Seleccione la respuesta correcta:

Recuperar todos los libros cuyo precio estén comprendidos entre 20 y 45:

Select one:
a. db.libros.find( { precio: ( $gte : 20 , $lte : 45) })

b. db.libros.find( { precio: { $gte : 20 , $lte : 45} }) 

c. db.libros.find( { precio: { $gte : 20 $lte : 45} })

d. db.libros.find( { precio: { $gte : 20,45} })

Su respuesta es correcta.

The correct answer is:


db.libros.find( { precio: { $gte : 20 , $lte : 45} })

https://eduv.tecazuay.edu.ec/mod/quiz/review.php?attempt=23143&cmid=16713 8/8

También podría gustarte