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