Create New Post

AngularJS MCQs - 10

 

  1. What does ng-dblclick directive do in AngularJS?

    • A) It binds a double-click event to a function.
    • B) It initializes the AngularJS application.
    • C) It defines a new controller in AngularJS.
    • D) It hides an element until AngularJS has finished its compilation.

    Answer: A) It binds a double-click event to a function.

  2. Which AngularJS service is used for making XMLHTTPRequest calls?

    • A) $http
    • B) $xhr
    • C) $ajax
    • D) $request

    Answer: A) $http

  3. What is the purpose of ng-mousedown directive in AngularJS?

    • A) It binds a mousedown event to a function.
    • B) It initializes the AngularJS application.
    • C) It defines a new controller in AngularJS.
    • D) It hides an element until AngularJS has finished its compilation.

    Answer: A) It binds a mousedown event to a function.

  4. Which AngularJS service is used for managing browser location and URL parsing?

    • A) $location
    • B) $router
    • C) $url
    • D) $navigate

    Answer: A) $location

  5. What is the purpose of ng-mouseout directive in AngularJS?

    • A) It binds a mouseout event to a function.
    • B) It initializes the AngularJS application.
    • C) It defines a new controller in AngularJS.
    • D) It hides an element until AngularJS has finished its compilation.

    Answer: A) It binds a mouseout event to a function.

  6. What does ng-mouseup directive do in AngularJS?

    • A) It binds a mouseup event to a function.
    • B) It initializes the AngularJS application.
    • C) It defines a new controller in AngularJS.
    • D) It hides an element until AngularJS has finished its compilation.

    Answer: A) It binds a mouseup event to a function.

  7. Which AngularJS service is used for dependency injection in AngularJS?

    • A) $inject
    • B) $di
    • C) $injector
    • D) $dependency

    Answer: C) $injector

  8. What is the purpose of ng-submit directive in AngularJS?

    • A) It binds a form submission event to a function.
    • B) It initializes the AngularJS application.
    • C) It defines a new controller in AngularJS.
    • D) It submits a form automatically.

    Answer: A) It binds a form submission event to a function.

  9.  
  10. Which AngularJS service is used for managing animations in AngularJS applications?

    • A) $animate
    • B) $animation
    • C) $angularAnimate
    • D) $animationService

    Answer: A) $animate

  11. What is the purpose of ng-readonly directive in AngularJS?
    - A) It binds the readonly attribute of an element to an expression. - B) It initializes the AngularJS application. - C) It defines a new controller in AngularJS. - D) It hides an element until AngularJS has finished its compilation.
    Answer: A) It binds the readonly attribute of an element to an expression.
     

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

30714