- AngularJS Tutorial
- AngularJS - Home
- AngularJS - Overview
- AngularJS - Environment Setup
- AngularJS - MVC Architecture
- AngularJS - First Application
- AngularJS - Directives
- AngularJS - Expressions
- AngularJS - Controllers
- AngularJS - Filters
- AngularJS - Tables
- AngularJS - HTML DOM
- AngularJS - Modules
- AngularJS - Forms
- AngularJS - Includes
- AngularJS - AJAX
- AngularJS - Views
- AngularJS - Scopes
- AngularJS - Services
- AngularJS - Dependency Injection
- AngularJS - Custom Directives
- AngularJS - Internationalization
- AngularJS Applications
- AngularJS - ToDo Application
- AngularJS - Notepad Application
- AngularJS - Bootstrap Application
- AngularJS - Login Application
- AngularJS - Upload File
- AngularJS - In-line Application
- AngularJS - Nav Menu
- AngularJS - Switch Menu
- AngularJS - Order Form
- AngularJS - Search Tab
- AngularJS - Drag Application
- AngularJS - Cart Application
- AngularJS - Translate Application
- AngularJS - Chart Application
- AngularJS - Maps Application
- AngularJS - Share Application
- AngularJS - Weather Application
- AngularJS - Timer Application
- AngularJS - Leaflet Application
- AngularJS - Lastfm Application
- AngularJS Useful Resources
- AngularJS - Questions and Answers
- AngularJS - Quick Guide
- AngularJS - Useful Resources
- AngularJS - Discussion
AngularJS - Mock Test
This section presents you various set of Mock Tests related to AngularJS Framework. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself.
AngularJS Mock Test II
Q 1 - AngularJS expressions are written using.
A - double braces like {{ expression}}
B - single braces like {expression}
Answer : A
Explaination
AngularJS expressions are written inside double braces like {{ expression}}.
Answer : B
Explaination
AngularJS expressions behave in same way as ng-bind directives.
Answer : A
Explaination
AngularJS application expressions are pure JavaScript expressions.
Q 4 - Which of the following is true about uppercase filter?
A - Uppercase filter is a function which takes text as input.
Answer : B
Explaination
Uppercase filter converts a text to upper case text. It is simply added to AngularJS expression to filter out the result.
Q 5 - Which of the following is true about lowercase filter?
A - Lowercase filter converts a text to lower case text.
B - Lowercase filter is a function which takes text as input.
Answer : A
Explaination
Lowercase filter converts a text to lower case text. It is simply added to AngularJS expression to filter out the result.
Q 6 - Which of the following is true about currency filter?
A - Currency filter formats text in a currency format.
B - Currency filter is a function which takes text as input.
Answer : B
Explaination
Currency filter formats text in a currency format. It is simply added to AngularJS expression to filter out the result.
Q 7 - Which of the following is true about filter filter?
A - filter filter is a function which takes text as input.
B - filter filter is used to filter the array to a subset of it based on provided criteria.
Answer : B
Explaination
filter filter is used to filter the array to a subset of it based on provided criteria. It is simply added to AngularJS expression to filter out the result.
Q 8 - Which of the following is true about orderby filter?
A - orderby filter orders the array based on provided criteria.
B - orderby filter is used to filter the array to a subset of it based on provided criteria.
Answer : A
Explaination
orderby filter orders the array based on provided criteria. It is simply added to AngularJS expression to order the result.
Q 9 - Which of the following is true about ng-disabled directive?
A - ng-disabled directive can enable a given control.
Answer : C
Explaination
ng-disabled directive disables/enables a given control.
Q 10 - Which of the following is true about ng-show directive?
A - ng-show directive can show a given control.
Answer : C
Explaination
ng-show directive shows/hides a given control.
Q 11 - Which of the following is true about ng-hide directive?
A - ng-hide directive can show a given control.
Answer : C
Explaination
ng-hide directive shows/hides a given control.
Answer : A
Explaination
ng-click directive represents a AngularJS click event.
Q 13 - How angular.module works?
A - angular.module is used to create AngularJS modules along with its dependent modules.
B - angular.module is primarily used to create application module.
Answer : C
Explaination
angular.module is used to create AngularJS modules along with its dependent modules. It is primarily used to create application module.
Answer : A
Explaination
angular.module is primarily used to create application module.
Q 15 - Which of the following is true about $dirty flag?
A - $dirty flag states that value has been changed.
Answer : A
Explaination
$dirty flag states that value in the form has been changed.
Q 16 - Which of the following is true about $invalid flag?
A - $invalid flag states that value has been changed.
Answer : B
Explaination
$invalid flag states that form has invalid data.
Q 17 - Which of the following is true about $error?
A - $error states that form has invalid data.
Answer : B
Explaination
$error states the exact error.
Q 18 - Use novalidate with a form declaration to disable any browser specific validation.
Answer : A
Explaination
Use novalidate with a form declaration to disable any browser specific validation.
Q 19 - Which of the following is true about ng-include directive?
A - Embed HTML pages within a HTML page using ng-include directive
B - Embed JS files within a HTML page using ng-include directive
Answer : A
Explaination
Using AngularJS, we can embed HTML pages within a HTML page using ng-include directive.
Answer : B
Explaination
AngularJS provides $http control which works as a service to make ajax call to read data from the server.
Answer : A
Explaination
AngularJS needs data in JSON format to populate its model.
Q 22 - Which of the following is true about $routeProvider?
A - $routeProvider is the key service which set the configuration of urls.
B - $routeProvider maps Urls with the corresponding html page or ng-template.
Answer : D
Explaination
$routeProvider is the key service which set the configuration of urls, maps them with the corresponding html page or ng-template, and attaches a controller with the same.
Answer : A
Explaination
$rootScope is the parent of all of the scope variables.
Answer : A
Explaination
Model available in $rootScope is available to its all child scopes.
Answer : A
Explaination
Model available in $rootScope can be overridden by its all child scopes.
Answer Sheet
Question Number | Answer Key |
---|---|
1 | A |
2 | B |
3 | A |
4 | B |
5 | A |
6 | B |
7 | B |
8 | A |
9 | C |
10 | C |
11 | C |
12 | A |
13 | C |
14 | A |
15 | A |
16 | B |
17 | B |
18 | A |
19 | A |
20 | B |
21 | A |
22 | D |
23 | A |
24 | A |
25 | A |
To Continue Learning Please Login
Login with Google