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

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.

Answer : C

Explaination

ng-hide directive shows/hides a given control.

Answer : B

Explaination

$invalid flag states that form has invalid data.

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

A - Application Module

B - constant

C - value

D - factory

Answer : A

Explaination

Application Module can not be injected as dependency.

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 - 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 - 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 controllers, model data is accessed via $scope object.

A - true

B - false

Answer : A

Explaination

In controllers, model data is accessed via $scope object.

angularjs_questions_answers.htm
Advertisements