AngularJS quiz questions

AngularJS interview questions

  • 1.

    AngularJS directives are used in ________.

    1. Model

    2. View

    3. Controller

    4. Module

    Answer
  • 2.

    Is AngularJS code unit testable?

    1. true

    2. false

    Answer
  • 3.

    config phase is the phase during which AngularJS bootstraps itself.

    1. true

    2. false

    Answer
  • 4.

    Which of the following is true about ng-include directive?

    1. Embed HTML pages within a HTML page using ng-include directive

    2. Embed JS files within a HTML page using ng-include directive

    3. Both of the above.

    4. None of the above.

    Answer
  • 5.

    Which of the following is true about currency filter?

    1. Currency filter formats text in a currency format.

    2. Currency filter is a function which takes text as input.

    3. Both of the above.

    4. None of the above.

    Answer
  • 6.

    What is deep linking in AngularJS?

    1. Deep linking allows you to encode the state of application in the URL so that it can be bookmarked.

    2. Deep linking is a SEO based technique.

    3. Deep linking refers to linking various views to a central page.

    4. None of the above.

    Answer
  • 7.

    Which of the following is true about AngularJS service?

    1. Services are JavaScript functions.

    2. Services are responsible to do specific tasks only

    3. Inbuilt services are always prefixed with $ symbol.

    4. All of the above.

    Answer
  • 8.

    Which of the following is true about $routeProvider?

    1. $routeProvider is the key service which set the configuration of urls.

    2. $routeProvider maps Urls with the corresponding html page or ng-template.

    3. $routeProvider attaches a controller with the view.

    4. All of the above.

    Answer
  • 9.

    Which of the following is true about lowercase filter?

    1. Lowercase filter converts a text to lower case text.

    2. Lowercase filter is a function which takes text as input.

    3. Both of the above.

    4. None of the above.

    Answer
  • 10.

    Use novalidate with a form declaration to disable any browser specific validation.

    1. true

    2. false

    Answer
  • 11.

    Which of the following is true about $dirty flag?

    1. $dirty flag states that value has been changed.

    2. $dirty flag states that form has invalid data.

    3. Both of the above.

    4. None of the above.

    Answer
  • 12.

    In AngularJS, Scope contains the model data.

    1. true

    2. false

    Answer
  • 13.

    AngularJS Expressions are written inside double braces like {{ expression}}.

    1. false

    2. true

    Answer
  • 14.

    AngularJS provides capability to create Single Page Application in a very clean and maintainable way.

    1. true

    2. false

    Answer
  • 15.

    AngularJS supports inbuilt internationalization for three types of filters currency, date and numbers.

    1. true

    2. false

    Answer
  • 16.

    factory method is used to define a factory which can later be used to create services as and when required.

    1. true

    2. false

    Answer
  • 17.

    Model available in $rootScope can be overridden by its all child scopes.

    1. true

    2. false

    Answer
  • 18.

    ng-click directive represents a AngularJS click event.

    1. true

    2. false

    Answer
  • 19.

    Which of the following is true about ng-controller directive?

    1. ng-controller directive tells AngularJS what controller to use with this view.

    2. AngularJS application mainly relies on controllers to control the flow of data in the application.

    3. A controller is a JavaScript object containing attributes/properties and functions.

    4. All of the above.

    Answer
  • 20.

    novalidate with a form declaration disables any browser specific validation.

    1. false

    2. true

    Answer

© 2017 QuizBucket.org