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

Explaination

ng-app directive defines and links an AngularJS application to HTML. It also indicate the start of the application.

Answer : B

Explaination

Model View Controller or MVC as it is popularly called, is a software design pattern for developing web applications.

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 - Model available in $rootScope is available to its all child scopes.

A - true

B - false

Answer : A

Explaination

Model available in $rootScope is available to its all child scopes.

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 - Custom directives are defined using "directive" function.

A - true

B - false

Answer : A

Explaination

Custom directives are defined using "directive" function.

Q 8 - ng-app directive defines and links an AngularJS application to HTML.

A - false

B - true

Answer : B

Explaination

ng-app directive defines and links an AngularJS application to HTML.

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 - Inbuilt services are always prefixed with $ symbol.

A - true

B - false

Answer : A

Explaination

Inbuilt services are always prefixed with $ symbol.

angularjs_questions_answers.htm
Advertisements