- 
	
What does ng-class directive do in AngularJS?
- A) It binds CSS classes to HTML elements based on expression evaluation.
 - 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 CSS classes to HTML elements based on expression evaluation.
 - 
	
Which AngularJS service is used for browser cookies manipulation?
- A) $cookies
 - B) $cookieStore
 - C) $browser
 - D) $cookie
 
Answer: A) $cookies
 - 
	
What is the purpose of ng-hide directive in AngularJS?
- A) It hides an HTML element.
 - B) It initializes the AngularJS application.
 - C) It defines a new controller in AngularJS.
 - D) It binds CSS classes to HTML elements based on expression evaluation.
 
Answer: A) It hides an HTML element.
 - 
	
Which AngularJS service is used for broadcasting events to child scopes?
- A) $broadcast
 - B) $emit
 - C) $on
 - D) $watch
 
Answer: A) $broadcast
 - 
	
What is the purpose of ng-checked directive in AngularJS?
- A) It binds the checked state of an input 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 checked state of an input element to an expression.
 - 
	
What does ng-disabled directive do in AngularJS?
- A) It disables an HTML element.
 - B) It initializes the AngularJS application.
 - C) It defines a new controller in AngularJS.
 - D) It binds the disabled state of an input element to an expression.
 
Answer: D) It binds the disabled state of an input element to an expression.
 - 
	
Which AngularJS service is used for making AJAX requests and handling responses?
- A) $http
 - B) $ajax
 - C) $request
 - D) $fetch
 
Answer: A) $http
 - 
	
What is the purpose of ng-options directive in AngularJS?
- A) It initializes options for a select element.
 - B) It binds a select element to a model.
 - C) It initializes the AngularJS application.
 - D) It defines a new controller in AngularJS.
 
Answer: A) It initializes options for a select element.
 - 
	
Which AngularJS directive is used to dynamically load templates?
- A) ng-template
 - B) ng-include
 - C) ng-view
 - D) ng-switch
 
Answer: B) ng-include
 - 
	
What is the purpose of ng-selected directive in AngularJS?
- A) It binds the selected state of an option 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 selected state of an option element to an expression.
 

Comments