AngularJS quiz questions

AngularJS interview questions

  • 1.

    Each controller accepts $scope as a parameter which refers to the application/module that controller is to control.

    1. true

    2. false

    Answer
  • 2.

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

    1. true

    2. false

    Answer
  • 3.

    Services are singleton objects which are instantiated only once in app.

    1. false

    2. true

    Answer
  • 4.

    Child controller inherits the scope of its parent controller.

    1. true

    2. false

    Answer
  • 5.

    $rootScope is the parent of all of the scope variables.

    1. true

    2. false

    Answer
  • 6.

    Which of the following is true about orderby filter?

    1. orderby filter orders the array based on provided criteria.

    2. orderby filter is used to filter the array to a subset of it based on provided criteria.

    3. Both of the above.

    4. None of the above.

    Answer
  • 7.

    What is Model in MVC?

    1. Model represents server side data.

    2. Model represents data stored in database.

    3. Model is the lowest level of the pattern responsible for maintaining data.

    4. None of the above.

    Answer
  • 8.

    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
  • 9.

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

    1. false

    2. true

    Answer
  • 10.

    Each controller accepts $scope as a parameter which refers to the application/module that controller is to control.

    1. true

    2. false

    Answer
  • 11.

    Being JavaScript only framework, application written in AngularJS are not safe and secure.

    1. true

    2. false

    Answer
  • 12.

    Is AngularJS extensible?

    1. false

    2. true

    Answer
  • 13.

    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
  • 14.

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

    1. true

    2. false

    Answer
  • 15.

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

    1. ng-disabled directive can enable a given control.

    2. ng-disabled directive can disable a given control.

    3. Both of the above.

    4. None of the above.

    Answer
  • 16.

    What MVC stands for?

    1. Model View Control

    2. Model View Controller

    3. Main View Controller

    4. Main View Control

    Answer
  • 17.

    Do AngularJS provide reusable components?

    1. false

    2. true

    Answer
  • 18.

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

    1. true

    2. false

    Answer
  • 19.

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

    1. false

    2. true

    Answer
  • 20.

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

    1. true

    2. false

    Answer

© 2017 QuizBucket.org