Google News
logo
AngularJS - Quiz(MCQ)
1 .
Who is Inventor of AngularJS?
A)
Brad Green
B)
Igor Minor
C)
Misko Hevery
D)
Misko Minor

Correct Answer :  

Misko Hevery

2 .
AngularJS initial release date ?
A)
October 20, 2007
B)
October 20, 2008
C)
October 20, 2009
D)
October 20, 2010

Correct Answer :   October 20, 2010

3 .
AngularJS is based on which of the following pattern.?
A)
VMC
B)
MVC
C)
MVA
D)
GUI

Correct Answer :  

MVC 

4 .
What is AngularJS ?
A)
Front end framework
B)
Back end framework
C)
Both of above
D)
None of the above

Correct Answer :  

Front end framework

5 .
What is AngularJS?
A)
A simplified JavaScript framework, used for modifiability.
B)
A simplified JavaScript framework, used binding for HTML User Interface Elements with JavaScript binding.
C)
A modifiable JavaScript framework, used for information security.
D)
An MVC JavaScript framework, used for information security

Correct Answer :  

A simplified JavaScript framework, used binding for HTML User Interface Elements with JavaScript binding. 

6 .
Which Directive is used to define and link an AngularJS application to HTML.?
A)
ng-app
B)
g-app
C)
ng-controller
D)
ng-init

Correct Answer :  

ng-app

7 .
_______ AngularJS directive is used to add or remove HTML elements from the DOM based on data in the model.?
A)
ng-model
B)
ng-disabled
C)
ng-switch
D)
None of the above

Correct Answer :  

ng-switch

8 .
AngularJS application is composition of which of the following___________ ?
A)
HTML and CSS
B)
HTML and JavaScript
C)
HTML and EcmaScript
D)
HTML and AngularScript

Correct Answer :  

HTML and JavaScript

9 .
What is the correct syntax for a variable “a” in AngularJS?
A)
{{{expression}}}
B)
(expression)
C)
{{expression}} 
D)
[expression]

Correct Answer :  

{{expression}}

10 .
Which of the following module is required for routing?
A)
angular.js
B)
angular-route.js 
C)
angularRouting.js
D)
route.js

Correct Answer :  

angular-route.js

11 .
Which of the following provider can be used to configure routes?
A)
$routeProvider
B)
$url
C)
$rulesProvider
D)
None of the above

Correct Answer :  

$routeProvider

12 .
Which of the following is validation css class in AngularJS
A)
ng-valid
B)
ng-invalid
C)
ng-pristine
D)
All of the above

Correct Answer :  

All of the above

13 .
In AngularJS how to manually start up an AngularJS application ?
A)
Using AngularJS function- angular.element
B)
Using AngularJS function- angular.bootstrap 
C)
Using AngularJS function- angular.copy
D)
None of the above

Correct Answer :  

Using AngularJS function- angular.bootstrap 

14 .
In AngularJs which feature is available for Navigation
A)
Factory
B)
Config
C)
Service
D)
Route

Correct Answer :  

Route

15 .
Which of the following is not a valid AngularJS Directives?
A)
ng-model
B)
ng-destroy
C)
ng-repeat
D)
ng-init

Correct Answer :  

ng-destroy 

16 .
In context of AngularJS, what does SPA stand for?
A)
Software Product Assessment
B)
Software Publisher Association
C)
Single Point of Access
D)
Single Page Application

Correct Answer :  

Single Page Application

17 .
Which of the following service modes can be easiest to test while using AngularJS?
A)
Object Orientation
B)
Service Oriented Architecture 
C)
Model View Controller
D)
Event-driven

Correct Answer :  

Service Oriented Architecture

18 .
AngulsrJS directives can be applied to which of the following types ?
A)
Element
B)
Attribute
C)
Comment
D)
All of the above

Correct Answer :  

All of the above

19 .
In AngularJS which of the following controller take single parameter.?
A)
$scope 
B)
$scope.controller
C)
$control
D)
$param

