Você está na página 1de 5

1. AngularJS is a library?

A. True
B. False
Ans: B

2. Who is sometimes called as Father of AngularJS?


A. Brad Green
B. Igor Minor
C. Misko Hevery
D. Brian Ford
Ans: C

3. 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.
Ans: C

4. 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
Ans: B

5. ng-app directive defines and links an AngularJS application to HTML.


A. false
B. true
Ans: B

6. AngularJS supports two-way data binding?


A. True
B. False
Ans: A

7. AngularJS expressions are written using.


A. double braces like {{ expression}}
B. single braces like {expression}
C. small bracket like (expression)
D. capital bracket like [expression]
Ans: A

8. AngularJS is an MVC based framework?


A. True
B. False
Ans: A

9. AngularJS bootstraps itself during config phase.


A. true
B. false
Ans: A

10. 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
Ans: C
1. Angular Js is based on
MVC Architecture
Decorator pattern
MVVM Architectural pattern
Observer Pattern
View Answer
MVVM Architectural pattern
2. AngularJS expressions are written using
(expression)
{{expression}}
{{{expression}}}
[expression]
View Answer
{{expression}}
3. What is correct way to apply multiple filters in AngularJs.
{{ expression | filter1 | filter2 | ... }}
{{ expression | {filter1} | {filter2} | ... }}
{{ expression - {filter1} - {filter2} - ... }}
{{ {filter1} | {filter2} | ...-expression}}
View Answer
{{ expression | filter1 | filter2 | ... }}
4. Which directive initializes an AngularJS application?
ng-init
ng-app
ngSrc
ng-start
View Answer
ng-app
5. Which of following is not valid AngularJs Filter
lowercase
orderby
email
currency
View Answer
email
6. What are Angular Controllers are responsible for
Controlling the data.
Displaying the data.
View Answer
Controlling the data.
7. Which Angular directive is used to binds the value of HTML controls (input,
select, textarea) to application data?
ng-cloak
ng-bind
ng-model
ng-blur
View Answer
ng-model
8. Which one of following is correct syntax for creating a module in AngularJs?
var myModule= angular.module();
var myModule= new Module();
angular.module("app", []);
View Answer
angular.module("app", []);
9. How do you share data between controller and view?
using Model
using services
using factory
using $scope
View Answer
using services
10. What is $routeProvider ?
A service
A module
A component
View Answer
A service
11. Who is known as father of Angularjs?
Brad Green
Misko Hevery
Adam Abrons
View Answer
Misko Hevery
12. Angular 1.x is written in
Java
Javascript
TypeScript
View Answer
Javascript
13. Is AngularJs supports two way binding?
True
False
View Answer
False
14. Which Angular Directive is used to disable an Element?
ng-disabled
ng-hide
ng-false
View Answer
ng-disabled
15. Is AngularJs supports internationalization?
True
False
View Answer
True
16. Can we extend AngularJS?
True
False
View Answer
True
17. What is $routeProvider ?
A service
A module
A component
View Answer
A service
18. AngularJS directives are used in ____________
Module
Controller
Service
View
View Answer
View
AngularJS directives are used in View.
19. AngularJS directives can be written in Templates as
Tag
Attribute
Class name
All of the above
View Answer
All of the above
20. Which of the following directive allows us to use a form in AngularJs?
ng-form
ng-include
ng-form
ng-bind
View Answer
ng-form directive allows us to use a form in AngularJs.

11. An Angular application can be initialized on ______?


A. Only HTML element
B. ANY element
Ans: B

12. Can an HTML page have multiple �ng-app� directive for bootstrapping multiple
AngularJS application?
A. Yes
B. No
Ans: B

13. With more than one ng-app in an HTML document (an HTML page), are all of them
automatically initialized?
A. Yes
B. No
C. No, only one app is automatically initialized. Others have to manually
initialized.
Ans: C

14. Can angular applications (ng-app) be nested within each other?


A. Yes
B. No
Ans: B

15. What are various possible prefixes such as 'ng-' using which Angular directives
(for example, 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-'
Ans: C

16. 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, data-
ng-app, ng:app, x-ng-app)
B. Put the named attribute such as (ng-app='demoApp')
C. Both of the above
Ans: C

17. filter filter is applied to an expression using pipe character.


A. true
B. false
Ans: A

18. 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
Ans: A

19. Which components can be injected as a dependency in AngularJS?


A. Application Module
B. constant
C. value
D. factory
Ans: A

20. 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'
Ans: B

Você também pode gostar