AngularJs MCQ Questions And Answers
AngularJs MCQ : This section focuses on "Basics" of AngularJs. These Multiple Choice Questions (MCQ) should be practiced to improve the AngularJs skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. AngularJS is perfect for?
A. SPAs
B. MPAs
C. DPAs
D. ZPAs
View Answer
Ans : A
Explanation: AngularJS extends HTML with new attributes.AngularJS is perfect for Single Page Applications (SPAs).AngularJS is easy to learn
2. AngularJS is a ?
A. Java framework
B. HTML framework
C. JavaScript framework
D. SQL framework
View Answer
Ans : C
Explanation: AngularJS is a JavaScript framework.
3. Which directive binds application data to the HTML view?
A. ng-app
B. ng-model
C. ng-bind
D. ng-init
View Answer
Ans : C
Explanation: The ng-bind directive binds application data to the HTML view.
4. can we use data-ng-, instead of ng-, if we want to make your page HTML valid?
A. Yes
B. No
C. Can be yes or no
D. Can not say
View Answer
Ans : A
Explanation: Yes, we use data-ng-, instead of ng-, if we want to make your page HTML valid
5. AngularJS expressions bind AngularJS data to HTML the same way as the _________ directive.
A. ng-app
B. ng-model
C. ng-bind
D. ng-init
View Answer
Ans : C
Explanation: AngularJS expressions bind AngularJS data to HTML the same way as the ng-bind directive.
6. Which of the following is an Advantages of AngularJS?
A. AngularJS code is unit testable.
B. AngularJS provides reusable components.
C. AngularJS uses dependency injection and make use of separation of concerns.
D. All of the above
View Answer
Ans : D
Explanation: All of the above statement is an Advantages of AngularJS.
7. What will be output for the following code?
<div ng-app="""" ng-init=""points=[1,15,19,2,40]"">
<p>The third result is {{ points[2] }}</p>
</div>
A. The third result is 1
B. The third result is 15
C. The third result is 19
D. The third result is
View Answer
Ans : C
Explanation: The third result is 19 be output for the following code.
8. The [] parameter in the module definition can be used to define dependent modules.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: The [] parameter in the module definition can be used to define dependent modules. Without the [] parameter, you are not creating a new module, but retrieving an existing one.
9. ___________ in AngularJS is the synchronization between the model and the view.
A. Scops
B. Filter
C. Data binding
D. Service
View Answer
Ans : C
Explanation: Data binding in AngularJS is the synchronization between the model and the view.
10. Which of the following can be used as a prefix for Directive?
A. ng-
B. x-
C. data-
D. All of the above
View Answer
Ans : D
Explanation: All of the above can be used as a prefix for Directive.
Discussion