Angular Js 1.x Quiz
  

Q.What is Model in MVC?

  • Model represents server side data
  • Model represents data stored in database.
  • Model is the lowest level of the pattern responsible for maintaining data.

Q.We need to tell AngularJS what part of our HTML page contains the AngularJS app. You do so by adding the . . . . attribute to the root HTML element of the AngularJS app.

  • ng-app
  • ag-app
  • js-app
  • aj-app

Q.Which of the following is true about ng-controller directive?

  • A controller is a JavaScript object containing attributes/properties and functions.
  • ng-controller directive tells AngularJS what controller to use with this view.
  • AngularJS application mainly relies on controllers to control the flow of data in the application.
  • All the options mentioned

Q.Do you know what is scope in Angular.js?

  • It refers to the application model, acts like glue between application controller and the view. It can watch expressions and propagate events.
  • It is to bind the html tags (input, select, textarea) to Angular Application Data.
  • It is used for registering DOM listeners as well as instance DOM manipulation. It is executed once the template has been cloned.

Q.Directive that can be used to include HTML fragments from other files into the view of HTML template?

  • ng-include
  • ng-model
  • ng-if

Q.On which of the following types of component can we create a custom directive?

  • All the options mentioned
  • Element directives
  • CSS
  • Attribute

Q.orderby filter is applied to an expression using pipe character.?

  • False
  • True

Q.Which of the following is true about ng-init directive?

  • ng-init directive initializes an AngularJS Application data.
  • ng-init directive is used to put values to the variables to be used in the application.
  • Both the options mentioned

Q.What are services in AngularJS

  • Services are server side components of AngularJS
  • Services are objects which AngularJS uses internally
  • Services are singleton objects which are instantiated only once in app and are used to do the defined task

Q.The ng-bind directive binds ____________.

  • Data to model
  • Model to $scope
  • Model to HTML element

Q.What happens when AngularJS based Application page loads in the browser?

  • JavaScript which registers controller functions is executed.
  • AngularJS JavaScript file is loaded; the angular global object is created.
  • All the options mentioned
  • AngularJS JavaScript file is loaded; the angular global object is created.

Q.AngularJS module can be created using ________.

  • module.create();
  • angular.create();
  • var myModule = new module();
  • angular.module()

Q.In AngularJS, Scope contains the model data.

  • False
  • True

Q.Once you have created a service, and connected it to your application, you can use the service in ?

  • none of this
  • any controller and directive
  • any controller or directive, filter or even inside the services

Q.What is true about AngularJS Filter?

  • Cache the subset of data on the browser
  • Filters the data to display on UI
  • Fetch the data from remote server
  • Formats the data without changing original data

 
Institute Finder




Enter Full Institute Name 

Usefull Links
© 2021 Eduforum. All Rights Reserved.

Enter login details.

UserName Password

Recover Password

Enter your Registered Email Address to receive new password.
Subscribe Newsletter