

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.
101. |
. . . . . . . . need to be passed as a parameter in the event callback from the template to capture the event object. |
A. | $event.start |
B. | $events |
C. | $eventobj |
D. | $event |
Answer» E. | |
102. |
Can multiple angular applications be bootstrapped using same element?? |
A. | Yes |
B. | No. An error is thrown such as 'App Already Bootstrapped with this Element' |
C. | none |
D. | all |
Answer» C. none | |
103. |
______ 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. | ng-app |
B. | ngshow |
C. | ng-init |
D. | none |
Answer» C. ng-init | |
104. |
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» E. | |
105. |
Angular framework provides event binding using in-built event as well as custom event. Custom events are the EventEmitter instances. To create a custom event we need to create an instance of EventEmitter annotated by . . . . . . . |
A. | @Input() |
B. | @Get() |
C. | @Output() |
D. | @Set() |
Answer» B. @Get() | |
106. |
AngularJS applications are a mix of . . . . . . |
A. | HTML and PHP |
B. | HTML and CrossScript |
C. | HTML and AngularScript |
D. | HTML and JavaScript |
Answer» E. | |
107. |
The router in Angular 2.0 has been reworked to be simple, yet extensible. Itwill include the following basic features: |
A. | Simple JSON-based Route Config |
B. | Optional Convention over Configuration |
C. | Static, Parameterized and Splat Route Patterns |
D. | URL Unresolver |
Answer» B. Optional Convention over Configuration | |
108. |
Which of the following directive is used to initialize an angular app? |
A. | ng-model |
B. | ng-app |
C. | ng-controller |
D. | None of the above |
Answer» C. ng-controller | |
109. |
Calling . . . . . . . . on the event prevents propagation. |
A. | stopEventPropagation |
B. | preventEventPropagation |
C. | stopPropagation |
D. | preventPropagation |
Answer» D. preventPropagation | |
110. |
Published by Google in 2009 AngularJS has become one of the most popular JavaScript frameworks till now |
A. | true |
B. | false |
C. | none |
D. | all |
Answer» B. false | |
111. |
ng-app directive defines and links an AngularJS application to HTML. |
A. | false |
B. | true |
C. | none |
D. | all |
Answer» C. none | |
112. |
The . . . . . directive is used if you want to add or remove HTML elements fromthe DOM based on data in the model. |
A. | ng-switch |
B. | ng-model |
C. | ng-Disabled |
D. | ng-Cloak |
Answer» B. ng-model | |
113. |
Directives can be applied to which all element type? |
A. | Element |
B. | Attribute |
C. | Comment |
D. | All of the above |
Answer» E. | |
114. |
There are two ways to build forms in Angular 2, namely . . . . and . . . . . . |
A. | interface-driven |
B. | model-driven |
C. | template-driven |
D. | modular-driven |
Answer» C. template-driven | |
115. |
In two-way binding, changes done to a model are reflected in the view, butthe reverse also holds true sometimes. |
A. | True |
B. | False |
C. | none |
D. | all |
Answer» C. none | |
116. |
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» B. It invokes an application module | |
117. |
AngularJS bootstraps itself during config phase. |
A. | true |
B. | false |
C. | none |
D. | all |
Answer» B. false | |
118. |
filter filter is applied to an expression using pipe character. |
A. | true |
B. | false |
C. | none |
D. | all |
Answer» B. false | |
119. |
The _______ directive is used if you want to add or remove HTML elementsfrom the DOM based on data in the model. |
A. | ng-switch |
B. | ng-model |
C. | ng-Disabled |
D. | ng-Cloak |
Answer» B. ng-model | |
120. |
What is Angular Js? |
A. | Library |
B. | Framework |
C. | Plugin |
D. | Browser Extension |
Answer» C. Plugin | |
121. |
Which of the following is true about orderby filter? |
A. | orderby filter orders the array based on provided |
B. | orderby filter is used to filter the array to a subset of it based on provided criteria |
C. | Both of the above |
D. | None of the above |
Answer» B. orderby filter is used to filter the array to a subset of it based on provided criteria | |
122. |
The AngularJS ______ is used to remove the HTML elements if the expression is set to false. If the if element is set to true, a copy of the element is added in the DOM. |
A. | ng-if directive |
B. | readonly diretive |
C. | ng-init directive |
D. | ng-repeat.directive |
Answer» B. readonly diretive | |
123. |
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. | |
124. |
The . . . . . . directive is one of the most fundamental directives in AngujarJS.The . . . . . directive inserts the result of an expression into the HTML template. |
A. | Debug |
B. | Interpolation |
C. | Matching |
D. | Controller |
Answer» E. | |
125. |
. _________ allows to bind data and inject eliminate the most part of the code in order to prevent writing it. |
A. | data binding |
B. | view |
C. | Angular js |
D. | SPA |
Answer» D. SPA | |
126. |
Angular 1 core concept was $scope, and you will not find $scope in angular2.0. Angular 2 is using . . . . . . . . to detect changes. |
A. | zone$.js |
B. | Scope.js |
C. | zone.js |
D. | zones.js |
Answer» D. zones.js | |
127. |
Controller, which is the JavaScript function that ___ the data? |
A. | Makes |
B. | Changes |
C. | Removes |
D. | All of the above |
Answer» E. | |
128. |
What are various possible prefixes such as 'ng-' using which Angular directives (forexample, ng-app) can be defined? |
A. | 'ng-', 'data-ng-', 'ng:' |
B. | 'ng-' |
C. | 'ng-', 'data-ng-', 'ng:', 'x-ng-' |
D. | 'ng-', 'data-ng-','x-ng-' |
Answer» D. 'ng-', 'data-ng-','x-ng-' | |
129. |
If the data obtained from the model contains HTML elements, these are escaped before being inserted into the HTML template. The escaping means that the HTML is displayed as text, and not as HTML. This is done to prevent . . . . |
A. | SQL injection attacks |
B. | JS injection attacks |
C. | HTML injection attacks |
D. | Python injection attacks |
Answer» D. Python injection attacks | |
130. |
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» B. angular.element | |
131. |
Angular 2 still does not provide nested components. |
A. | True |
B. | False |
C. | none |
D. | all |
Answer» C. none | |
132. |
The ______ tag is an inline container used to mark up a part of a text, or apart of a document. |
A. | <div> |
B. | <block> |
C. | <span> |
D. | none of these. |
Answer» B. <block> | |
133. |
AngularJS applications are a mix of _____ |
A. | HTML and PHP |
B. | HTML and CrossScript |
C. | HTML and AngularScript |
D. | HTML and JavaScriptcorrect |
Answer» D. HTML and JavaScriptcorrect | |
134. |
Angular initializes based upon which of the following scenario? |
A. | DOMContentLoaded event happens |
B. | document.readyState is set to complete |
C. | Both of the above |
D. | None of the above |
Answer» D. None of the above | |
135. |
When adding . . . . . and . . . . . . to a view, we are essentially instructing Angular to create data bindings that keep the model and view in sync. |
A. | extrapolations, interpolations |
B. | scopes, directives |
C. | directives, interpolation |
D. | none of above |
Answer» D. none of above | |
136. |
The ng-init directive initializes application data. ,it is used to initializes thedata. |
A. | true |
B. | false |
C. | none |
D. | all |
Answer» B. false | |
137. |
The ______ tag is an inline container used to mark up a part of a text, or a part of a document. |
A. | <div> |
B. | <block> |
C. | <span> |
D. | none of these. |
Answer» B. <block> | |
138. |
In Angular 2.0, the template compilation process is . . . . . . . |
A. | synchronous |
B. | asynchronous |
C. | none |
D. | all |
Answer» C. none | |
139. |
SPA (Single Page Application). This means that the navigation within Netflix isperformed without refreshing the whole page. |
A. | True |
B. | False |
C. | none |
D. | all |
Answer» B. False | |
140. |
In AngularJS, views are pure html pages, and controllers written only in phpdo the business processing. |
A. | True |
B. | False |
C. | none |
D. | all |
Answer» B. False | |
141. |
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» D. None | |
142. |
At framework level, how does Angular retrieve the matching elements for processing? |
A. | Makes use of jqLite(element) function. |
B. | If jQuery is used, jQuery(element) is used by way of assigning jQuery to jqLite variable |
C. | Both of the above |
D. | None of the above |
Answer» D. None of the above | |
143. |
Event binding can be defined . . . . . . . . . |
A. | by wrapping the event in (parenthesis) |
B. | by prefixing it with in |
C. | by wrapping the event in {curly brackets} |
D. | by prefixing it with on |
Answer» B. by prefixing it with in | |
144. |
AngularJS 1.0 was released in 2013. |
A. | True |
B. | False |
C. | none |
D. | all |
Answer» C. none | |
145. |
ng-hide directive is used to hide a div tab by linking it to a Boolean variablein the script. If the value of the variable is false then the item is not displayed. |
A. | true |
B. | false |
C. | none |
D. | all |
Answer» B. false | |
146. |
EventEmitter class is used by directives and components to emit customEvents. |
A. | True |
B. | False |
C. | none |
D. | all |
Answer» B. False | |
147. |
The ________ adds a controller to your application.it control on the application |
A. | ng-control directive |
B. | readonly diretive |
C. | ng-init directive |
D. | ng-repeat.directive |
Answer» B. readonly diretive | |
148. |
AngularJS never regenerates the HTML again. |
A. | True |
B. | False |
C. | none |
D. | all |
Answer» B. False | |
149. |
The ng-app directive is show that it is AngularJS application |
A. | true |
B. | false |
C. | none |
D. | all |
Answer» B. false | |
150. |
Who is sometimes called as Father of AngularJS? |
A. | Brad Green |
B. | Igor Minor |
C. | Misko Hevery |
D. | Brian Ford |
Answer» D. Brian Ford | |