Online Exam Quiz

questionQuestion  1 to 30

In MongoDB, what is an index?

  • A record
  • A query
  • A data structure
  • A collection
Mark for review

How do you define a route in Angular?

  • Using Router
  • Using RouteConfig
  • Using RouteService
  • Using Route
Mark for review

Which of the following is a templating engine for Express.js?

  • EJS
  • Handlebars
  • Pug
  • All of the above
Mark for review

Which method is used to create a new document in a MongoDB collection?

  • insert
  • insertDocument
  • insertOne
  • insertDoc
Mark for review

How do you handle errors in Express.js?

  • Using error-handling middleware
  • Using error functions
  • Using try-catch blocks
  • Using error routes
Mark for review

What is Mongoose in the context of MEAN stack?

  • A front-end framework
  • A server-side framework
  • A database ORM
  • A templating engine
Mark for review

How do you define a controller in Express.js?

  • app.controller()
  • express.controller()
  • app.get('/route', (req, res) => { })
  • express.route()
Mark for review

In MongoDB, what is a collection?

  • A database
  • A table
  • A group of documents
  • A record
Mark for review

Which of the following is used to run a MongoDB server locally?

  • mongo
  • mongod
  • mongodb
  • mongo run
Mark for review

In Angular, how do you create a new service?

  • ng generate service [name]
  • ng create service [name]
  • ng new service [name]
  • ng add service [name]
Mark for review

What is the primary purpose of MongoDB in the MEAN stack?

  • Hosting Static Files
  • Front-end Rendering
  • Backend Framework
  • Database
Mark for review

What command is used to run a Node.js application?

  • run app.js
  • node app.js
  • start app.js
  • npm app.js
Mark for review

Which command is used to start the Angular development server?

  • ng serve
  • ng start
  • ng run
  • ng server
Mark for review

Which of the following is used for routing in Angular?

  • RouterModule
  • RoutingModule
  • AngularRouting
  • AngularRouter
Mark for review

What is the command to install Mongoose in a Node.js project?

  • npm install mongoose
  • npm get mongoose
  • npm add mongoose
  • npm new mongoose
Mark for review

In Angular, how do you bind data from the component to the template?

  • Data Binding
  • Property Binding
  • Event Binding
  • Two-way Binding
Mark for review

Which framework is used for developing the front-end in MEAN stack?

  • React
  • Vue.js
  • Angular
  • Svelte
Mark for review

How do you add Bootstrap to an Angular project?

  • npm install bootstrap
  • npm add bootstrap
  • npm new bootstrap
  • npm get bootstrap
Mark for review

In Angular, which decorator is used to define a component?

  • @Component
  • @Directive
  • @Injectable
  • @Service
Mark for review

What is the default port for a MongoDB server?

  • 27017
  • 28017
  • 3000
  • 8080
Mark for review

What does the Angular CLI command 'ng build' do?

  • Builds and serves the application
  • Builds the application
  • Serves the application
  • Runs unit tests
Mark for review

What does MEAN stack stand for?

  • MongoDB, Express, Angular, Node
  • MySQL, Express, Angular, Node
  • MongoDB, Express, AngularJS, Node
  • MongoDB, ExpressJS, AngularJS, Node
Mark for review

In Express.js, what is middleware?

  • A function that handles errors
  • A function that handles requests and responses
  • A function that serves static files
  • A function that sets up routes
Mark for review

In MongoDB, what does CRUD stand for?

  • Create, Read, Update, Delete
  • Connect, Read, Update, Delete
  • Create, Remove, Update, Delete
  • Connect, Remove, Update, Delete
Mark for review

In MongoDB, what is a document?

  • A collection of databases
  • A record in a collection
  • A type of index
  • A field in a record
Mark for review

How do you connect to a MongoDB database using Node.js?

  • MongoClient.connect()
  • Mongo.connect()
  • MongoDB.connect()
  • Mongo.connectDatabase()
Mark for review

In Angular, which lifecycle hook is called once after the first ngOnChanges()?

  • ngOnInit
  • ngDoCheck
  • ngAfterContentInit
  • ngAfterViewInit
Mark for review

Node.js is built on which JavaScript engine?

  • V8 Engine
  • SpiderMonkey
  • JavaScriptCore
  • ChakraCore
Mark for review

What is the default port for an Express.js application?

  • 3000
  • 8080
  • 5000
  • 4000
Mark for review

Which command is used to create a new component in Angular?

  • ng generate component [name]
  • ng create component [name]
  • ng new component [name]
  • ng add component [name]
Mark for review

blinkerOnline

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • Answered
  • Not Answered
  • Marked for Review