Worksheets(FED)Quiz 3
Total questions: 15
Worksheet time: 8mins
What does MVC stand for in AngularJS architecture?
Model-View-Controller
Model-View-Component
Model-View-Communication
Model-View-Creation
Which directive is used for two-way data binding in AngularJS?
ngIf
ngBind
ngModel
ngRepeat
What is the primary purpose of AngularJS?
To simplify the development of single-page applications.
To provide a framework for building desktop applications.
To create complex multi-page applications.
To enhance the performance of server-side applications.
Which of the following is a core feature of AngularJS?
Single-page application routing
Two-way data binding
One-way data binding
Dependency injection
What is the role of a controller in AngularJS?
A controller in AngularJS manages the data and behavior of a view.
A controller in AngularJS manages the database directly.
A controller in AngularJS is responsible for styling the view.
A controller in AngularJS handles HTTP requests only.
Which of the following is NOT a built-in directive in AngularJS?
ng-model
ng-repeat
ng-if
ng-custom
What is the purpose of the ng-app directive?
To manage routing in an AngularJS application.
To define a controller in AngularJS.
To create a new AngularJS component.
To initialize an AngularJS application.
Which of the following is used to create a single-page application?
Django
Flask
Ruby on Rails
React, Angular, or Vue.js
What does the term 'scope' refer to in AngularJS?
The term 'scope' indicates the version of AngularJS being used.
The term 'scope' is a directive used for routing in AngularJS.
The term 'scope' in AngularJS refers to the object that connects the controller and the view, facilitating data binding.
The term 'scope' refers to the main module in AngularJS.
Which of the following is a valid way to define a module in AngularJS?
module('myApp', [])
angular.module('myApp', []);
angular.module('myApp')
angular.createModule('myApp', [])
What is the function of the ng-repeat directive?
To repeat a set of HTML elements for each item in a collection.
To create a new HTML element for each item in a collection.
To bind data to a single HTML element.
To filter items in a collection based on a condition.
Which event is triggered when a user clicks on an element in AngularJS?
click
hover
dblclick
focus
What is the purpose of the $http service in AngularJS?
The $http service is used to make HTTP requests to remote servers.
The $http service is used for data binding in AngularJS.
The $http service is a directive for creating components.
The $http service is responsible for managing application state.
Which of the following is a valid expression for data binding?
{data}
{{data}}
[data]
What is the significance of the $scope object in AngularJS?
$scope is a built-in service for HTTP requests.
$scope is primarily for managing user authentication.
$scope is used only for routing in AngularJS.
The $scope object is crucial for data binding and communication between the controller and the view in AngularJS.
