AngularJS quiz questions

AngularJS interview questions

  • 1.

    What are various possible prefixes such as 'ng-' using which Angular directives (for example, ng-app) can be defined?

    1. 'ng-', 'data-ng-', 'ng:'

    2. 'ng-'

    3. 'ng-', 'data-ng-', 'ng:', 'x-ng-'

    4. 'ng-', 'data-ng-','x-ng-'

    Answer
  • 2.

    Which of the following is validation css class in AngularJS

    1. ng-valid

    2. ng-invalid

    3. ng-pristine

    4. All of the above

    Answer
  • 3.

    Which of the following is validation css class in AngularJS

    1. ng-valid

    2. ng-invalid

    3. ng-pristine

    4. All of the above

    Answer
  • 4.

    Which of the followings are validation directives?

    1. ng-required

    2. ng-minlength

    3. ng-pattern

    4. All of the above

    Answer
  • 5.

    Which of the followings are validation directives?

    1. ng-required

    2. ng-minlength

    3. ng-pattern

    4. All of the above

    Answer
  • 6.

    Which of the following provider can be used to configure routes?

    1. $routeProvider

    2. $url

    3. $rulesProvider

    4. None of the above

    Answer
  • 7.

    Which of the following provider can be used to configure routes?

    1. $routeProvider

    2. $url

    3. $rulesProvider

    4. None of the above

    Answer
  • 8.

    Which of the following module is required for routing?

    1. angular.js

    2. angular-route.js

    3. angularRouting.js

    4. route.js

    Answer
  • 9.

    Which of the following module is required for routing?

    1. angular.js

    2. angular-route.js

    3. angularRouting.js

    4. route.js

    Answer
  • 10.

    Which of the following service is used to handle uncaught exceptions in AngularJS?

    1. $errorHandler

    2. $exception

    3. $log

    4. $exceptionHandler

    Answer
  • 11.

    Which of the following service is used to handle uncaught exceptions in AngularJS?

    1. $errorHandler

    2. $exception

    3. $log

    4. $exceptionHandler

    Answer
  • 12.

    Which of the following service is used to retrieve or submit data to the remote server?

    1. $http

    2. $XMLHttpRequest

    3. $window

    4. $get

    Answer
  • 13.

    Which of the following service is used to retrieve or submit data to the remote server?

    1. $http

    2. $XMLHttpRequest

    3. $window

    4. $get

    Answer
  • 14.

    Which of the following statements are true?

    1. AngularJS controller maintains application data & behaviour using $scope

    2. AngularJS controller can be created in separate JS file

    3. AngularJS controller can be added into module

    4. All of the above

    Answer
  • 15.

    Which of the following statements are true?

    1. AngularJS controller maintains application data & behaviour using $scope

    2. AngularJS controller can be created in separate JS file

    3. AngularJS controller can be added into module

    4. All of the above

    Answer
  • 16.

    AngularJS module can be created using ________.

    1. angular.module();

    2. var myModule = new module();

    3. module.create();

    4. angular.create();

    Answer
  • 17.

    AngularJS module can be created using ________.

    1. angular.module();

    2. var myModule = new module();

    3. module.create();

    4. angular.create();

    Answer
  • 18.

    AngularJS filters ___________.

    1. Format the data without changing original data

    2. Filter the data to display on UI

    3. Fetch the data from remote server

    4. Cache the subset of data on the browser

    Answer
  • 19.

    AngularJS filters ___________.

    1. Format the data without changing original data

    2. Filter the data to display on UI

    3. Fetch the data from remote server

    4. Cache the subset of data on the browser

    Answer
  • 20.

    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

© 2017 QuizBucket.org