Top 50+ Solved AngularJS Directives and Expressions MCQ Questions Answer
Q. Angular 2 has a . . . . . . . service that allows us to dynamically load acomponent in a certain position on the page.
a. DynamicControlLoader
b. DynamicControllerLoader
c. DynaCompLoader
d. DynamicComponentLoader
Q. Angular 2 can detect when component data changes, and then automaticallyre-render the view to reflect that change.
a. True
b. False
c. none
d. all
Q. AngularJS bindings are . . . . . , meaning that when the value associated with the binding is changed (in the data model), the HTML element will be updated.
a. parallel
b. one way
c. two way
d. live
Q. You can use the . . . . . . directive, in order to bind the innerHTML of theelement to the specified model property.
a. ng-bind
b. ng-binding
c. ng-binds
d. ng-bindings
Q. Any change to the . . . . and . . . . . properties affects these bindings andconsequently the user interface content.
a. noOfTries, deviations
b. restart, tries
c. noOfTries, deviation
d. noOfTry, deviation
Q. In two-way binding, changes done to a model are reflected in the view, butthe reverse also holds true sometimes.
a. True
b. False
c. none
d. all
Q. You can create bindings only for the data values that are added to the . . . . .object by the controller.
a. $action
b. $control
c. $scope
d. none of above
Q. The drawback of inline bindings is that AngularJS will not find and processevery set of {{ and }} characters in your content.
a. True
b. False
c. none
d. all
Q. When adding . . . . . and . . . . . . to a view, we are essentially instructing Angular to create data bindings that keep the model and view in sync.
a. extrapolations, interpolations
b. scopes, directives
c. directives, interpolation
d. none of above
Q. The . . . . . directive is used if you want to add or remove HTML elements fromthe DOM based on data in the model.
a. ng-switch
b. ng-model
c. ng-Disabled
d. ng-Cloak