AngularJS MCQ Question (Controllers & Scope)


AngularJS Controllers & Scope

angularjs mcq idb question
angularjs mcq question


1.   AngularJS controllers control ___of AngularJS applications.


a)   the data
b)   thefunction
c)   thevariable

2.   Which directive defines the application controller?

a)   ng-model
b)   ng-ctrl
c)   ng-controller

3.   Which of the following service(s) will be invoked by the controller?

a)   $scope
b)   $http
c)   $object constructor
d)   $this

4.   Controller is the link between the model and views.

a)   True
b)   False

5.   Whichdirectives bind the input fields to the controller properties?

a)   data-ng-model
b)   ng-app
c)   ng-controller

6.   In larger applications,controllers are stored in ___?

a)   external files
b)   scope object
c)   internal files

7.   Which statement is true about scope in AngularJS?

a)   The scope is the binding part between the HTML (view) and the JavaScript (controller).
b)   The scope is an object with the available properties and methods.
c)   The scope is available for both the view and the controller.
d)   All of the above

8.   Controller, which is the JavaScript function that ___ the data?

a)   Makes
b)   Changes
c)   Removes
d)   All of the above

9.   $rootScoperefers to an object which is accessible from everywhereof theapplication.

a)   True
b)   False

10.        $rootScope is created with ___
a)   ng-controller
b)   ng-app
c)   ng-init

11.        A controller is a JavaScript object containing ___

a)   Attributes
b)   Properties
c)   Functions
d)   All of the above

12.        Which is the correct syntax of creating AngularJs controller?

a) 
var app = angular.module('myApp', []);
app.controller(
'myCtrl', function($scope) {
 
});


b)    
var app=angular.app('myApp', []);
app.controller(
'myCtrl', function($scope) {
 
});
c)   var app = angular.module('myApp', []);
app.controller(
function($scope) {
 
});

13.        Scope contains the ___?

a)   model data
b)   JavaScript Objects
c)   variables 

14.        Which is/are the characteristics of scope object?

a)   Scopes provide APIs ($watch) to observe model.
b)   Scopes can be nested to limit access to the properties.
c)   It provides context against the expression to be evaluated.
d)   All of the above
.
Share on Google Plus

About blackcat

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.

7 comments:

  1. Replies
    1. Angularjs Mcq Question (Controllers And Scope) - Idb-Bisew Exam Questions And Answer Bank >>>>> Download Now

      >>>>> Download Full

      Angularjs Mcq Question (Controllers And Scope) - Idb-Bisew Exam Questions And Answer Bank >>>>> Download LINK

      >>>>> Download Now

      Angularjs Mcq Question (Controllers And Scope) - Idb-Bisew Exam Questions And Answer Bank >>>>> Download Full

      >>>>> Download LINK yq

      Delete
  2. Angularjs Mcq Question (Controllers And Scope) - Idb-Bisew Exam Questions And Answer Bank >>>>> Download Now

    >>>>> Download Full

    Angularjs Mcq Question (Controllers And Scope) - Idb-Bisew Exam Questions And Answer Bank >>>>> Download LINK

    >>>>> Download Now

    Angularjs Mcq Question (Controllers And Scope) - Idb-Bisew Exam Questions And Answer Bank >>>>> Download Full

    >>>>> Download LINK

    ReplyDelete