Deck 4: AngularJS Bindings, Directives, and Controllers

Full screen (f)
exit full mode
Question
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
Use Space or
up arrow
down arrow
to flip the card.
Question
The ng-bind directive . . . . . . allow you to hide your template markup when the HTML content is shown to the user before it is processed by AngularJS.

A)does
B)does not
C)none
D)all
Question
The drawback of inline bindings is that AngularJS will not find and process every set of {{ and }} characters in your content.

A)True
B)False
C)none
D)all
Question
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
Question
The . . . . . directive is used if you want to add or remove HTML elements from the DOM based on data in the model.

A)ng-switch
B)ng-model
C)ng-Disabled
D)ng-Cloak
Question
AngularJS is based on the _____ pattern

A)VMC
B)MVC
C)MCV
D)CVM
Question
What is Angular Js?

A)Library
B)Framework
C)Plugin
D)Browser Extension
Question
AngularJS applications are a mix of _____

A)HTML and PHP
B)HTML and CrossScript
C)HTML and AngularScript
D)HTML and JavaScript
Question
How to include HTML content into another HTML?

A)Server Side push
B)Use of CommetD
C)Use of Polling
D)Use of include
Question
What is MVC (Mode View Controller)?

A)It is a services for Java built function
B)It is marker for DOM elements
C)It is a software design pattern for developing web applications
D)None of the above
Question
Which of the following is true about AngularJS service?

A)Services are JavaScript functions
B)Services are responsible to do specific tasks only
C)Inbuilt services are always prefixed with $ symbol
D)All of the above
Question
Which of the following is valid for AngualarJS module

A)var app = angular.module(["myApp","param");
B)var app = angular.module("myApp", []);
C)var app = angular.module();
D)var app = angular.module("myApp");
Question
What angular function is used to manually start up an angular application ?

A)angular.bootstrap
B)angular.element
C)angular.copy
D)None of the above
Question
Which of the following is true about

A)$routeProvider $routeProvider maps Urls with the corresponding html page or ng-template
B)$routeProvider attaches a controller with the view
C)All of these
D)$routeProvider is the key service which set the configuration of urls
Question
Which is the right format for calling a ng-bind function?

A)ng-bind
B)ng:bind
C)ng_bind
D)All the Above
Question
What is the purpose of angular.module in AngularJS?

A)It creates an application module
B)It invokes an application module
C)It destroys an application module
D)None
Question
What are various possible ways in which angular application can be initialized?

A)On an element, one could either put simply the attribute such as (ng-app, datang-app, ng:app, x-ng-app)
B)Put the named attribute such as (ng-app='demoApp')
C)Both of the above
D)None
Question
AngularJS controllers control ___of AngularJS applications.

A)the data
B)thefunction
C)thevariable
D)None of these
Question
Which directive defines the application controller?

A)ng-model
B)ng-ctrl
C)ng-controller
D)None of these
Question
Whichdirectives bind the input fields to the controller properties?

A)data-ng-model
B)ng-app
C)ng-controller
D)None of these
Question
In larger applications,controllers are stored in ___?

A)external files
B)scope object
C)internal files
D)None of these
Question
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
Question
Controller, which is the JavaScript function that ___ the data?

A)Makes
B)Changes
C)Removes
D)All of the above
Question
$rootScoperefers to an object which is accessible from everywhereof theapplication.

A)True
B)False
C)none
D)all
Question
$rootScope is created with ___

A)ng-controller
B)ng-app
C)ng-init
D)None of these
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 4: AngularJS Bindings, Directives, and Controllers
1
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
$scope
2
The ng-bind directive . . . . . . allow you to hide your template markup when the HTML content is shown to the user before it is processed by AngularJS.

A)does
B)does not
C)none
D)all
does
3
The drawback of inline bindings is that AngularJS will not find and process every set of {{ and }} characters in your content.

A)True
B)False
C)none
D)all
False
4
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
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
The . . . . . directive is used if you want to add or remove HTML elements from the DOM based on data in the model.

A)ng-switch
B)ng-model
C)ng-Disabled
D)ng-Cloak
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
AngularJS is based on the _____ pattern

A)VMC
B)MVC
C)MCV
D)CVM
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
What is Angular Js?

A)Library
B)Framework
C)Plugin
D)Browser Extension
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
AngularJS applications are a mix of _____

A)HTML and PHP
B)HTML and CrossScript
C)HTML and AngularScript
D)HTML and JavaScript
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
How to include HTML content into another HTML?

A)Server Side push
B)Use of CommetD
C)Use of Polling
D)Use of include
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
What is MVC (Mode View Controller)?

A)It is a services for Java built function
B)It is marker for DOM elements
C)It is a software design pattern for developing web applications
D)None of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
Which of the following is true about AngularJS service?

A)Services are JavaScript functions
B)Services are responsible to do specific tasks only
C)Inbuilt services are always prefixed with $ symbol
D)All of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
Which of the following is valid for AngualarJS module

A)var app = angular.module(["myApp","param");
B)var app = angular.module("myApp", []);
C)var app = angular.module();
D)var app = angular.module("myApp");
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
What angular function is used to manually start up an angular application ?

A)angular.bootstrap
B)angular.element
C)angular.copy
D)None of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
Which of the following is true about

A)$routeProvider $routeProvider maps Urls with the corresponding html page or ng-template
B)$routeProvider attaches a controller with the view
C)All of these
D)$routeProvider is the key service which set the configuration of urls
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
Which is the right format for calling a ng-bind function?

A)ng-bind
B)ng:bind
C)ng_bind
D)All the Above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
What is the purpose of angular.module in AngularJS?

A)It creates an application module
B)It invokes an application module
C)It destroys an application module
D)None
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
What are various possible ways in which angular application can be initialized?

A)On an element, one could either put simply the attribute such as (ng-app, datang-app, ng:app, x-ng-app)
B)Put the named attribute such as (ng-app='demoApp')
C)Both of the above
D)None
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
AngularJS controllers control ___of AngularJS applications.

A)the data
B)thefunction
C)thevariable
D)None of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
Which directive defines the application controller?

A)ng-model
B)ng-ctrl
C)ng-controller
D)None of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
Whichdirectives bind the input fields to the controller properties?

A)data-ng-model
B)ng-app
C)ng-controller
D)None of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
In larger applications,controllers are stored in ___?

A)external files
B)scope object
C)internal files
D)None of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
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
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
Controller, which is the JavaScript function that ___ the data?

A)Makes
B)Changes
C)Removes
D)All of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
$rootScoperefers to an object which is accessible from everywhereof theapplication.

A)True
B)False
C)none
D)all
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
$rootScope is created with ___

A)ng-controller
B)ng-app
C)ng-init
D)None of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 25 flashcards in this deck.