Correct Answer :  

$scope 

20 .
What is the parent of $scope in AngualarJS?
A)
$super
B)
$rootScope
C)
$root
D)
@super

Correct Answer :  

$rootScope

21 .
Which of the following service is used to retrieve or submit data to the remote server?
A)
$http
B)
$XMLHttpRequest
C)
$window
D)
$get

Correct Answer :  

$http

22 .
Which of the following service is used to handle uncaught exceptions in AngularJS?
A)
$errorHandler
B)
$exception
C)
$log
D)
$exceptionHandler

Correct Answer :  

$exceptionHandler

23 .
What is the use of $scope variable in AngularJS ?
A)
Get/set values in a function call
B)
Get/set values for model, view and controller 
C)
To get values of variables within the implementation scope
D)
Store data

Correct Answer :  

Get/set values for model, view and controller 

24 .
AngularJS extends HTML _______________ ?
A)
Attributes
B)
Properties
C)
All of the above
D)
None of the above

Correct Answer :  

Attributes

25 .
AngularJS can show and hide HTML depending on the state of data in the model by using which of the following AngularJs directives ?
A)
ng-shown, ng-hidden
B)
g-shows, ng-hides
C)
nt-show, nt-hide
D)
ng-show, ng-hide

Correct Answer :  

ng-show, ng-hide

26 .
What is the purpose of $destroy method in AngularJS?
A)
Remove Dangling Pointers
B)
Remove Pointers
C)
Cleanup Resources
D)
All of the above

Correct Answer :  

Cleanup Resources

27 .
How to include HTML content into another HTML ?
A)
Server Side push
B)
By Using include 
C)
By Using Polling
D)
By Using Commet

Correct Answer :  

By Using include

28 .
In AngularJS, what is $scope variable used for?
A)
To get values of variables within the implementation scope
B)
Get/set values for model, view and controller
C)
Store data
D)
Get/set values in a function call

Correct Answer :  

Get/set values for model, view and controller

29 .
Elements of AngularJS MVC views are rendered in which order?
A)
Random 
B)
Sequential
C)
Priotization
D)
None of the above

Correct Answer :  

Random

30 .
In AngularJS data binding is __________.
A)
simplex data binding
B)
sychronous data binding
C)
one way data binding
D)
two way data binding

Correct Answer :  

two way data binding

31 .
Constant
A)
Constant
B)
Application Module 
C)
Value
D)
Factory

Correct Answer :  

Application Module 

32 .
AngularJS directives are used in ________.
A)
Model
B)
View 
C)
Controller
D)
Module

Correct Answer :  

View

33 .
Which of the following directive bootstraps AngularJS framework?
A)
ng-init
B)
ng-app
C)
ng-controller
D)
ng-bootstrap

Correct Answer :  

ng-app

34 .
How does an object or function can get hold of its dependencies in angular js?
A)
Typically using the new operator, dependency can be created
B)
By referring to a global variable, dependency can be looked up
C)
Dependency can be passed into where it is required
D)
All of the above

Correct Answer :  

All of the above

35 .
What is link function is used for in angular js?
A)
It is used for registering DOM listeners as well as instance DOM manipulation
B)
It is used to retrieve object instances as defined by provider
C)
It is used for template DOM Manipulation and collect all of the directives
D)
The method traverses the DOM and matches the directives.

Correct Answer :  

It is used for registering DOM listeners as well as instance DOM manipulation

36 .
Explain what Angular JS routes does?
A)
Automatic synchronization of data between the model and view components
B)
Enables you to create different URLs for different content in your application
C)
Link the template with scope by calling the linking function returned from the previous step
D)
To propagate any model changes through the system into the view from outside of the Angular realm

Correct Answer :  

Enables you to create different URLs for different content in your application

37 .
What does the $dirty flag indicates in angular js?
A)
it indicates the value cannot be changed
B)
It indicates the form has invalid data
C)
It indicates that value has been changed 
D)
None of the above

Correct Answer :  

