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

Explaination

It is a software Code that controls the interactions between the Model and View.

Answer : B

Explaination

filter filter is used to filter the array to a subset of it based on provided criteria. It is simply added to AngularJS expression to filter out 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 - Using service method, we define a service and then assign method to it.

A - true

B - false

Answer : A

Explaination

Using service method, we define a service and then assign method to it.

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 - Templates can be a single file (like index.html) or multiple views in one page.

A - true

B - false

Answer : A

Explaination

Templates can be a single file (like index.html) or multiple views in one page using "partials".

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 - Internationalization is a way to show locale specific information on a website.

A - false

B - true

Answer : B

Explaination

Internationalization is a way to show locale specific information on a website.

angularjs_questions_answers.htm
Advertisements