MCQOPTIONS
Saved Bookmarks
This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
AngularJS is a ______framework for dynamic web apps. |
| A. | structural |
| B. | unstructural |
| C. | wrong |
| D. | shape |
| Answer» B. unstructural | |
| 2. |
The ______ directive for binds the value of HTML it is used for input the data , select the data in application |
| A. | ng-app |
| B. | ng-model |
| C. | ng-bind |
| D. | none of these. |
| Answer» B. ng-model | |
| 3. |
AngularJS supports . . . . . kind(s) of data binding. |
| A. | one |
| B. | two |
| C. | three |
| D. | four |
| Answer» C. three | |
| 4. |
AngularJS bindings are . . . . . , meaning that when the value associated with the binding is changed (in the data model), the HTML element will be updated. |
| A. | parallel |
| B. | one way |
| C. | two way |
| D. | live |
| Answer» E. | |
| 5. |
ngshow directive is used to show a div tab by linking it to a Boolean variable inthe script. If the value of the variable is true then the item is displayed. |
| A. | true |
| B. | false |
| C. | none |
| D. | all |
| Answer» B. false | |
| 6. |
The ______ tag defines a division or a section or block in an HTML document. |
| A. | <div> |
| B. | <block> |
| C. | <span> |
| D. | none of these. |
| Answer» B. <block> | |
| 7. |
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» E. | |
| 8. |
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» E. | |
| 9. |
______directive is used to hide a div tab by linking it to a Boolean variable in the script. If the value of the variable is false then the item is not displayed. |
| A. | ng-hide |
| B. | ngshow |
| C. | ng-init |
| D. | none |
| Answer» B. ngshow | |
| 10. |
AngularJS needs data in JSON format to populate its model. |
| A. | true |
| B. | false |
| C. | none |
| D. | all |
| Answer» B. false | |
| 11. |
In larger applications,controllers are stored in ___? |
| A. | external files |
| B. | scope object |
| C. | internal files |
| D. | None of these |
| Answer» B. scope object | |
| 12. |
Published by Google in ____AngularJS has become one of the most popularJavaScript frameworks till now |
| A. | 2009 |
| B. | 2010 |
| C. | 2011 |
| D. | 2020 |
| Answer» B. 2010 | |
| 13. |
With more than one ng-app in an HTML document (an HTML page), are all of themautomatically initialized? |
| A. | Yes |
| B. | No |
| C. | No, only one app is automatically initialized. Others have to manually initialized. |
| D. | none of the above |
| Answer» D. none of the above | |
| 14. |
Can angular applications (ng-app) be nested within each other? |
| A. | Yes |
| B. | No |
| C. | none |
| D. | all |
| Answer» C. none | |
| 15. |
Angular 1 core concept was $scope, and you will not find $scope in angular 2.0. Angular 2 is using . . . . . . . . to detect changes. |
| A. | zone$.js |
| B. | Scope.js |
| C. | zone.js |
| D. | zones.js |
| Answer» D. zones.js | |
| 16. |
The _ ng-repeat. directive repeats a set of HTML, a given number of times. |
| A. | true |
| B. | false |
| C. | none |
| D. | all |
| Answer» B. false | |
| 17. |
The tag is much like the element, but is a _________and is an ______________. |
| A. | Block level element , inline element |
| B. | Container element, directive element |
| C. | directive element, directive element |
| D. | none of these. |
| Answer» B. Container element, directive element | |
| 18. |
$rootScoperefers to an object which is accessible from everywhereoftheapplication. |
| A. | True |
| B. | False |
| C. | none |
| D. | all |
| Answer» B. False | |
| 19. |
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» E. | |
| 20. |
What is the purpose of $http? |
| A. | It is an inbuilt service used to make ajax call to get the server data. |
| B. | It is the Http protocol |
| C. | It generates hyper text mark up language |
| D. | None |
| Answer» B. It is the Http protocol | |
| 21. |
Angular 2 make use of the . . . . . . . module syntax. |
| A. | ES2016a |
| B. | ES2017 |
| C. | ES2016 |
| D. | ES2015 |
| Answer» E. | |
| 22. |
Which of the following is true about ng-app directive? |
| A. | ng-app directive defines and links an AngularJS application to HTML |
| B. | ng-app directive indicates the start of the application |
| C. | Both of the above |
| D. | None of the above |
| Answer» D. None of the above | |
| 23. |
Angular 2 components can be described using . . . . . . A . . . . . . is a way to dosome meta-programming. |
| A. | controllers, controller |
| B. | loaders, loader |
| C. | typescripts, typescript |
| D. | decorators, decorator |
| Answer» E. | |
| 24. |
@Output() myEvent = new EventEmitter(); |
| A. | Declares an output property that fires events that you cannot subscribe to with an event binding. |
| B. | Declares an output property that fires events that you can subscribe to with an event binding. |
| C. | Declares an output property that overrides events that you can subscribe to with an event binding. |
| D. | Declares an output property that subscribes events that you can subscribe to with an event binding. |
| Answer» E. | |
| 25. |
Being JavaScript framework, application written in AngularJS are not safe. |
| A. | True |
| B. | False |
| C. | none |
| D. | all |
| Answer» B. False | |
| 26. |
The . . . . . directive is used if you want to add or remove HTML elements from the DOM based on data in the model. |
| A. | ng-switch |
| B. | ng-model |
| C. | ng-Disabled |
| D. | ng-Cloak |
| Answer» B. ng-model | |
| 27. |
Angular 2.0 contains a logging service called . . . . . which is very useful feature measuring where time is spent in your application. |
| A. | config.js |
| B. | logging.js |
| C. | diary.js |
| D. | none of above |
| Answer» D. none of above | |
| 28. |
Angular 2.0 contains a logging service called . . . . . which is very usefulfeature measuring where time is spent in your application. |
| A. | config.js |
| B. | logging.js |
| C. | diary.js |
| D. | none of above |
| Answer» D. none of above | |
| 29. |
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» E. | |
| 30. |
The ______ is used to binds application data to the HTML view. |
| A. | ng-bind directive |
| B. | readonly diretive |
| C. | ng-init directive |
| D. | ng-repeat.directive |
| Answer» B. readonly diretive | |
| 31. |
In angular js MVC stands for _____________. |
| A. | Model viver conroller |
| B. | Model View Controller |
| C. | Many viver component |
| D. | none of these |
| Answer» B. Model View Controller | |
| 32. |
Angular 2 is a cross platform framework. |
| A. | True |
| B. | False |
| C. | none |
| D. | all |
| Answer» B. False | |
| 33. |
________ It is the automatic synchronization of data between model and view |
| A. | components. |
| B. | data binding |
| C. | view |
| D. | Angular js |
| Answer» B. data binding | |
| 34. |
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. | non of these |
| Answer» B. doublepage application | |
| 35. |
AngularJS controllers control ___of AngularJS applications. |
| A. | the data |
| B. | thefunction |
| C. | thevariable |
| D. | None of these |
| Answer» B. thefunction | |
| 36. |
Angular 2 integrates easily with NativeScript, allowing you to code your nativeapp in a . . . . . . . . . style that can run on any mobile device platform. |
| A. | declarative |
| B. | imperative |
| C. | interrogative |
| D. | exclamatory |
| Answer» B. imperative | |
| 37. |
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» D. None of the above | |
| 38. |
AngularJS supports two-way data binding? |
| A. | True |
| B. | False |
| C. | none |
| D. | all |
| Answer» B. False | |
| 39. |
Can an HTML page have multiple “ng-app” directive for bootstrapping multipleAngularJS application? |
| A. | Yes |
| B. | No |
| C. | none |
| D. | all |
| Answer» C. none | |
| 40. |
________is a web application or website that interacts with the user bydynamically 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 | |
| 41. |
These directives can be used to create custom HTML tags that serve as new, custom widgets. AngularJS has built-in directives such as ngBind, ngModel, etc. |
| A. | true |
| B. | false |
| C. | none |
| D. | all |
| Answer» B. false | |
| 42. |
Angular 2 has a . . . . . . . service that allows us to dynamically load a component in a certain position on the page. |
| A. | DynamicControlLoader |
| B. | DynamicControllerLoader |
| C. | DynaCompLoader |
| D. | DynamicComponentLoader |
| Answer» E. | |
| 43. |
Angular 2 is entirely component based. Controllers and $scope are no longerused. They have been replaced by . . . . . . . and . . . . . . . . |
| A. | components, controllers |
| B. | $scopes, components |
| C. | components, directives |
| D. | controllers, directives |
| Answer» D. controllers, directives | |
| 44. |
The ______ sets the disabled attribute of a form field (input, select, or textarea). |
| A. | ng-disebled directive |
| B. | readonly diretive |
| C. | ng-init directive |
| D. | ng-repeat.directive |
| Answer» B. readonly diretive | |
| 45. |
We need to tell AngularJS what part of our HTML page contains the AngularJS app. You do so by adding the . . . . attribute to the root HTML element of the AngularJS app. |
| A. | ng-app |
| B. | ag-app |
| C. | js-app |
| D. | aj-app |
| Answer» B. ag-app | |
| 46. |
The ______ directive initializes application data. ,it is used to initializes thedata. |
| A. | ng-app |
| B. | ng-model |
| C. | ng-bind |
| D. | ng-init |
| Answer» E. | |
| 47. |
____ is an open source full featured JavaScript framework developed by Google. |
| A. | angular js |
| B. | php |
| C. | java script |
| D. | non of these |
| Answer» B. php | |
| 48. |
EventEmitter class acts both as an observer and observable. |
| A. | True |
| B. | False |
| C. | none |
| D. | all |
| Answer» B. False | |
| 49. |
AngularJS is an open source full featured JavaScript framework developed by__________ It was designed to build dynamic web apps in the first place |
| A. | |
| B. | MICROSOFT |
| C. | SUN |
| D. | none of these |
| Answer» B. MICROSOFT | |
| 50. |
angular js is an open source full featured JavaScript framework developed byGoogle. |
| A. | true |
| B. | false |
| C. | none |
| D. | all |
| Answer» B. false | |