AngularJS quiz questions

AngularJS interview questions

  • 1.

    What is service in AngularJS?

    1. Service is reusable UI component.

    2. Service is a reusable JavaScript function.

    3. Service is data provider

    4. None of the above

    Answer
  • 2.

    Which of the following directive allows us to use form?

    1. ng-include

    2. ng-form

    3. ng-bind

    4. ng-attach

    Answer
  • 3.

    Which of the following directive allows us to use form?

    1. ng-include

    2. ng-form

    3. ng-bind

    4. ng-attach

    Answer
  • 4.

    The ng-change directive must be used with ng-model directives.

    1. True

    2. False

    3. Sometimes

    4. None of the above

    Answer
  • 5.

    The ng-change directive must be used with ng-model directives.

    1. True

    2. False

    3. Sometimes

    4. None of the above

    Answer
  • 6.

    What is $scope?

    1. It transfers data between a controller and view

    2. It transfers data between model and controller

    3. It is a global scope in AngularJS.

    4. None of the above

    Answer
  • 7.

    What is $scope?

    1. It transfers data between a controller and view

    2. It transfers data between model and controller

    3. It is a global scope in AngularJS.

    4. None of the above

    Answer
  • 8.

    The ng-bind directive binds ____________.

    1. Data to model

    2. View to controller

    3. Model to HTML element

    4. Model to $scope

    Answer
  • 9.

    The ng-bind directive binds ____________.

    1. Data to model

    2. View to controller

    3. Model to HTML element

    4. Model to $scope

    Answer
  • 10.

    The ng-model directive is used for __________.

    1. One-way data binding

    2. Two-way data binding

    3. Binding view to controller

    4. None of the above

    Answer
  • 11.

    The ng-model directive is used for __________.

    1. One-way data binding

    2. Two-way data binding

    3. Binding view to controller

    4. None of the above

    Answer
  • 12.

    AngularJS directives can be written in HTML element as:

    1. Tag

    2. Attribute

    3. Class name

    4. All of the above

    Answer
  • 13.

    AngularJS directives can be written in HTML element as:

    1. Tag

    2. Attribute

    3. Class name

    4. All of the above

    Answer
  • 14.

    Which of the following statements are true?

    1. Expression cannot contain condition, loop or RegEx

    2. Expression cannot declare a function

    3. Expression cannot contain comma, void or return keyword

    4. All of the above

    Answer
  • 15.

    Which of the following statements are true?

    1. Expression cannot contain condition, loop or RegEx

    2. Expression cannot declare a function

    3. Expression cannot contain comma, void or return keyword

    4. All of the above

    Answer
  • 16.

    Which of the following is a valid AngularJS expression?

    1. {{ 2 + 2 }}

    2. { 2 + 2 }

    3. (( 2 + 2 ))

    4. { (2 + 2) }

    Answer
  • 17.

    Which of the following is a valid AngularJS expression?

    1. {{ 2 + 2 }}

    2. { 2 + 2 }

    3. (( 2 + 2 ))

    4. { (2 + 2) }

    Answer
  • 18.

    Which of the following directive bootstraps AngularJS framework?

    1. ng-init

    2. ng-app

    3. ng-controller

    4. ng-bootstrap

    Answer
  • 19.

    Which of the following directive bootstraps AngularJS framework?

    1. ng-init

    2. ng-app

    3. ng-controller

    4. ng-bootstrap

    Answer
  • 20.

    AngularJS directives are used in ________.

    1. Model

    2. View

    3. Controller

    4. Module

    Answer

© 2017 QuizBucket.org