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

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 : C

Explaination

Model is the lowest level of the pattern responsible for maintaining data.

Answer : B

Explaination

filter filter is used to filter the array to a subset of it based on provided criteria. It is simply added to AngularJS expression to filter out the result.

Answer : B

Explaination

$error states the exact error.

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 - Custom directives are used in AngularJS to extend the functionality of HTML.

A - true

B - false

Answer : A

Explaination

Custom directives are used in AngularJS to extend the functionality of HTML.

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

Q 9 - AngularJS uses two way data binding.

A - false

B - true

Answer : B

Explaination

AngularJS uses two way data binding.

Q 10 - In controllers, model data is accessed via $scope object.

A - false

B - true

Answer : B

Explaination

In controllers, model data is accessed via $scope object.


angularjs_questions_answers.htm

Advertisements