ANGULAR GOOGLE CHARTS QUIZ DESCRIPTION

Which method of $location service is used to get the full URL of the current web page?

  • url()
     

  •  Url()

  • WebUrl()

  • absUrl()

Which AngularJS filter formats a number to a string?

  • number
     

  •  integer

  •     int

  •  num

Which of the following is true about the currency filter?

  • A currency filter is used to format the text in a currency format.
     

  •  A currency filter is a function that takes text as input.

  • Both A and B

  •  None of the above
     

Write a statement with <div> element to initialize two variables (name and age)?

  • <div ng-app="" ng-init="Name:'Alex';Age:21">
     

  • <div ng-app="" ng-init="Name:'Alex',Age:21">

  •  <div ng-app="" ng-init="Name='Alex',Age=21">

  •  <div ng-app="" ng-init="Name='Alex';Age=21">


    The .subscribe in AngularJS is used for?

  •  Streams data asynchronously

  • Both of the above

  • Streams data synchronously

  •  None of the above

A module created by using the AngularJS function is called?

  • module()
     

  •  module()

  • mod()

  • angular module()

Which directive defines the application controller?

  • ng-control
     

  •    ng-controller

  •  ng-NewController

  • None of the above

AngularJS expressions are written inside     .

  • { expression }
     

  •    [{ expression }]

  •  _expression

  •  {{ expression }}

Consider the below statement – what will be the output?

  • The result is: 7.5
     

  •  The result is: 7

  •  The result is: 7.50

  •  The result is: 3*2.5

Which AngularJS directive is used to define AngularJS code that will be executed when the element is being clicked?

  • ng-click
     

  •  ng-mouseOver

  •  ng-mouseClick

  •  ng-mouse

AngularJS is entirely based on HTML and JavaScript?

  • True
     

  •  False

Filters can be added to expressions by using the ____________followed by a filter.

  • comma character (,)
     

  • Colon character (:)

  • Hyphen character (-)

  • pipe character (|)

Which AngularJS filter formats a date to a specified format?

  • datetime
     

  •    time

  • date

  •  ng-date

What is the library for goggle chart?

  • ng-google-chart.js
     

  •  ng-googlechart.js C ng-google-.js

Consider the below statement – what will be the output?
 

  • The value is 10, 30
     

  •  The value is 10, 0

  •  The value is 10, NaN

  • The value is 10,

In the below given statement, "myApp" parameter refers to     .

  • a JavaScript code in which the application will run
     

  •  a JSON file

  • an HTML element in which the application will run

  • SQL queries

Consider the below statement, how to print the value of "StudentName"?
 

  • StudentName

  •  {{ StudentName }}

  •  { StudentName }

  •  { _StudentName }

Which AngularJS directive is used to hide or show an HTML element?

  • ng-showHide
     

  •  ng-ShowHide

  •     ng-show

  •  ng-hide

Which method of $location service is used to get the current URL without any parameters?

  • url()
     

  •  absUrl()

  •  path()

  • absPath()

Consider the below statement – what will be the output?
 

  • Syntax Error
     

  •  Nothing will display

  • Displaying: 5

  •  Displaying: 10

Which method of $location service is used to get the search part of the current URL when called without any parameter?

  • searchPath()
     

  •  absSearch()

  •  ruleSearch()

  •  search()

Which AngularJS function creates a new directive?

  • .new
     

  •  .create

  •  .directive

  •  .CreateDirective

Can we create custom directives in AngularJS?

  • Yes

  • No

Being a JavaScript-only framework, applications written in AngularJS are not safe and secure.

  • True
     

  • False

Which AngularJS directive is used to show or hide an HTML element?

  • ng-showHide
     

  •  ng-ShowHide

  • ng-show

  •  ng-hide

Which AngularJS filter formats a string to upper case?

  • upr
     

  •  upper

  •  uppercase

  •  ng-uppercase

Which AngularJS function is used to create a module?

  • module
     

  • ng-bind
     

  •  angular.create

  •  angular.module

Consider the below statement – what will be the output?

  • Prints the city names in an unordered list
    B.    Prints the city names in an ordered list
    C.    Prints the all name of the city 3 times in an unordered list
    D.    None of the above

  •  Prints the city names in an ordered list

  • Prints the all name of the city 3 times in an unordered list

  •  None of the above

Which directive initializes an AngularJS application?

  • ng-app
     

  •  ng-init

  •  ng-model

  • ng-application

Which AngularJS service is used to make the request to the server?

  • $https
     

  •     $request

  • $http

  •  $requests