AngularJS Online Quiz


Advertisements

Following quiz provides Multiple Choice Questions (MCQs) related to AngularJS Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Q 2 - Is AngularJS code unit testable?

A - false

B - true

Answer : B

Explaination

AngularJS code is unit testable.

Answer : A

Explaination

AngularJS expressions are written inside double braces like {{ expression}}.

Q 4 - angular.module is primarily used to create application module.

A - true

B - false

Answer : A

Explaination

angular.module is primarily used to create application module.

Q 5 - $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.

Q 6 - Which components can be injected as a dependency in AngularJS?

A - value

B - factory

C - service

D - All of the above.

Answer : D

Explaination

All of the above can be injected as dependency.

Q 7 - constants are used to pass values at config phase.

A - true

B - false

Answer : A

Explaination

constants are used to pass values at config phase considering the fact that value cannot be used to be passed during config phase.

Q 8 - ng-model binds the values of AngularJS application data to HTML input controls.

A - true

B - false

Answer : A

Explaination

ng-model binds the values of AngularJS application data to HTML input controls.

Q 9 - AngularJS expressions behave in same way as ng-bind directives.

A - true

B - false

Answer : A

Explaination

AngularJS expressions behave in same way as ng-bind directives.

Q 10 - 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.

angularjs_questions_answers.htm
Advertisements