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.

Questions and Answers

AngularJS Mock Test II

Answer : A

Explaination

AngularJS expressions are written inside double braces like {{ expression}}.

Q 2 - AngularJS expressions behave in same way as ng-bind directives.

A - false

B - true

Answer : B

Explaination

AngularJS expressions behave in same way as ng-bind directives.

Q 3 - AngularJS application expressions are pure JavaScript expressions.

A - true

B - false

Answer : A

Explaination

AngularJS application expressions are pure JavaScript expressions.

Answer : B

Explaination

Uppercase filter converts a text to upper case text. It is simply added to AngularJS expression to filter out the result.

Answer : A

Explaination

Lowercase filter converts a text to lower case text. It is simply added to AngularJS expression to filter out the result.

Answer : B

Explaination

Currency filter formats text in a currency format. It is simply added to AngularJS expression to filter out the result.

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.

Answer : A

Explaination

orderby filter orders the array based on provided criteria. It is simply added to AngularJS expression to order the result.

Answer : C

Explaination

ng-disabled directive disables/enables a given control.

Answer : C

Explaination

ng-show directive shows/hides a given control.

Answer : C

Explaination

ng-hide directive shows/hides a given control.

Q 12 - ng-click directive represents a AngularJS click event.

A - true

B - false

Answer : A

Explaination

ng-click directive represents a AngularJS click event.

Answer : C

Explaination

angular.module is used to create AngularJS modules along with its dependent modules. It is primarily used to create application module.

Q 14 - angular.module is primarily used to create application module.

A - true

B - false

Answer : A

Explaination

angular.module is primarily used to create application module.

Answer : A

Explaination

$dirty flag states that value in the form has been changed.

Answer : B

Explaination

$invalid flag 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.

A - true

B - false

Answer : A

Explaination

Use novalidate with a form declaration to disable any browser specific validation.

Answer : A

Explaination

Using AngularJS, we can embed HTML pages within a HTML page using ng-include directive.

Q 20 - $http service is used to make an Ajax call to server.

A - false

B - true

Answer : B

Explaination

AngularJS provides $http control which works as a service to make ajax call to read data from the server.

Q 21 - AngularJS needs data in JSON format to populate its model.

A - true

B - false

Answer : A

Explaination

AngularJS needs data in JSON format to populate its model.

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.

Q 23 - $rootScope is the parent of all of the scope variables.

A - true

B - false

Answer : A

Explaination

$rootScope is the parent of all of the scope variables.

Q 24 - Model available in $rootScope is available to its all child scopes.

A - true

B - false

Answer : A

Explaination

Model available in $rootScope is available to its all child scopes.

Q 25 - Model available in $rootScope can be overridden by its all child scopes.

A - true

B - false

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
angularjs_questions_answers.htm
Advertisements