AngularJS Quiz | Set-2

  • Last Updated : 08 Oct, 2021

Question 1
Which directives used for building the nested form in Angular are?
A
ng-app
B
ng-start
C
ng-form
D
ng-end
AngularJS Quiz | Set-2    
Discuss it


Question 1 Explanation: 
The ng-form Directive in AngularJS is used to create the nested form nested means one form inside the other form. It also specifies the inherit control from the HTML form. It creates a control group inside a form directive which can be used to determine the validity of a sub-group of controls.
Question 2
Which of the below directive in AngularJs is called the entry point of the application?
A
ng-begin
B
ng-start
C
ng-app
D
None of the above
AngularJS Quiz | Set-2    
Discuss it


Question 2 Explanation: 
The ng-app Directive in AngularJS is used to define the root element of an AngularJS application. This directive automatically initializes the AngularJS application when the page loads. It can help to load various modules in AngularJS Application.
Question 3
$dirty flag in Angular JS is used for?
A
State that the form has invalid data.
B
State that value has been changed.
C
Both of the above.
D
None of the above.
AngularJS Quiz | Set-2    
Discuss it


Question 3 Explanation: 
The $dirty flag in Angular JS is used for the state that the form has invalid data. It also checks whether the Html form is dirty or after navigating the page user value is save or not.
Question 4
Which jQuery function is used to bind the current context to the function?
A
angular.element()
B
angular.bind()
C
angular.bootstrap()
D
angular.foreach()
AngularJS Quiz | Set-2    
Discuss it


Question 4 Explanation: 
The angular. bind() function in jQuery is responsible for binding the current context of the function. but it executes after some time. This function is also used in Partial application, and It takes the three-parameter Self, function, and arguments.
Question 5
The .subscribe in angular is used for?
A
Streams data synchronously
B
Streams data asynchronously
C
Both of the above
D
None of above
AngularJS Quiz | Set-2    
Discuss it


Question 5 Explanation: 
The .scubsribe in angular, it is used for passing the observer object for notification purpose So the answer is Streams data synchronously and Streams data asynchronously,
Question 6
For linking the angular to Html which directive is used?
A
ng-begin
B
ng-app
C
ng-start
D
None of the above
AngularJS Quiz | Set-2    
Discuss it


Question 6 Explanation: 
The ng-app is directive is used to linking with Angular to HTML. It is used to define the root element of the angular Js application. In another word, it is also called the entry point of angular application.
Question 7
Which of the below is an Invalid filter in AngularJs?
A
JSON
B
email
C
limitTo
D
order by
AngularJS Quiz | Set-2    
Discuss it


Question 7 Explanation: 
The filter in angular is provide transformation of the data Email is an invalid filter in Angular JS the valid filter are JSON, limitTo, and order by.
Question 8
Which of the below is the controller for the single parameter in Angular JS?
A
$control
B
$scope
C
^scope
D
All of the above
AngularJS Quiz | Set-2    
Discuss it


Question 8 Explanation: 
The scope is the controller for the single parameter in Angular JS. When you add properties into the scope object in the controller, only then does it get access to those properties. A scope is an inbuilt object and contains the application data.
Question 9
How many numbers of $RootScope does in Angular Js?
A
2
B
3
C
1
D
4
AngularJS Quiz | Set-2    
Discuss it


Question 9 Explanation: 
If the variables contain the same name in the rotoscope then the controller or the application will use the current scope. The one(1) number of $RootScope does in Angular Js.
Question 10
Which directive is used to specify the custom behavior functions during the copy of the text in input text fields in jQuery are?
A
ng-copy
B
ng-list
C
ng-hide
D
ng-keypress
AngularJS Quiz | Set-2    
Discuss it


Question 10 Explanation: 
The ng-copy directive is used to specify the custom behavior of function during the copy of text input filed of Html form. It is also used when we want to call a function that is triggered after the text is copied from the input field. The main advantage is that it is supported by all the input elements.
There are 15 questions to complete.
My Personal Notes arrow_drop_up


Writing code in comment? Please use ide.geeksforgeeks.org, generate link and share the link here.