AngularJS Online Quiz



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

Answer : D

Explaination

ng-controller directive tells AngularJS what controller to use with this view. AngularJS application mainly relies on controllers to control the flow of data in the application. A controller is a JavaScript object containing attributes/properties and functions. Each controller accepts $scope as a parameter which refers to the application/module that controller is to control.

Answer : A

Explaination

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

Q 4 - ng-click directive represents a AngularJS click event.

A - true

B - false

Answer : A

Explaination

ng-click directive represents a AngularJS click event.

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 - factory method is used to define a factory which can later be used to create services as and when required.

A - true

B - false

Answer : A

Explaination

factory method is used to define a factory which can later be used to create services as and when required.

Q 7 - Scope act as glue between controller and view.

A - true

B - false

Answer : A

Explaination

Scopes are objects that refer to the model. They act as glue between controller and view.

Q 8 - With AngularJS, developer writes less code and gets more functionality.

A - false

B - true

Answer : B

Explaination

With AngularJS, developer writes less code and gets more functionality.

Q 9 - AngularJS uses two way data binding.

A - false

B - true

Answer : B

Explaination

AngularJS uses two way data binding.

Q 10 - AngularJS bootstraps itself during config phase.

A - true

B - false

Answer : A

Explaination

AngularJS bootstraps itself during config phase.

angularjs_questions_answers.htm
Advertisements