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-bind directive binds the AngularJS Application data to HTML tags. ng-bind updates the model created by ng-model directive to be displayed in the html tag whenever user input something in the control or updates the html control's data when model data is updated by controller.

Answer : B

Explaination

MVC stands for Model View Controller.

Answer : B

Explaination

Currency filter formats text in a currency format. It is simply added to AngularJS expression to filter out the result.

Answer : A

Explaination

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

Answer : D

Explaination

provider is used by AngularJS internally to create services, factory etc. during config phase(phase during which AngularJS bootstraps itself). Below mention script can be used to create MathService that we've created earlier. Provider is a special factory method with a method get() which is used to return the value/service/factory.

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 - 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 - AngularJS expressions behave in same way as ng-bind directives.

A - true

B - false

Answer : A

Explaination

AngularJS expressions behave in same way as ng-bind directives.

Q 10 - We need to incorporate corresponding js according to locale of the country to support Internationalization in AngularJS based application.

A - true

B - false

Answer : A

Explaination

AngularJS supports inbuilt internationalization for three types of filters currency, date and numbers. We only need to incorporate corresponding js according to locale of the country. By default it handles the locale of the browser. For example, to use Danish locale, use following script

<script src="https://code.angularjs.org/1.2.5/i18n/angular-locale_da-dk.js"></script> 

angularjs_questions_answers.htm

Advertisements