Angular JS is a JavaScript library that makes developing single page applications easy. It is written in JavaScript. The document tests knowledge about key Angular concepts like directives, data binding, controllers and scopes. It also covers services, routing, forms and animations in Angular.
Angular JS is a JavaScript library that makes developing single page applications easy. It is written in JavaScript. The document tests knowledge about key Angular concepts like directives, data binding, controllers and scopes. It also covers services, routing, forms and animations in Angular.
a) True b) False 2. AngularJS makes developing Single Page Application (SPA) easy. a) True b) False 3. AngularJS is written in which language? a) C++ b) Java c) JavaScript d) PHP 4. Normally in an Angular application, who holds the data? a) Model b) View c) Controller d) Templates 5. Which directive initializes an AngularJS application? a) Ng-init b) Ng-app c) Ng-model d) Ng-controller 6. A role of a filter is to the _________ value of an expression for display to the user. a) Format b) Delete c) Evaluate d) Change 7. _________ holds the visual layout and presentation. a) Model b) Controller c) View d) Directive 8. We can have an AngularJS app without any ng-app directive. a. True b. False 9. It is compulsory to have a value to ng-app directive in an AngularJS app. a. True b. False 10. It is compulsory to have an ng-controller directive in an AngularJS app. a. True b. False 11. We use ______ directive to inform which part of the HTML will be controlled by AngularJS. a) Ng-controller b) Ng-app c) Ng-init d) Ng-model 12. Which of the following inputs are used for two-way data binding? a) Text, textarea, select b) Label, legend, fieldset c) Datalist, output, option d) All of these 13. The controllers have a function. What is the name of the argument of this function? a) $rootScope b) $scope c) $arg d) $array 14. In AngularJS, _________ are the containers used to hold other parts of an application. a) Models b) Modules c) Controllers d) Directives 15. AngularJS applications depend on __________to control the flow of data in the application. a) Models b) Modules c) Controllers d) Directives 16. We can embed another HTML page in an HTML page directly in an AngularJS app. a. True b. False 17. We have two ng-views in an AngularJS app. a. True b. False 18. Which directive can bind the input elements data to model data? a. ng-init b. ng-model 19. Which component of AngularJS helps us extend HTML elements? a) Directives b) Services c) Routes d) Filters 20. Which directive is used for initializing AngularJS Application data in HTML? a) Ng-start b) Ng-init c) Ng-show d) Ng-begin 21. Which directive is used for binding the value obtained from the user from HTML inputs to application data? a) Ng-src b) Ng-app c) Ng-controller d) Ng-model 22. Filters are added to expressions by using which character? a) Colon: b) Semicolon c) Pipe | d) Hyphen- 23. The _________ module routes our application to different pages without reloading the entire application. a) ngRoute b) ngGo c) ngPath d) ngForm 24. We have to use the exact name in view as given to it in the controller definition. a. True b. False 25. If a variable has the same name in both the current scope and in the $rootScope, which variable will be used by the application? a. Current scope b. Root scope 26. Which type of case do we use for naming a custom directive? a) Snake case b) Uppercase c) Sentence case d) Camel case 27. What are the allowed values for 'restrict' property, while we define a custom directive? a) E, A, C, M b) A, B, C, D c) W, X, Y, Z d) F, R, O, G 28. What are the default values if we don't give any value to restrict? a) FG b) AB c) EA d) WX 29. ___________ is the bond between application controller and the view. a) Scope b) Model c) Connect d) Route 30. Which symbol is used to prefix an inbuilt service? a) # b) $ c) | d) % 31. The ngAnimate module comes as part of angular.js. a. True b. False 32. Form validation makes the server side validation not necessary. a. True b. False 33. What type of validation do we do in the Web browser? a) Back-up defense b) Final defense c) First-line-of-defense d) Comprehensive defense 34. AngularJS continuously monitors the state of the form and input fields and gives state to each of them, such as ________, _______, _______and __________. a) Pristine, dirty, valid, and invalid b) Virgin, unclean, clean, and passed c) Pure, partial, dirty, and rejected d) Incomplete, semicomplete, complete, and sent 35. A form is a collection of related individual _________ grouped together. a) Variables b) Items c) Controls d) Values 36. Which library do we include to implement animations in AngularJS? a) angular-animate.js b) angular-transform.js c) angular-translate.js d) angular-vibrate.js 37. Which dependency do we need to inject for making animations? a) ngRoute b) ngTransform c) ngMotion d) ngAnimate