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

Explaination

Deep linking allows you to encode the state of application in the URL so that it can be bookmarked. The application can then be restored from the URL to the same state.

Answer : B

Explaination

Uppercase filter converts a text to upper case text. It is simply added to AngularJS expression to filter out the result.

Answer : C

Explaination

ng-disabled directive disables/enables a given control.

Answer : A

Explaination

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

Q 6 - config phase is the phase during which AngularJS bootstraps itself.

A - true

B - false

Answer : A

Explaination

config phase is the phase during which AngularJS bootstraps itself.

Q 7 - On which of the following types of component can we create a custom directive?

A - Element directives

B - Attribute

C - CSS

D - All of the above.

Answer : D

Explaination

AngularJS provides support to create custom directives for following type of elements.

  • Element directives - Directive activates when a matching element is encountered.

  • Attribute - Directive activates when a matching attribute is encountered.

  • CSS - Directive activates when a matching css style is encountered.

  • Comment - Directive activates when a matching comment is encountered.

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 - filter filter is applied to an expression using pipe character.

A - true

B - false

Answer : A

Explaination

filter filter is applied to an expression using pipe character.

Q 10 - In AngularJS, Scope contains the model data.

A - true

B - false

Answer : A

Explaination

In AngularJS, Scope contains the model data.

angularjs_questions_answers.htm
Advertisements