Angular Js(Engineering > Computer Science And Engineering ) Questions and Answers

Question 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-'
Explanation:-
Answer: Option C. -> 'ng-', 'data-ng-', 'ng:', 'x-ng-'





Question 2. Is AngularJS extensible?
  1.    false
  2.    true
  3.    All of the above
  4.    None
Explanation:-
Answer: Option B. -> true





Question 3. Can an HTML page have multiple "ng-app directive for bootstrapping multiple AngularJS application?
  1.    Yes
  2.    No
  3.    None
  4.    All
Explanation:-
Answer: Option B. -> No





Question 4. Which of the followings are validation directives?
  1.    ng-required
  2.    ng-minlength
  3.    ng-pattern
  4.    All of the above
Explanation:-
Answer: Option D. -> All of the above





Question 5. What is a controller in MVC?
  1.    It is a software Code that stores the data
  2.    It is a software Code that renders the user interface
  3.    It is a software Code that controls the interactions between the Model and View
  4.    None of the above
Explanation:-
Answer: Option C. -> It is a software Code that controls the interactions between the Model and View





Question 6. Which components can be injected as a dependency in AngularJS?
  1.    Application Module
  2.    constant
  3.    value
  4.    factory
Explanation:-
Answer: Option A. -> Application Module





Question 7. Which of the following is true about AngularJS expressions
  1.    Expressions behave in same way as ng-bind directives
  2.    All of these
  3.    Expressions are written inside double braces like {{ expression}}
  4.    Expressions are used to bind application data to html
Explanation:-
Answer: Option B. -> All of these





Question 8. Who is sometimes called as Father of AngularJS?
  1.    Brad Green
  2.    Igor Minor
  3.    Misko Hevery
  4.    Brian Ford
Explanation:-
Answer: Option C. -> Misko Hevery





Question 9. AngularJS module can be created using ________
  1.    angular.module();
  2.    var myModule = new module();
  3.    module.create();
  4.    angular.create();
Explanation:-
Answer: Option A. -> angular.module();





Question 10. Angular initializes based upon which of the following scenario?
  1.    DOMContentLoaded event happens
  2.    document.readyState is set to complete
  3.    Both of the above
  4.    None of the above
Explanation:-
Answer: Option C. -> Both of the above