-
1.
What are various possible prefixes such as 'ng-' using which Angular directives (for example, ng-app) can be defined?
'ng-', 'data-ng-', 'ng:'
'ng-'
'ng-', 'data-ng-', 'ng:', 'x-ng-'
'ng-', 'data-ng-','x-ng-'
Answer
-
2.
Which of the following is validation css class in AngularJS
ng-valid
ng-invalid
ng-pristine
All of the above
Answer
-
3.
Which of the following is validation css class in AngularJS
ng-valid
ng-invalid
ng-pristine
All of the above
Answer
-
4.
Which of the followings are validation directives?
ng-required
ng-minlength
ng-pattern
All of the above
Answer
-
5.
Which of the followings are validation directives?
ng-required
ng-minlength
ng-pattern
All of the above
Answer
-
6.
Which of the following provider can be used to configure routes?
$routeProvider
$url
$rulesProvider
None of the above
Answer
-
7.
Which of the following provider can be used to configure routes?
$routeProvider
$url
$rulesProvider
None of the above
Answer
-
8.
Which of the following module is required for routing?
angular.js
angular-route.js
angularRouting.js
route.js
Answer
-
9.
Which of the following module is required for routing?
angular.js
angular-route.js
angularRouting.js
route.js
Answer
-
10.
Which of the following service is used to handle uncaught exceptions in AngularJS?
$errorHandler
$exception
$log
$exceptionHandler
Answer
-
11.
Which of the following service is used to handle uncaught exceptions in AngularJS?
$errorHandler
$exception
$log
$exceptionHandler
Answer
-
12.
Which of the following service is used to retrieve or submit data to the remote server?
$http
$XMLHttpRequest
$window
$get
Answer
-
13.
Which of the following service is used to retrieve or submit data to the remote server?
$http
$XMLHttpRequest
$window
$get
Answer
-
14.
Which of the following statements are true?
AngularJS controller maintains application data & behaviour using $scope
AngularJS controller can be created in separate JS file
AngularJS controller can be added into module
All of the above
Answer
-
15.
Which of the following statements are true?
AngularJS controller maintains application data & behaviour using $scope
AngularJS controller can be created in separate JS file
AngularJS controller can be added into module
All of the above
Answer
-
16.
AngularJS module can be created using ________.
angular.module();
var myModule = new module();
module.create();
angular.create();
Answer
-
17.
AngularJS module can be created using ________.
angular.module();
var myModule = new module();
module.create();
angular.create();
Answer
-
18.
AngularJS filters ___________.
Format the data without changing original data
Filter the data to display on UI
Fetch the data from remote server
Cache the subset of data on the browser
Answer
-
19.
AngularJS filters ___________.
Format the data without changing original data
Filter the data to display on UI
Fetch the data from remote server
Cache the subset of data on the browser
Answer
-
20.
What is service in AngularJS?
Service is reusable UI component.
Service is a reusable JavaScript function.
Service is data provider
None of the above
Answer