ANGULAR QUIZ DESCRIPTION

What are various possible ways in which angular application can be initialized?

  • On an element, one could either put simply the attribute such as (ng-app, data-ng-app, ng:app, x-ng-app)
     

  •   Put the named attribute such as (ng-app='demoApp')
     

  •  Both of the above

Which of the following is true about ng-init directive?

  • ng-init directive initializes an AngularJS Application data.
     

  • ng-init directive is used to put values to the variables to be used in the application.
     

  • Both of the above.
     

  • None of the above.

Which of the following directive is used to initialize an angular app?

  • ng-model
     

  •  ng-app
     

  •  ng-controller
     

  • None of the above

AngularJS is perfect for?

  • MPAs
     

  •   DPAs
     

  •    SPAs
     

  •  CPAs

How many $RootScope an AngularJS application can have?

  • One
     

  •   Two
     

  •  Zero
     

  •   Infinity

 Which of the following types of the component can be used to create a custom directive?

  • CSS
     

  •  Attribute
     

  •     Element directives
     

  •   All of the above.

Which of the following statement is correct for AngularJS?

  • AngularJS is a Java framework
     

  •    AngularJS is a SQL framework
     

  •   AngularJS is a JavaScript framework
     

  •   AngularJS is an HTML framework

AngularJS bootstraps itself during config phase.

  • True

  • False

Which API need to be invoked on the rootScope service to get the child scopes?

  • new
     

  • $new

Which of the following is the correct syntax for writing AngularJS expressions?

  • {{expression}}
     

  •  {{{expression}}}
     

  •  (expression)
     

  •   [expression]

ng-app directive defines and links an AngularJS application to HTML.

  • False

  • True

AngularJS is an MVC based framework?

  • True

  • False

Which of the following syntax is correct for applying multiple filters in AngularJS?

  • {{ expression | {filter1} | {filter2} | … }}
     

  •    {{ expression – {filter1} – {filter2} – … }}
     

  •   {{ {filter1} | {filter2} | …-expression}}
     

  •  {{ expression | filter1 | filter2 | … }}

A module created by using the AngularJS function is called?

  • module()
     

  •   mod()
     

  •   angular module()
     

  •   module()

What angular function is used to manually start up an angular application?

  • angular.bootstrap
     

  •  angular.element
     

  •  angular.copy
     

  •  None of the above

 Which angular module is loaded by default?

  • ng
     

  •  ng-app

At framework level, how does Angular retrieve the matching elements for processing?

  • Makes use of jqLite(element) function.
     

  •  If jQuery is used, jQuery(element) is used by way of assigning jQuery to jqLite variable
     

  •  Both of the above
     

  • None of the above

Which of the following community Angular JS belong to?

  • Microsoft
     

  • Facebook
     

  •   Google
     

  •  Twitter

Which of the following template can be used to write AngularJS directives?

  • Attribute
     

  •  Class name
     

  •    Tag
     

  •   All of the above

 Who is sometimes called as Father of AngularJS?

  • Brad Green
     

  •  Igor Minor
     

  •  Misko Hevery
     

  •  Brian Ford

Which of the following statement is true in the case of a controller in MVC?

  • A controller is a software code that renders the user interface.
     

  •    A controller is a software code that stores the data.
     

  •   A controller is a software code that controls the interactions between the Model and View.
     

  •   All of the above.

AngularJS is a library?

  • True

  • False

AngularJS expressions are written using.

  • double braces like {{ expression}}
     

  • single braces like {expression}
     

  • small bracket like (expression)
     

  • capital bracket like [expression]

 AngularJS supports two-way data binding?

  • True

  • False

What is the use of Angular Controllers in the application?

  • Angular controllers are used for displaying the data
     

  •   Angular controllers are used for controlling the data
     

  •  All of above
     

  •   None of above

At framework level, how does Angular retrieve the matching elements for processing?

  • Makes use of jqLite(element) function.
     

  •  If jQuery is used, jQuery(element) is used by way of assigning jQuery to jqLite variable
     

  •   Both of the above
     

  •  None of the above

An Angular application can be initialized on ______?

  • Only HTML element
     

  • ANY element

Which of the following directive is used to bind the application data to the HTML view in AngularJS?

  • ng-init directive
     

  • ng-model directive
     

  •   ng-bind directive
     

  •  ng-app directive

 Can '$scope' be injected while creating service using 'factory' method?

  • Yes

  • no

Which of the following syntax is used to create a module in AngularJS?

  • var myModule= new Module();
     

  •    var myModule= angular.module();
     

  •   module(“app”, []);
     

  •   None of the above