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