Online Exam Quiz

questionQuestion  1 to 30

Which CLI tool is used to create and manage Angular applications?

  • AngularJS CLI
  • Angular CLI
  • ng CLI
  • Angular App CLI
Mark for review

Which directive is used for conditional rendering in Angular?

  • *ngIf
  • *ngFor
  • *ngBind
  • *ngModel
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, which lifecycle hook is called once after the first ngOnChanges()?

  • ngOnInit
  • ngDoCheck
  • ngAfterContentInit
  • ngAfterViewInit
Mark for review

In Angular, which file is responsible for configuring the routes?

  • app-routing.module.ts
  • routes.module.ts
  • app.routes.ts
  • router.config.ts
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

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

  • insert
  • insertDocument
  • insertOne
  • insertDoc
Mark for review

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

  • 3000
  • 8080
  • 5000
  • 4000
Mark for review

In MongoDB, what is an index?

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

How do you start an Express.js server?

  • express start
  • node server.js
  • node app.js
  • start server
Mark for review

Which command is used to start the Angular development server?

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

How do you define a route in Angular?

  • Using Router
  • Using RouteConfig
  • Using RouteService
  • Using Route
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

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

How do you install a package in Node.js using npm?

  • npm start
  • npm install [package_name]
  • npm add [package_name]
  • npm get [package_name]
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

What is the default port for a MongoDB server?

  • 27017
  • 28017
  • 3000
  • 8080
Mark for review

In MEAN stack, what does Express.js provide?

  • Database Management
  • Server-side logic
  • Front-end Framework
  • Version Control
Mark for review

How do you update Node.js to the latest version?

  • node update
  • node upgrade
  • npm install -g node
  • npm install -g n && n latest
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 Express.js, which method is used to define a GET route?

  • app.get()
  • app.routeGet()
  • app.getRoute()
  • app.route()
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

Which of the following is used for routing in Angular?

  • RouterModule
  • RoutingModule
  • AngularRouting
  • AngularRouter
Mark for review

What does npm stand for?

  • Node Package Manager
  • Node Program Manager
  • Node Project Manager
  • Node Process Manager
Mark for review

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

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

Which command is used to install Express.js in a Node.js project?

  • npm install express
  • npm get express
  • npm add express
  • npm new express
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

Which command is used to create a new Angular project?

  • ng init
  • ng create
  • ng new
  • ng generate
Mark for review

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

  • @Component
  • @Directive
  • @Injectable
  • @Service
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

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