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

Explaination

ng-model directive binds the values of AngularJS application data to HTML input controls. It creates a model variable which can be used with the html page and within the container control( for example, div) having ng-app directive.

Answer : C

Explaination

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

Answer : C

Explaination

ng-hide directive shows/hides a given control.

Answer : A

Explaination

Using AngularJS, we can embed HTML pages within a HTML page using ng-include directive.

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 - Filters select a subset of items from an array and return a new array.

A - true

B - false

Answer : A

Explaination

Filters select a subset of items from an array and return a new array.

Q 8 - AngularJS uses dependency injection and make use of separation of concerns.

A - false

B - true

C -

D -

Answer : B

Explaination

AngularJS uses dependency injection and make use of separation of concerns.

Q 9 - ng-init directive can be used to put values to the variables to be used in the application.

A - true

B - false

Answer : A

Explaination

ng-init directive can be used to put values to the variables to be used in the application.

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

A - true

B - false

Answer : A

Explaination

orderby filter is applied to an expression using pipe character.


angularjs_questions_answers.htm

Advertisements