Deck 5: AngularJS: Controllers, Directives, and Filters
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
Play
Full screen (f)
Deck 5: AngularJS: Controllers, Directives, and Filters
1
A controller is a JavaScript object containing ___
A)Attributes
B)Properties
C)Functions
D)All of the above
A)Attributes
B)Properties
C)Functions
D)All of the above
All of the above
2
Scope contains the ___?
A)model data
B)JavaScript Objects
C)variables
D)None of these
A)model data
B)JavaScript Objects
C)variables
D)None of these
model data
3
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
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
All of the above
4
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
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
5
What is the purpose of $http?
A)It is an inbuilt service used to make ajax call to get the server data.
B)It is the Http protocol
C)It generates hyper text mark up language
D)None
A)It is an inbuilt service used to make ajax call to get the server data.
B)It is the Http protocol
C)It generates hyper text mark up language
D)None
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
What MVC stands for?
A)Model View Control
B)Model View Controller
C)Main View Controller
D)Main View Control
A)Model View Control
B)Model View Controller
C)Main View Controller
D)Main View Control
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
Can AngularJS be used to create a service?
A)May be
B)Can be
C)Yes
D)No
A)May be
B)Can be
C)Yes
D)No
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
Which of the following is true about orderby filter?
A)orderby filter orders the array based on provided
B)orderby filter is used to filter the array to a subset of it based on provided criteria
C)Both of the above
D)None of the above
A)orderby filter orders the array based on provided
B)orderby filter is used to filter the array to a subset of it based on provided criteria
C)Both of the above
D)None of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
Which of the following is true about ng-app directive?
A)ng-app directive defines and links an AngularJS application to HTML
B)ng-app directive indicates the start of the application
C)Both of the above
D)None of the above
A)ng-app directive defines and links an AngularJS application to HTML
B)ng-app directive indicates the start of the application
C)Both of the above
D)None of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
AngularJS is a powerful javascript framework, used for developing _________ projects.
A)run time
B)java script
C)php
D)SPA
A)run time
B)java script
C)php
D)SPA
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
SPA (Single Page Application). This means that the navigation within Netflix is performed without refreshing the whole page.
A)True
B)False
C)none
D)all
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
12
The ______ tag defines a division or a section or block in an HTML document.
A)<div>
B)<block>
C)<span>
D)none of these.
A)<div>
B)<block>
C)<span>
D)none of these.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
The <span> tag is much like the <div> element, but <div> is a _________ and <span> is an ______________.
A)Block level element , inline element
B)Container element, directive element
C)directive element, directive element
D)none of these.
A)Block level element , inline element
B)Container element, directive element
C)directive element, directive element
D)none of these.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
The _____ directive is show that it is AngularJS application.
A)ng-app
B)ng-model
C)ng-bind
D)none of these.
A)ng-app
B)ng-model
C)ng-bind
D)none of these.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
The ______ directive for binds the value of HTML it is used for input the data , select the data in application
A)ng-app
B)ng-model
C)ng-bind
D)none of these.
A)ng-app
B)ng-model
C)ng-bind
D)none of these.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
angular js is back end application which develop by java script.
A)True
B)False
C)none
D)all
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
17
In AngularJS, views are pure html pages, and controllers written only in php do the business processing.
A)True
B)False
C)none
D)all
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
18
AngularJS, provides data binding capability to HTML. Thus, it gives user a rich and responsive experience
A)True
B)False
C)none
D)all
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
19
Being JavaScript framework, application written in AngularJS are not safe.
A)True
B)False
C)none
D)all
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
20
____ is an open source full featured JavaScript framework developed by Google.
A)angular js
B)php
C)java script
D)non of these
A)angular js
B)php
C)java script
D)non of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
Published by Google in ____AngularJS has become one of the most popular JavaScript frameworks till now
A)2009
B)2010
C)2011
D)2020
A)2009
B)2010
C)2011
D)2020
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
AngularJS is a ______framework for dynamic web apps.
A)structural
B)unstructural
C)wrong
D)shape
A)structural
B)unstructural
C)wrong
D)shape
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
The _____ directive is show that it is AngularJS application
A)ng-app
B)ng-model
C)ng-bind
D)none of these.
A)ng-app
B)ng-model
C)ng-bind
D)none of these.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
Angular 1 core concept was $scope, and you will not find $scope in angular 2.0. Angular 2 is using . . . . . . . . to detect changes.
A)zone$.js
B)Scope.js
C)zone.js
D)zones.js
A)zone$.js
B)Scope.js
C)zone.js
D)zones.js
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
Angular 2.0 contains a logging service called . . . . . which is very useful feature measuring where time is spent in your application.
A)config.js
B)logging.js
C)diary.js
D)none of above
A)config.js
B)logging.js
C)diary.js
D)none of above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck