MCQOPTIONS
Saved Bookmarks
This section includes 177 Mcqs, each offering curated multiple-choice questions to sharpen your Technical Programming knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
The _______ directive repeats a set of HTML, a given number of times. |
| A. | ng-app |
| B. | ng-bind |
| C. | ng-init |
| D. | ng-repeat. |
| Answer» E. | |
| 2. |
A controller is a JavaScript object containing ___ |
| A. | Attributes |
| B. | Properties |
| C. | Functions |
| D. | All of the above |
| Answer» E. | |
| 3. |
The _____ directive is show that it is AngularJS application |
| A. | ng-app |
| B. | ng-model |
| C. | ng-bind |
| D. | none of these. |
| Answer» B. ng-model | |
| 4. |
AngularJS is a library? |
| A. | True |
| B. | False |
| C. | none |
| D. | all |
| Answer» C. none | |
| 5. |
The ng-bind directive .it is used to binds application data to the HTML view. |
| A. | true |
| B. | false |
| C. | none |
| D. | all |
| Answer» B. false | |
| 6. |
Which API need to be invoked on the rootScope service to get the child scopes? |
| A. | new |
| B. | $new |
| C. | none |
| D. | all |
| Answer» C. none | |
| 7. |
AngularJS is a structural framework for dynamic web apps. |
| A. | true |
| B. | false |
| C. | none |
| D. | all |
| Answer» B. false | |
| 8. |
Angular 2 can detect when component data changes, and then automaticallyre-render the view to reflect that change. |
| A. | True |
| B. | False |
| C. | none |
| D. | all |
| Answer» B. False | |
| 9. |
$rootScope is created with ___ |
| A. | ng-controller |
| B. | ng-app |
| C. | ng-init |
| D. | None of these |
| Answer» C. ng-init | |
| 10. |
Which angular function is used to wrap a raw DOM element or HTML string as a jQueryelement? |
| A. | angular.element |
| B. | angular.bootstrap |
| C. | none |
| D. | all |
| Answer» B. angular.bootstrap | |
| 11. |
The ng-bind directive . . . . . . allow you to hide your template markup when the HTML content is shown to the user before it is processed by AngularJS. |
| A. | does |
| B. | does not |
| C. | none |
| D. | all |
| Answer» B. does not | |
| 12. |
AngularJS, provides data binding capability to HTML. Thus, it gives user a richand responsive experience TRUE |
| A. | True |
| B. | False |
| C. | none |
| D. | all |
| Answer» B. False | |
| 13. |
Which of the following is true about ng-init directive? |
| A. | ng-init directive initializes an AngularJS Application data. |
| B. | ng-init directive is used to put values to the variables to be used in the application. |
| C. | Both of the above. |
| D. | None of the above. |
| Answer» D. None of the above. | |
| 14. |
AngularJS is based on the . . . . . . pattern. |
| A. | VMC |
| B. | MVC |
| C. | MCV |
| D. | CVM |
| Answer» C. MCV | |
| 15. |
The . . . . . . . . . . directive substitutes the normal href property and makes iteasier to work with route links in Angular 2. |
| A. | RouterLink |
| B. | RouterRend |
| C. | RouterLike |
| D. | RouterLayer |
| Answer» B. RouterRend | |
| 16. |
Which angular module is loaded by default? |
| A. | ng |
| B. | ng-app |
| C. | none |
| D. | all |
| Answer» B. ng-app | |
| 17. |
Which of the following is true about |
| A. | $routeProvider $routeProvider maps Urls with the corresponding html page or ng-template |
| B. | $routeProvider attaches a controller with the view |
| C. | All of these |
| D. | $routeProvider is the key service which set the configuration of urls |
| Answer» D. $routeProvider is the key service which set the configuration of urls | |
| 18. |
Which components can be injected as a dependency in AngularJS? |
| A. | Application Module |
| B. | constant |
| C. | value |
| D. | factory |
| Answer» B. constant | |
| 19. |
AngularJS is a powerful javascript framework, used for developing _________ projects. |
| A. | run time |
| B. | java script |
| C. | php |
| D. | SPA |
| Answer» E. | |
| 20. |
First the HTML document is loaded into the browser, and evaluated by thebrowser. At this time the AngularJS . . . . . . . |
| A. | JavaScript file is loaded, |
| B. | the angular global object is created, |
| C. | your JavaScript which registers controller functions is executed, |
| D. | all of above |
| Answer» E. | |
| 21. |
Angular 2 is an open source JavaScript framework to build web applications inHTML and JavaScript and has been conceived as a . . . . . . . . . |
| A. | mobile first approach |
| B. | UI first approach |
| C. | web first approach |
| D. | all of above |
| Answer» B. UI first approach | |
| 22. |
___________ is a web application or website that interacts with the user by dynamically rewriting the current page rather than loading entire new pages froma server). |
| A. | run time |
| B. | java script |
| C. | php |
| D. | SPA |
| Answer» E. | |
| 23. |
Angular 2 uses . . . . . . . . syntax for built-in directives. |
| A. | Pascal case |
| B. | Snake case |
| C. | Camel case |
| D. | Underscore case |
| Answer» D. Underscore case | |
| 24. |
An Angular application can be initialized on ______? |
| A. | Only HTML element |
| B. | ANY element |
| C. | none |
| D. | all |
| Answer» C. none | |
| 25. |
________is a web application or website that interacts with the user by dynamically rewriting the current page rather than loading entire new pages from a server). |
| A. | SinglePageApplication(SPA) |
| B. | doublepage application |
| C. | multipage application |
| D. | non of these |
| Answer» B. doublepage application | |
| 26. |
The drawback of inline bindings is that AngularJS will not find and processevery set of {{ and }} characters in your content. |
| A. | True |
| B. | False |
| C. | none |
| D. | all |
| Answer» C. none | |
| 27. |
You can create bindings only for the data values that are added to the . . . . .object by the controller. |
| A. | $action |
| B. | $control |
| C. | $scope |
| D. | none of above |
| Answer» D. none of above | |
| 28. |
AngularJS is a powerful javascript framework, used for developingSinglePageApplication(SPA) projects in very clean and maintainable way. |
| A. | true |
| B. | false |
| C. | none |
| D. | all |
| Answer» B. false | |
| 29. |
In Angular 2, applications rely upon the . . . . . . . method to load top-levelcomponents |
| A. | loadstrap |
| B. | bootstrap |
| C. | bootload |
| D. | none of above |
| Answer» C. bootload | |
| 30. |
Can '$scope' be injected while creating service using 'factory' method? |
| A. | Yes |
| B. | No |
| C. | none |
| D. | all |
| Answer» C. none | |
| 31. |
AngularJS is a powerful javascript framework, used for developing _________projects in very clean and maintainable way. |
| A. | SinglePageApplication(SPA) |
| B. | doublepage application |
| C. | multipage application |
| D. | none of these |
| Answer» B. doublepage application | |
| 32. |
_____ in MVC: It is responsible for displaying all data or only a portion of data to |
| A. | the users. |
| B. | model |
| C. | Model View Controller |
| D. | controller |
| Answer» C. Model View Controller | |
| 33. |
Whichdirectives bind the input fields to the controller properties? |
| A. | data-ng-model |
| B. | ng-app |
| C. | ng-controller |
| D. | None of these |
| Answer» B. ng-app | |
| 34. |
You cannot use AngularJS directives to tell AnguluarJS how to mix the data into the HTML template. |
| A. | True |
| B. | False |
| C. | none |
| D. | all |
| Answer» C. none | |
| 35. |
Which directive defines the application controller? |
| A. | ng-model |
| B. | ng-ctrl |
| C. | ng-controller |
| D. | None of these |
| Answer» D. None of these | |
| 36. |
EventEmitter class’s simple interface, which basically encompass two methods . . . . . . . . . can therefore be used to trigger custom events and listen to events as well, both synchronously or asynchronously. |
| A. | exit() |
| B. | superscript() |
| C. | subscribe() |
| D. | emit() |
| Answer» D. emit() | |
| 37. |
Any change to the . . . . and . . . . . properties affects these bindings andconsequently the user interface content. |
| A. | noOfTries, deviations |
| B. | restart, tries |
| C. | noOfTries, deviation |
| D. | noOfTry, deviation |
| Answer» D. noOfTry, deviation | |
| 38. |
Events in Angular 2 behave like normal DOM events. They can bubble up butcannot propagate down. |
| A. | True |
| B. | False |
| C. | none |
| D. | all |
| Answer» C. none | |
| 39. |
The _______ directive .it is used to binds application data to the HTML view |
| A. | ng-app |
| B. | ng-model |
| C. | ng-bind |
| D. | none of these. |
| Answer» D. none of these. | |
| 40. |
angular js is back end application which develop by java script. |
| A. | True |
| B. | False |
| C. | none |
| D. | all |
| Answer» B. False | |
| 41. |
Can AngularJS be used to create a service? |
| A. | May be |
| B. | Can be |
| C. | Yes |
| D. | No |
| Answer» D. No | |
| 42. |
You can use the . . . . . . directive, in order to bind the innerHTML of theelement to the specified model property. |
| A. | ng-bind |
| B. | ng-binding |
| C. | ng-binds |
| D. | ng-bindings |
| Answer» B. ng-binding | |
| 43. |
There is a controller which takes single parameter. We call it . . . . .parameter. |
| A. | $param |
| B. | $control |
| C. | $scope |
| D. | $scont |
| Answer» D. $scont | |
| 44. |
Angular 2 has a . . . . . . . service that allows us to dynamically load acomponent in a certain position on the page. |
| A. | DynamicControlLoader |
| B. | DynamicControllerLoader |
| C. | DynaCompLoader |
| D. | DynamicComponentLoader |
| Answer» E. | |
| 45. |
The _____ directive is show that it is AngularJS application. |
| A. | ng-app |
| B. | ng-model |
| C. | ng-bind |
| D. | none of these. |
| Answer» B. ng-model | |
| 46. |
The AnglarJS ______directive sets the readonly attribute on the element; if it gets that the expression inside ng-readonly is true. it used to show the only which we can not change ,it is only for read only purpose. |
| A. | ng-hide directive |
| B. | readonly diretive |
| C. | ng-init directive |
| D. | ng-repeat.directive |
| Answer» C. ng-init directive | |
| 47. |
The AngularJS _______ facilitates you to specify custom behaviour when an element is clicked. So, it is responsible for the result what you get after clicking |
| A. | ng-click directive |
| B. | readonly diretive |
| C. | ng-init directive |
| D. | ng-repeat.directive |
| Answer» B. readonly diretive | |
| 48. |
Which is/are the characteristics of scope object? |
| A. | Scopes provide APIs ($watch) to observe model. |
| B. | Scopes can be nested to limit access to the properties. |
| C. | It provides context against the expression to be evaluated. |
| D. | All of the above |
| Answer» E. | |
| 49. |
AngularJS is based on the _____ pattern |
| A. | VMC |
| B. | MVC |
| C. | MCV |
| D. | CVM |
| Answer» C. MCV | |
| 50. |
Events on child elements are propagated upwards, and hence event binding isalso possible on a parent element. |
| A. | True |
| B. | False |
| C. | none |
| D. | all |
| Answer» B. False | |