It indicates that value has been changed

38 .
How to include HTML content into another HTML?
A)
Use of include 
B)
Server Side push
C)
Use of Polling
D)
Use of Commet ID

Correct Answer :  

Use of include

39 .
What is the factory method is used for?
A)
It is used for creating the directive
B)
It is used for template DOM manipulation
C)
It is used for styling of form
D)
To check how code gets hold of its dependencies

Correct Answer :  

It is used for creating the directive

40 .
ng-init directive in angular js is used for?
A)
Wraps a raw DOM element or HTML string as a jQuery element
B)
Allows you to evaluate an expression in the current scope
C)
Determines if two objects or two values are equivalent.
D)
Serializes input into a JSON-formatted string

Correct Answer :  

Allows you to evaluate an expression in the current scope

41 .
Which of the following statements are true?
A)
AngularJS has directives. 
B)
AngularJS supports single service only
C)
AngularJS does not support Dependency Injection
D)
AngularJS does not support templates.

Correct Answer :  

AngularJS has directives.

42 .
Explain what is angular.bootstrap is used for?
A)
Determines if a reference is a DOM element
B)
It deserializes a JSON string
C)
It used for manually starting up angular application
D)
All of the above

Correct Answer :  

It used for manually starting up angular application

43 .
Which of the following statements are invalid AngularJS filters?
A)
currency filter
B)
orderby filter
C)
lowercase filter
D)
aggregate filter 

Correct Answer :  

aggregate filter

44 .
Which of the following is/are not AngularJS events?
A)
ng-cut
B)
ng-keypress
C)
ng-rgtclick
D)
ng-dblclick 

Correct Answer :  

ng-dblclick

45 .
Which of the following is valid for AngualarJS module
A)
var app = angular.module(["myApp","param");
B)
var app = angular.module("myApp");
C)
var app = angular.module("myApp", []);
D)
var app = angular.module();

Correct Answer :  

var app = angular.module("myApp");

46 .
Using filters AngularJS cannot use _____________.
A)
json
B)
Special characters 
C)
orderby
D)
limitTo

Correct Answer :  

Special characters

47 .
How to use dependency injection in AngularJS ?
A)
Create JSONs and inject through a function call
B)
Create two classes, one extends the other. Pass the child as a parameter to the parent class 
C)
Create JSONs and inject through a function call
D)
Pass scope and http variables as a parameter in the Controller function

Correct Answer :  

Create two classes, one extends the other. Pass the child as a parameter to the parent class

48 .
AngularJS directives can be written in HTML element as:
A)
Tag
B)
Attribute
C)
Class name
D)
All of the above

Correct Answer :  

All of the above

49 .
What is $scope?
A)
It transfers data between a controller and view
B)
It transfers data between model and controller
C)
It is a global scope in AngularJS.
D)
None of the above

Correct Answer :  

It transfers data between a controller and view

50 .
Which of the following directive allows us to use form?
A)
ng-include
B)
ng-form
C)
ng-bind
D)
ng-form

Correct Answer :  

ng-form

51 .
What is service in AngularJS?
A)
Service is reusable UI component.
B)
Service is a reusable JavaScript function.
C)
Service is data provider
D)
None of the above

Correct Answer :  

Service is a reusable JavaScript function.

52 .
AngularJS module can be created using ________.
A)
angular.module();
B)
var myModule = new module();
C)
module.create();
D)
angular.create();

Correct Answer :  

angular.module();

53 .
In Angular 2 which of the following service allows you to dynamically load a component in a certain position on the page. ?
A)
DynamicControlLoader
B)
DynamicControllerLoader
C)
DynaCompLoader
D)
DynamicComponentLoader

Correct Answer :  

DynamicComponentLoader

54 .
Angular 2 is component based ,and in Angular 2 $scope and controllers are replaced by __________ and __________ ?
A)
components, directives
B)
components, controllers
C)
$scopes, components
D)
controllers, directives

Correct Answer :  

components, directives