wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

(FED)Quiz 3

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What does MVC stand for in AngularJS architecture?

a)

Model-View-Controller

b)

Model-View-Component

c)

Model-View-Communication

d)

Model-View-Creation

2.

Which directive is used for two-way data binding in AngularJS?

a)

ngIf

b)

ngBind

c)

ngModel

d)

ngRepeat

3.

What is the primary purpose of AngularJS?

a)

To simplify the development of single-page applications.

b)

To provide a framework for building desktop applications.

c)

To create complex multi-page applications.

d)

To enhance the performance of server-side applications.

4.

Which of the following is a core feature of AngularJS?

a)

Single-page application routing

b)

Two-way data binding

c)

One-way data binding

d)

Dependency injection

5.

What is the role of a controller in AngularJS?

a)

A controller in AngularJS manages the data and behavior of a view.

b)

A controller in AngularJS manages the database directly.

c)

A controller in AngularJS is responsible for styling the view.

d)

A controller in AngularJS handles HTTP requests only.

6.

Which of the following is NOT a built-in directive in AngularJS?

a)

ng-model

b)

ng-repeat

c)

ng-if

d)

ng-custom

7.

What is the purpose of the ng-app directive?

a)

To manage routing in an AngularJS application.

b)

To define a controller in AngularJS.

c)

To create a new AngularJS component.

d)

To initialize an AngularJS application.

8.

Which of the following is used to create a single-page application?

a)

Django

b)

Flask

c)

Ruby on Rails

d)

React, Angular, or Vue.js

9.

What does the term 'scope' refer to in AngularJS?

a)

The term 'scope' indicates the version of AngularJS being used.

b)

The term 'scope' is a directive used for routing in AngularJS.

c)

The term 'scope' in AngularJS refers to the object that connects the controller and the view, facilitating data binding.

d)

The term 'scope' refers to the main module in AngularJS.

10.

Which of the following is a valid way to define a module in AngularJS?

a)

module('myApp', [])

b)

angular.module('myApp', []);

c)

angular.module('myApp')

d)

angular.createModule('myApp', [])

11.

What is the function of the ng-repeat directive?

a)

To repeat a set of HTML elements for each item in a collection.

b)

To create a new HTML element for each item in a collection.

c)

To bind data to a single HTML element.

d)

To filter items in a collection based on a condition.

12.

Which event is triggered when a user clicks on an element in AngularJS?

a)

click

b)

hover

c)

dblclick

d)

focus

13.

What is the purpose of the $http service in AngularJS?

a)

The $http service is used to make HTTP requests to remote servers.

b)

The $http service is used for data binding in AngularJS.

c)

The $http service is a directive for creating components.

d)

The $http service is responsible for managing application state.

14.

Which of the following is a valid expression for data binding?

a)

b)

{data}

c)

{{data}}

d)

[data]

15.

What is the significance of the $scope object in AngularJS?

a)

$scope is a built-in service for HTTP requests.

b)

$scope is primarily for managing user authentication.

c)

$scope is used only for routing in AngularJS.

d)

The $scope object is crucial for data binding and communication between the controller and the view in AngularJS.