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
You can create bindings only for the data values that are added to the . . . . . object by the controller.
$action
$control
$scope
none of above
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
The drawback of inline bindings is that AngularJS will not find and process every set of {{ and }} characters in your content.
True
False
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.
None of the above.
ng-app directive defines and links an AngularJS application to HTML.
false
true
ng-bind binds the AngularJS Application data to HTML tags.
Which of the following directive allows us to use form?
ng-include
ng-form
ng-bind
ng-attach
. . . . . helps you to maintain data when you move from controller to view.
View Bag
View Data
Temp Data
None of above
AngularJS supports . . . . . kind(s) of data binding.
one
two
three
four
The view is made with . . . . . . .
HTML
JavaScript
CSS
All of above
There is a controller which takes single parameter. We call it . . . . . parameter.
$param
$scont
currency filter is applied to an expression using pipe character.
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
Which of the following service is used to handle uncaught exceptions in AngularJS?
$errorHandler
$exception
$log
$exceptionHandler
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.
In MVC, the model is responsible for managing the data of the application.
The MVC architecture does not creates the benefits of . . . . . . . of the system.
request/response
modularity
flexibility
reusability
You cannot use AngularJS directives to tell AnguluarJS how to mix the data into the HTML template.
Model available in $rootScope can be overridden by its all child scopes.
In controllers, model data is accessed via $scope object.
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
MVC is composed of three components.
Member Vertical Controller
Model View Control
Model View Controller
Model Variable Centered
AngularJS directives are used in ________.
Model
View
Module
The ng-change directive must be used with ng-model directives.
Sometimes
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.
ng-app
ag-app
js-app
aj-app
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
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
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
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
The ng-bind directive binds ____________.
Data to model
View to controller
Model to HTML element
Model to $scope
Is AngularJS code unit testable?
Custom directives are used in AngularJS to extend the functionality of HTML.
Which of the followings are validation directives?
ng-required
ng-minlength
ng-pattern
MVC framework is defined in . . . . . Assembly.
System.CSS.Mvc
System.Net.Mvc
System.View.Mvc
System.Web.Mvc
The MVC architecture creates the benefits of . . . . . . . of the system.
reusability/visualisation
All the 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
In AngularJS, Scope contains the model data.
Which of the following is a valid AngularJS expression?
{{ 2 + 2 }}
{ 2 + 2 }
(( 2 + 2 ))
{ (2 + 2) }
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
Which of the following directive bootstraps AngularJS framework?
ng-init
ng-controller
ng-bootstrap
Any change to the . . . . and . . . . . properties affects these bindings and consequently the user interface content.
noOfTries, deviations
restart, tries
noOfTries, deviation
noOfTry, deviation
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
$http service is used to make an Ajax call to server.
Which components can be injected as a dependency in AngularJS?
value
factory
service
All of the above.
AngularJS applications are a mix of . . . . . .
HTML and PHP
HTML and CrossScript
HTML and AngularScript
HTML and JavaScript
AngularJS is based on the . . . . . . pattern.
VMC
MVC
MCV
CVM
You can use the . . . . . . directive, in order to bind the innerHTML of the element to the specified model property.
ng-binding
ng-binds
ng-bindings
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.
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.
AngularJS directives can be written in HTML element as
Tag
Attribute
Class name
Which of the following is validation css class in AngularJS
ng-valid
ng-invalid
ng-pristine
Controller directly refers the view or manipulates it.
AngularJS expressions behave in same way as ng-bind directives.
The ng-model directive is used for __________.
One-way data binding
Two-way data binding
Binding view to controller
AngularJS never regenerates the HTML again.
Which of the following provider can be used to configure routes?
$routeProvider
$url
$rulesProvider
You can use . . . . . class to send the result back in JSON format in MVC.
JSONRESULT
JSONBACKRESULT
JSONRETURNRESULT
JSONRETURN
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();
In MVC . . . . . . helps you to execute logic while MVC action is executed or its executing.
beforeFilter()
afterFilter()
ActionFilters
ControlFilter()
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.
What is service in AngularJS?
Service is reusable UI component.
Service is a reusable JavaScript function.
Service is data provider
For controller action method . . . . . returns nothing as the result.
ResultEmpty
EmptyResult
ReturnEmpty
EmptyReturn
Which of the following module is required for routing?
angular.js
angular-route.js
angularRouting.js
route.js
AngularJS expressions are written using.
double braces like {{ expression}}
single braces like {expression}
small bracket like (expression)
capital bracket like [expression]
Which of the following service is used to retrieve or submit data to the remote server?
$http
$XMLHttpRequest
$window
$get
Scope act as glue between controller and view.
In two-way binding, changes done to a model are reflected in the view, but the reverse also holds true sometimes.