• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

AngularJS Quiz | Set-3

Question 11

Which below is the correct syntax for the ng-bind directive?
  • <element ng-bind="expression"> Contents... </element>
  • <element ng-mousedown="expression"> Contents... </element>
  • <element ng-value="expression"> Contents... </element>
  • <element ng-keypress="expression"> Contents... </element>

Question 12

Which below pattern is used to add up pattern (regex pattern) validator to ngModel on input HTML element?

  • ng-blur

  • ng-checked

  • ng-pattern

  • ng-readOnly

Question 13

Which directive of AngluarJS is used to apply custom behavior when an element is clicked?

  • ng-dbclick

  • ng-hide

  • ng-click

  • ng-show

Question 14

Which directive specifies the CSS classes on every odd appearance of the HTML element?
  • ng-class-value
  • ng-class-odd
  • ng-even
  • ng-copy

Question 15

What is the output of the below code snippets:

<html>
     <head>
    <title>AngularJS ng-app Directive</title>
    <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js">
    </script>
   </head>

    <h2>ng-app directive</h2>
     
    <div ng-app="" ng-init="name='Angular'">
        <p>{{ name }} is framework of Javascript</p>
    </div>
</body>
 </html>
 
 
  • name is a framework of Javascript

  • {{ is framework of Javascript }}

  • Angular is the framework of Javascript

  • Type Error.

There are 15 questions to complete.

Last Updated :
Take a part in the ongoing discussion