100% found this document useful (1 vote)
488 views

Angular Js MCQ S

The document contains multiple choice questions about AngularJS directives, components, and concepts. It tests knowledge of the ng-init, ng-app, and ng-controller directives, Angular expressions, directive element types, the $new method on $rootScope, Angular's use of JSON data, nested Angular apps, directive prefixes, and injectable dependencies. The questions cover core aspects of working with AngularJS.

Uploaded by

mehak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
488 views

Angular Js MCQ S

The document contains multiple choice questions about AngularJS directives, components, and concepts. It tests knowledge of the ng-init, ng-app, and ng-controller directives, Angular expressions, directive element types, the $new method on $rootScope, Angular's use of JSON data, nested Angular apps, directive prefixes, and injectable dependencies. The questions cover core aspects of working with AngularJS.

Uploaded by

mehak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

AngularJS MCQ’s

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

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

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


A. false
B. true
Ans: B

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

Directives can be applied to which all element type?


A. Element
B. Attribute
C. Comment
D. All of the above
Ans: D

Which API need to be invoked on the rootScope service to get the child scopes?
A. new
B. $new
Ans: B

AngularJS needs data in JSON format to populate its model.


A. true
B. false
Ans: A
Can angular applications (ng-app) be nested within each other?
A. Yes
B. No
Ans: B

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

Which components can be injected as a dependency in AngularJS?


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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy