AngularJS is a JavaScript-based open-source front-end web framework for developing single-page applications. It is maintained mainly by Google and a community of individuals and corporations.
AngularJS MCQs: This section contains AngularJS Multiple-Choice Questions with Answers. These AngularJS MCQs are written for beginners as well as advanced, practice these MCQs to enhance and test the knowledge of AngularJS.
Title | |
---|---|
AngularJS is perfect for _______AngularJS is perfect for _______.
The answer is:
A. Create Single Page Applications
|
|
AngularJS is a _____AngularJS is a _____.
The answer is:
C. JavaScript framework
|
|
AngularJS is distributed as a _______AngularJS is distributed as a _______.
The answer is:
A. JavaScript file
|
|
Who developed AngularJS?Who developed AngularJS?
The answer is:
C. Miško Hevery
|
|
Who maintained AngularJS?Who maintained AngularJS?
The answer is:
D. Both A. and B.
|
|
Is AngularJS free for commercial use? |
|
AngularJS expressions are written inside _____AngularJS expressions are written inside _____.
The answer is:
D. {{ expression }}
|
|
Which directive can be used to write AngularJS expressions?Which directive can be used to write AngularJS expressions?
The answer is:
B. ng-bind
|
|
Which is the correct syntax to write an AngularJS expression using the ng-bind directive?Which is the correct syntax to write an AngularJS expression using the ng-bind directive?
The answer is:
A. ng-bind="expression"
|
|
An AngularJS module defines an ______An AngularJS module defines an ______.
The answer is:
B. application
|
|
Which AngularJS function is used to create a module?Which AngularJS function is used to create a module?
The answer is:
D. angular.module
|
|
Which is the correct syntax to create a module?Which is the correct syntax to create a module?
The answer is:
D. var variable_name = angular.module("app_name", []);
|
|
In the below given statement, "myApp" parameter refers to ____In the below given statement, "myApp" parameter refers to ____.
The answer is:
C. an HTML element in which the application will run
|
|
Which prefix is used with the AngularJS directives?Which prefix is used with the AngularJS directives?
The answer is:
B. ng-
|
|
Which directive initializes an AngularJS application?Which directive initializes an AngularJS application?
The answer is:
A. ng-app
|
|
Which directive initializes application data?Which directive initializes application data?
The answer is:
B. ng-init
|
|
Which directive binds the value of HTML controls to application data?Which directive binds the value of HTML controls to application data?
The answer is:
C. ng-model
|
|
Which directive repeats an HTML element?Which directive repeats an HTML element?
The answer is:
D. ng-repeat
|
|
Which directive defines initial values for an AngularJS application?Which directive defines initial values for an AngularJS application?
The answer is:
B. ng-init
|
|
Write a statement with <div> element to initialize two variables (name and age)?Write a statement with <div> element to initialize two variables (name and age)?
The answer is:
D. <div ng-app="" ng-init="Name='Alex';Age=21">
|
MCQs
Views
Best Answers
Points