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

Explaination

Expressions are used to bind application data to html. Expressions are written inside double braces like {{ expression}}. Expressions behave in same way as ng-bind directives. AngularJS application expressions are pure JavaScript expressions and outputs the data where they are used.

Answer : A

Explaination

AngularJS expressions are written inside double braces like {{ expression}}.

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 - AngularJS needs data in JSON format to populate its model.

A - true

B - false

Answer : A

Explaination

AngularJS needs data in JSON format to populate its model.

Q 6 - Which components can be injected as a dependency in AngularJS?

A - value

B - factory

C - service

D - All of the above.

Answer : D

Explaination

All of the above can be injected as dependency.

Q 7 - constants are used to pass values at config phase.

A - true

B - false

Answer : A

Explaination

constants are used to pass values at config phase considering the fact that value cannot be used to be passed during config phase.

Q 8 - With AngularJS, developer writes less code and gets more functionality.

A - false

B - true

Answer : B

Explaination

With AngularJS, developer writes less code and gets more functionality.

Q 9 - AngularJS uses two way data binding.

A - false

B - true

Answer : B

Explaination

AngularJS uses two way data binding.

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