AngularJS Controllers & Scope
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) {
});
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope) {
});
b)
var app=angular.app('myApp', []);
app.controller('myCtrl', function($scope) {
});
app.controller('myCtrl', function($scope) {
});
c) var app = angular.module('myApp', []);
app.controller(function($scope) {
});
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
.
Nice information.Keep on sharing
ReplyDeleteFull Stack online Training
Full Stack Training
Full Stack Developer Online Training
Full Stack Training in Hyderabad
Full Stack Training in Ameerpet
Full Stack Training Institute
Angularjs Mcq Question (Controllers And Scope) - Idb-Bisew Exam Questions And Answer Bank >>>>> Download Now
Delete>>>>> 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
Thank you for your valuable information.
ReplyDeleteAngular JS Online training
Angular JS training in hyderabad
Thanks for posting. Its an Important topic to be read.
ReplyDeleteMean Stack Online Training
Mean Stack Training in Hyderabad
Great post.
ReplyDeletehttp://importanceofuserexperience.moonfruit.com/
Great post.
ReplyDeletehttps://www.studentfilmmakersforums.com/members/glennhogan.28313/#about
Angularjs Mcq Question (Controllers And Scope) - Idb-Bisew Exam Questions And Answer Bank >>>>> Download Now
ReplyDelete>>>>> 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