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

Q 2 - Which of the following is not a core AngularJS directive.

A - ng-app

B - ng-model

C - ng-bind

D - ng-state

Answer : D

Explaination

ng-state is not an AngularJS directive.

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

Answer : A

Explaination

orderby filter orders the array based on provided criteria. It is simply added to AngularJS expression to order the result.

Q 5 - Use novalidate with a form declaration to disable any browser specific validation.

A - true

B - false

Answer : A

Explaination

Use novalidate with a form declaration to disable any browser specific validation.

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.

Q 7 - Is AngularJS extensible?

A - false

B - true

Answer : B

Explaination

Yes! In AngularJS we can create custom directive to extend AngularJS existing functionalities.

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

Q 9 - filter filter is applied to an expression using pipe character.

A - true

B - false

Answer : A

Explaination

filter filter is applied to an expression using pipe character.

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