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 - Is AngularJS code unit testable?

A - false

B - true

Answer : B

Explaination

AngularJS code is unit testable.

Answer : B

Explaination

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

Q 4 - angular.module is primarily used to create application module.

A - true

B - false

Answer : A

Explaination

angular.module is primarily used to create application module.

Answer : A

Explaination

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

Q 6 - factory method is used to define a factory which can later be used to create services as and when required.

A - true

B - false

Answer : A

Explaination

factory method is used to define a factory which can later be used to create services as and when required.

Q 7 - Templates are the rendered view with information from the controller and model.

A - true

B - false

Answer : A

Explaination

Templates are the rendered view with information from the controller and model.

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 - AngularJS Expressions are used to bind application data to html.

A - true

B - false

Answer : A

Explaination

AngularJS Expressions are used to bind application data to html.

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