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

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

Explaination

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

Answer : C

Explaination

ng-show directive shows/hides a given control.

Answer : A

Explaination

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

Q 6 - Child controller inherits the scope of its parent controller.

A - true

B - false

Answer : A

Explaination

Child controller inherits the scope of its parent controller.

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