McqMate
Chapters
1. |
AngularJS is based on the _____ pattern |
A. | VMC |
B. | MVC |
C. | MCV |
D. | CVM |
Answer» B. MVC |
2. |
What is Angular Js? |
A. | Library |
B. | Framework |
C. | Plugin |
D. | Browser Extension |
Answer» B. Framework |
3. |
AngularJS applications are a mix of _____ |
A. | HTML and PHP |
B. | HTML and CrossScript |
C. | HTML and AngularScript |
D. | HTML and JavaScriptcorrect |
Answer» C. HTML and AngularScript |
4. |
How to include HTML content into another HTML? |
A. | Server Side push |
B. | Use of CommetD |
C. | Use of Polling |
D. | Use of include |
Answer» D. Use of include |
5. |
What is MVC (Mode View Controller)? |
A. | It is a services for Java built function |
B. | It is marker for DOM elements |
C. | It is a software design pattern for developing web applications |
D. | None of the above |
Answer» C. It is a software design pattern for developing web applications |
6. |
Which of the following is true about AngularJS service? |
A. | Services are JavaScript functions |
B. | Services are responsible to do specific tasks only |
C. | Inbuilt services are always prefixed with $ symbol |
D. | All of the above |
Answer» D. All of the above |
7. |
Which of the following is valid for AngualarJS module |
A. | var app = angular.module(["myApp","param"); |
B. | var app = angular.module("myApp", []); |
C. | var app = angular.module(); |
D. | var app = angular.module("myApp"); |
Answer» D. var app = angular.module("myApp"); |
8. |
What angular function is used to manually start up an angular application ? |
A. | angular.bootstrap |
B. | angular.element |
C. | angular.copy |
D. | None of the above |
Answer» A. angular.bootstrap |
9. |
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» C. All of these |
10. |
Which is the right format for calling a ng-bind function? |
A. | ng-bind |
B. | ng:bind |
C. | ng_bind |
D. | All the Above |
Answer» D. All the Above |
11. |
What is the purpose of angular.module in AngularJS? |
A. | It creates an application module |
B. | It invokes an application module |
C. | It destroys an application module |
D. | None |
Answer» A. It creates an application module |
12. |
What are various possible ways in which angular application can be initialized? |
A. | On an element, one could either put simply the attribute such as (ng-app, datang-app, ng:app, x-ng-app) |
B. | Put the named attribute such as (ng-app='demoApp') |
C. | Both of the above |
D. | None |
Answer» C. Both of the above |
13. |
AngularJS controllers control ___of AngularJS applications. |
A. | the data |
B. | thefunction |
C. | thevariable |
D. | None of these |
Answer» A. the data |
14. |
Which directive defines the application controller? |
A. | ng-model |
B. | ng-ctrl |
C. | ng-controller |
D. | None of these |
Answer» C. ng-controller |
15. |
Whichdirectives bind the input fields to the controller properties? |
A. | data-ng-model |
B. | ng-app |
C. | ng-controller |
D. | None of these |
Answer» A. data-ng-model |
16. |
In larger applications,controllers are stored in ___? |
A. | external files |
B. | scope object |
C. | internal files |
D. | None of these |
Answer» A. external files |
17. |
Which statement is true about scope in AngularJS? |
A. | The scope is the binding part between the HTML (view) and the JavaScript (controller). |
B. | The scope is an object with the available properties and methods. |
C. | The scope is available for both the view and the controller. |
D. | All of the above |
Answer» D. All of the above |
18. |
Controller, which is the JavaScript function that ___ the data? |
A. | Makes |
B. | Changes |
C. | Removes |
D. | All of the above |
Answer» D. All of the above |
19. |
$rootScoperefers to an object which is accessible from everywhereof theapplication. |
A. | True |
B. | False |
C. | none |
D. | all |
Answer» A. True |
20. |
$rootScope is created with ___ |
A. | ng-controller |
B. | ng-app |
C. | ng-init |
D. | None of these |
Answer» B. ng-app |
21. |
A controller is a JavaScript object containing ___ |
A. | Attributes |
B. | Properties |
C. | Functions |
D. | All of the above |
Answer» D. All of the above |
22. |
Scope contains the ___? |
A. | model data |
B. | JavaScript Objects |
C. | variables |
D. | None of these |
Answer» A. model data |
23. |
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» D. All of the above |
Done Reading?