Online Exam Quiz

questionQuestion  1 to 30

How do you define a controller in Express.js?

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

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

  • AngularJS CLI
  • Angular CLI
  • ng CLI
  • Angular App CLI
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

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

What is the default port for a MongoDB server?

  • 27017
  • 28017
  • 3000
  • 8080
Mark for review

What does npm stand for?

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

Which database is used in the MEAN stack?

  • MySQL
  • MongoDB
  • SQLite
  • PostgreSQL
Mark for review

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

  • ngOnInit
  • ngDoCheck
  • ngAfterContentInit
  • ngAfterViewInit
Mark for review

What is the primary use of Angular?

  • Server-side Logic
  • Database Management
  • Client-side Framework
  • Deployment
Mark for review

Which command is used to start the Angular development server?

  • ng serve
  • ng start
  • ng run
  • ng server
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 of the following is a templating engine for Express.js?

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

In MongoDB, what is an index?

  • A record
  • A query
  • A data structure
  • A collection
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

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

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

Which of the following is used for routing in Angular?

  • RouterModule
  • RoutingModule
  • AngularRouting
  • AngularRouter
Mark for review

Which command is used to create a new Angular project?

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

How do you define a model in Mongoose?

  • mongoose.Schema()
  • mongoose.Model()
  • mongoose.createModel()
  • mongoose.define()
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

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

Which directive is used for conditional rendering in Angular?

  • *ngIf
  • *ngFor
  • *ngBind
  • *ngModel
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

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

Node.js is built on which JavaScript engine?

  • V8 Engine
  • SpiderMonkey
  • JavaScriptCore
  • ChakraCore
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

In MEAN stack, what does Express.js provide?

  • Database Management
  • Server-side logic
  • Front-end Framework
  • Version Control
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

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 define a route in Angular?

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

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

  • insert
  • insertDocument
  • insertOne
  • insertDoc
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