4.Filter ,Forms and Ajax Filters
1.Explain different types of filters in AngularJs
2.What are AngularJs Forms ?Explain its elements?
3.What is $http service?
4.What is custom validation ?Explain ?
5.What are custom model update triggers? Justify?
6.Explain date filter with example.
7.List validation in AngularJs ?
8.How can someone make an AJAX call using AngularJs?
1.Which directive binds the value of application
data to HTML input controls in AngularJS?
A.Ng-app
B.Ng-model
C.Ng-bind
D.None of the above
2.Which of the following in a filter in AngularJS?
A.Currency
B.Date
C.Uppercase
D.All of the above
3.How to combine filter with an expression ?
A.{{expression,pipe}}
B.{{expression.pipe}}
C.{{expression|pipe}}
D.{{expression/pipe}}
4.Which service is used to connect with remote
server?
A.$service
B.$http
C.$route
D.$interval
5.Which of the following are validation directives?
A.ng-required
B.ng-minlength
C.ng-pattern
D.All of Above
6.Which of the following directive allows us to use
forms?
A.ng-include
B.ng-bind
C.ng-form
D.ng-attach
7.Which of the following is not a valid angular
filter?
A.lowercase
B.orderby
C.email
D.currency
8.Which angular directive is used to bind the values
of HTML controls (input,select,textarea)to application data?
A.ng-interval
B.ng-bind
C.ng-model
D.ng-timeout
9.AngularJS directives are used in
A.service
B.module
C.view
D.component
10.Which of the following is valid AngularJs
expression?
A.{{4+5}}
B.{4+5}
C.(4+5)
D.({4+5})
11.What is the purpose of $http?
A.It is an inbuilt service used to make a ajax call
to get the server data.
B.It is the http protocol.
C.It generates hypertext language.
D.None of above.
12.We can use $dirty and $invalid flags to do the
form validations.
A.True
B.False
13. Model available in $rootScope can be overridden
by its all child scopes.
A.True
B.False
14.$rootScope is the parent of all of the scope
variables.
A.True
B.False
15.Which of the following is true about
$routeProvider?
A.$routeProvider is the key service which set the
configuration of urls.
B.$routeProvider maps Urls with the corresponding
html page or ng-template.
C.$routeProvider attaches a controller with the
view.
D.All of the above.
16.$http service is used to make an Ajax call to
server.
A.True
B.False
17.AngularJS needs data in JSON format to populate
its model.
A.True
B.False
18.Which of the following is true about currency
filter?
A.Currency filter formats text in a currency format.
B.Currency filter is a function which takes text as
input.
C.Both of the above.
D.None of the above.
19.Which of the following is true about uppercase
filter?
A.Uppercase filter is a function which takes text as
input.
B.Uppercase filter converts a text to upper case
text.
C.Both of the above.
D.None of the above.
20.Which of the following is true about lowercase
filter?
A.Lowercase filter converts a text to lower case text.
B.Lowercase filter is a function which takes text as
input.
C.Both of the above.
D.None of the above.
21.Which of the following is true about currency
filter?
A.Currency filter formats text in a currency format.
B.Currency filter is a function which takes text as
input.
C.Both of the above.
D.None of the above.
22.Which of the following is true about filter
filter?
A.filter filter is a function which takes text as
input.
B. filter 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.
23.Which of the following is true about orderby
filter?
A.orderby filter orders the array based on provided
criteria.
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.
24.Which of the following is true about $dirty flag?
A.$dirty flag states that value has been changed.
B.$dirty flag states that form has invalid data.
C.Both of the above.
D.None of the above.
25.Which of the following is true about $invalid
flag?
A.$invalid flag states that value has been changed
B.$invalid flag states that form has invalid data.
C.Both of the above.
D.None of the above.