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