AngularJS Online Test TutorialsPoint
AngularJS Online Test TutorialsPoint
A - true
B - false
Answer : A
Explaination
Scopes are objects that refer to the model. They act as glue between controller and
view.
Show Answer
Q - We can use $dirty and $invalid flags to do the form validations.
A - true
B - false
Answer : A
Explaination
Show Answer
Q - AngularJS expressions behave in same way as ng-bind directives.
A - false
B - true
Answer : B
Explaination
AngularJS expressions behave in same way as ng-bind directives.
Show Answer
Q - AngularJS Expressions are written inside double braces like {{ expression}}.
A - false
B - true
Answer : B
Explaination
AngularJS Expressions are written inside double braces like {{ expression}}.
Show Answer
Q - Which of the following is true about AngularJS expressions?
Answer : D
Explaination
Expressions are used to bind application data to html. Expressions are written inside
double braces like {{ expression}}. Expressions behave in same way as ng-bind
directives. AngularJS application expressions are pure JavaScript expressions and
outputs the data where they are used.
Show Answer
Q - Model available in $rootScope can be overridden by its all child scopes.
A - true
B - false
Answer : A
Explaination
Model available in $rootScope can be overridden by its all child scopes.
Show Answer
Q - Which of the following is true about AngularJS?
A - AngularJS is a framework to build large scale and high performance web appliation
while keeping them as easy-to-maintain.
Answer : D
Explaination
All of the above statements are correct with respect to AngularJS framework.
Show Answer
Q - Are application written using AngularJS cross browser compliant?
A - true
B - false
Answer : A
Explaination
True! Applications written in AngularJS are cross-browser compliant. AngularJS
automatically handles JavaScript code suitable for each browser.
Show Answer
Q - Using service method, we define a service and then assign method to it.
A - true
B - false
Answer : A
Explaination
Using service method, we define a service and then assign method to it.
Show Answer
Q - AngularJS uses two way data binding.
A - false
B - true
Show Answer
Q - Templates can be a single file (like index.html) or multiple views in one page.
A - true
B - false
Answer : A
Explaination
Templates can be a single file (like index.html) or multiple views in one page using
"partials".
Show Answer
Q - Which of the following is true about AngularJS service?
Answer : D
Explaination
Services are JavaScript functions and are responsible to do specific tasks only. Each
service is responsible for a specific task for example, $http is used to make ajax call to
get the server data. $route is used to define the routing information and so on. Inbuilt
services are always prefixed with $ symbol.
Show Answer
Q - $rootScope is the parent of all of the scope variables.
A - true
B - false
Answer : A
Explaination
$rootScope is the parent of all of the scope variables.
Show Answer
Q - What happens when page containing AngularJS based Application loads.
A - HTML document is loaded into the browser, and evaluated by the browser.
Answer : D
Explaination
When the page is loaded in the browser; HTML document is loaded into the browser,
and evaluated by the browser. AngularJS JavaScript file is loaded; the angular global
object is created. Next, JavaScript which registers controller functions is executed.
Show Answer
Q - In controllers, model data is accessed via $scope object.
A - true
B - false
Answer : A
Explaination
In controllers, model data is accessed via $scope object.
Show Answer
Q - AngularJS Expressions are used to bind application data to html.
A - true
B - false
Answer : A
Explaination
AngularJS Expressions are used to bind application data to html.
Show Answer
Q - AngularJS expressions are written using.
Answer : A
Explaination
AngularJS expressions are written inside double braces like {{ expression}}.
Show Answer
Q - lowercase filter is applied to an expression using pipe character.
A - false
B - true
Answer : B
Explaination
lowercase filter is applied to an expression using pipe character.
Show Answer
Q - AngularJS applications can run on all major browsers and smart phones including
Android and iOS based phones/tablets.
A - true
B - false
Answer : A
Explaination
AngularJS applications can run on all major browsers and smart phones including
Android and iOS based phones/tablets.
Show Answer
Q - currency filter is applied to an expression using pipe character.
A - true
B - false
Answer : A
Explaination
currency filter is applied to an expression using pipe character.