Which of the followings are validation directives?
ng-required
ng-minlength
ng-pattern
All of the above
AngularJS directives can be written in HTML element as
Tag
Attribute
Class name
Which of the following statements are true?
Expression cannot contain condition, loop or RegEx
Expression cannot declare a function
Expression cannot contain comma, void or return keyword
AngularJS module can be created using ________.
angular.module();
var myModule = new module();
module.create();
angular.create();
The . . . . . . directive is one of the most fundamental directives in AngujarJS. The . . . . . directive inserts the result of an expression into the HTML template.
Debug
Interpolation
Matching
Controller
Any change to the . . . . and . . . . . properties affects these bindings and consequently the user interface content.
noOfTries, deviations
restart, tries
noOfTries, deviation
noOfTry, deviation
AngularJS expressions behave in same way as ng-bind directives.
false
true
You can use . . . . . class to send the result back in JSON format in MVC.
JSONRESULT
JSONBACKRESULT
JSONRETURNRESULT
JSONRETURN
AngularJS never regenerates the HTML again.
True
False
In MVC, the model is responsible for managing the data of the application.
Which of the following directive bootstraps AngularJS framework?
ng-init
ng-app
ng-controller
ng-bootstrap
Scope act as glue between controller and view.
ng-app directive defines and links an AngularJS application to HTML.
Which of the following is true about provider?
Provider is used by AngularJS internally to create services, factory etc.
Provider is used during config phase.
Provider is a special factory method.
All of the above.
The ng-bind directive binds ____________.
Data to model
View to controller
Model to HTML element
Model to $scope
Controller directly refers the view or manipulates it.
The MVC architecture creates the benefits of . . . . . . . of the system.
reusability/visualisation
modularity
flexibility
All the Above
In MVC . . . . . . helps you to execute logic while MVC action is executed or its executing.
beforeFilter()
afterFilter()
ActionFilters
ControlFilter()
ng-bind binds the AngularJS Application data to HTML tags.
AngularJS supports . . . . . kind(s) of data binding.
one
two
three
four
There is a controller which takes single parameter. We call it . . . . . parameter.
$param
$control
$scope
$scont
The drawback of inline bindings is that AngularJS will not find and process every set of {{ and }} characters in your content.
Which of the following is true about orderby filter?
orderby filter orders the array based on provided criteria.
orderby filter is used to filter the array to a subset of it based on provided criteria.
Both of the above.
None of the above.
MVC framework is defined in . . . . . Assembly.
System.CSS.Mvc
System.Net.Mvc
System.View.Mvc
System.Web.Mvc
What is $scope?
It transfers data between a controller and view
It transfers data between model and controller
It is a global scope in AngularJS.
None of the above
What is Model in MVC?
Model represents server side data.
Model represents data stored in database.
Model is the lowest level of the pattern responsible for maintaining data.
We need to tell AngularJS what part of our HTML page contains the AngularJS app. You do so by adding the . . . . attribute to the root HTML element of the AngularJS app.
ag-app
js-app
aj-app
You cannot use AngularJS directives to tell AnguluarJS how to mix the data into the HTML template.
What is service in AngularJS?
Service is reusable UI component.
Service is a reusable JavaScript function.
Service is data provider
Which of the following module is required for routing?
angular.js
angular-route.js
angularRouting.js
route.js
In AngularJS, Scope contains the model data.
The view is made with . . . . . . .
HTML
JavaScript
CSS
All of above
AngularJS can show or hide HTML depending on the state of data in the model. You do so using a set of AngularJS directives such as . . . . . . which are created specifically for that purpose.
ng-shown, ng-hidden
ng-show, ng-hide
nt-show, nt-hide
ng-shows, ng-hides
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
$http service is used to make an Ajax call to server.
Which of the following service is used to retrieve or submit data to the remote server?
$http
$XMLHttpRequest
$window
$get
First the HTML document is loaded into the browser, and evaluated by the browser. At this time the AngularJS . . . . . . .
JavaScript file is loaded.
the angular global object is created.
your JavaScript which registers controller functions is executed.
all of above
Is AngularJS code unit testable?
If the data obtained from the model contains HTML elements, these are escaped before being inserted into the HTML template. The escaping means that the HTML is displayed as text, and not as HTML. This is done to prevent . . . .
SQL injection attacks
JS injection attacks
HTML injection attacks
Python injection attacks
Which of the following is true about currency filter?
Currency filter formats text in a currency format.
Currency filter is a function which takes text as input.
AngularJS expressions are written using.
double braces like {{ expression}}
single braces like {expression}
small bracket like (expression)
capital bracket like [expression]
Model available in $rootScope can be overridden by its all child scopes.
Which of the following service is used to handle uncaught exceptions in AngularJS?
$errorHandler
$exception
$log
$exceptionHandler
The ng-bind directive . . . . . . allow you to hide your template markup when the HTML content is shown to the user before it is processed by AngularJS.
does
does not
Custom directives are used in AngularJS to extend the functionality of HTML.
In controllers, model data is accessed via $scope object.
In two-way binding, changes done to a model are reflected in the view, but the reverse also holds true sometimes.
AngularJS is based on the . . . . . . pattern.
VMC
MVC
MCV
CVM
Which components can be injected as a dependency in AngularJS?
value
factory
service
currency filter is applied to an expression using pipe character.
Which of the following is a valid AngularJS expression?
{{ 2 + 2 }}
{ 2 + 2 }
(( 2 + 2 ))
{ (2 + 2) }
Which of the following is validation css class in AngularJS
ng-valid
ng-invalid
ng-pristine
For controller action method . . . . . returns nothing as the result.
ResultEmpty
EmptyResult
ReturnEmpty
EmptyReturn
MVC is composed of three components.
Member Vertical Controller
Model View Control
Model View Controller
Model Variable Centered
When adding . . . . . and . . . . . . to a view, we are essentially instructing Angular to create data bindings that keep the model and view in sync.
extrapolations, interpolations
scopes, directives
directives, interpolation
none of above
AngularJS directives are used in ________.
Model
View
Module
The ng-model directive is used for __________.
One-way data binding
Two-way data binding
Binding view to controller
The . . . . . directive is used if you want to add or remove HTML elements from the DOM based on data in the model.
ng-switch
ng-model
ng-Disabled
ng-Cloak
The ng-change directive must be used with ng-model directives.
Sometimes
AngularJS bindings are . . . . . , meaning that when the value associated with the binding is changed (in the data model), the HTML element will be updated.
parallel
one way
two way
live
AngularJS applications are a mix of . . . . . .
HTML and PHP
HTML and CrossScript
HTML and AngularScript
HTML and JavaScript
Which of the following provider can be used to configure routes?
$routeProvider
$url
$rulesProvider
You can create bindings only for the data values that are added to the . . . . . object by the controller.
$action
The MVC architecture does not creates the benefits of . . . . . . . of the system.
request/response
reusability
AngularJS controller maintains application data & behaviour using $scope
AngularJS controller can be created in separate JS file
AngularJS controller can be added into module
You can use the . . . . . . directive, in order to bind the innerHTML of the element to the specified model property.
ng-bind
ng-binding
ng-binds
ng-bindings
. . . . . helps you to maintain data when you move from controller to view.
View Bag
View Data
Temp Data
None of above
Which of the following is true about ng-model directive?
ng-model directive binds the values of AngularJS application data to HTML input controls.
ng-model directive creates a model variable which can be used with the html page and within the container control having ng-app directive.
Which of the following directive allows us to use form?
ng-include
ng-form
ng-attach