wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Angular JS -01

Total questions: 55

Worksheet time: 27mins

Name
Class
Date
1.

What is MVC

a)

Model View Controller

b)

Module View Controller

c)

Model View Control

d)

Module Viewer Controller

2.

Is it a good or bad practice to use AngularJS together with jQuery?

a)

Good

b)

Bad

3.

What is the role of services in AngularJS and name any services made available by default?

a)

AngularJS Services are objects that provide separation of concerns to an AngularJS app.

b)

These can be created using a factory method or a service method.

c)

Services are singleton components and all components of the application (into which the service is injected) will work with single instance of the service

d)

all of the above

4.

ng-controller directive

a)

ng-controller directive tells AngularJS what controller to use with this view.

b)

ng-controller directive binds the AngularJS Application data to HTML tags

c)

ng-controller directive binds the values of AngularJS application data to HTML input controls

d)

ng-controller directive defines and links an AngularJS application to HTML

5.

What is a service?

a)

Services are JavaScript functions and are responsible to do specific tasks only.

b)

Each service is responsible for a specific task for example, $https: is used to make ajax call to get the server data.

c)

all of the above

d)

none of the above

6.

AngularJS is written in which language ?

a)

JavaScript

b)

Java

c)

C++

d)

PHP

7.

Normally in an AngularJS application, which component holds the data?

a)

Model

b)

View

c)

Controller

d)

Templates

8.

Which directive initializes an AngularJS application ?

a)

ng-init

b)

ng-app

c)

ng-model

d)

ng-controller

9.

A role of a filter is to ___ the value of an expression for display to the user.

a)

Format

b)

Delete

c)

Evaluate

d)

Change

10.

____ holds the visual layout an presentation

a)

Controller

b)

Model

c)

View

d)

Directive

11.

Which of the following inputs are used for two-way data binding ?

a)

Text, text area and select

b)

Label, legend and fieldset

c)

Datalist, output and option

d)

All correct

12.

___ is the glue between application controller and view.

a)

Scope

b)

Data

c)

Model

d)

$array

13.

In AngularJS, ___ are containers used to hold other part of an application.

a)

Models

b)

Modules

c)

Controllers

d)

Directives

14.

AngularJS applications depend on ___ to control the flow of data in the application.

a)

Models

b)

Modules

c)

Controllers

d)

Directives

15.

We can have an AngularJS application without any ng-app directive

a)

True

b)

False

16.

It is compulsory to have a value for ng-app in an AngularJs application

a)

True

b)

False

17.

AngularJS is a Jquery library

a)

True

b)

False

18.

AngularJS makes developing SPA (Single Page Application) easy

a)

True

b)

False

19.

Which component of AngularJS helps to extend HTML elements?

a)

Directives

b)

Services

c)

Routes

d)

Filters

20.

Which directive Is used for initializing AngularJS application data in HTML?

a)

ng-start

b)

ng-init

c)

ng-show

d)

ng-begin

21.

Which directive is used for binding the value obtained from the user from HTML inputs to application data?

a)

ng-src

b)

ng-app

c)

ng-controller

d)

ng-model

22.

The ___ is a powerful directive that can iterate over thousands of data with a single line of code

a)

ng-hide

b)

ng-repear

c)

ng-repeat

d)

ng-model

23.

Which symbol Is used to prefix a built-in service?

a)

#

b)

$

c)

|

d)

%

24.

If a variable has the same name in both current scope and In $rootScope, which variable will be used by the application?

a)

Current scope

b)

Root scope

c)

Model scope

d)

$scope

25.

What is the term Angular CLI?

a)

Angular Command-line

b)

Angular Command-line user interface

c)

Angular Command-line interface

d)

Angular Command-line interceptor

26.

Who was Angular developed by?

a)

Google

b)

Facebook

c)

Netflix

d)

Angular

27.

"ng serve" is a command for what?

a)

Order Run service

b)

Run project order

c)

Order update project

d)

Run component

28.

How many types of Data Binding are there?

a)

1 type

b)

2 type

c)

3 type

d)

4 type

29.

What does SPA mean ?

a)

Animal protection Society

b)

Secure Password Authentication

c)

Single Page Application

d)

Sense Plan Act

30.

If I write <button (click) = "onClick ()"> in a template, I use?

a)

interpolation

b)

property binding

c)

event binding

31.

The router allows

a)

Associate URLs with components

b)

To associate values ​​with services

c)

To observe the observables

32.

What mechanism is used to use a service in a component?

a)

Dependency injection

b)

Legacy

c)

Polymorphism

33.

Angular expressions are written in:

a)

[ [expresión ] ]

b)

"" expresión ""

c)

((expresión))

d)

{{ expresión}}

34.

Angular Router is a ....

a)

Component for navigation rules

b)

Module for navigation rules

c)

Fix for navigation rules

d)

Constant for navigation rules

35.

Which tool allows you to manage the dependencies of a frontend project?

a)

NodeJS

b)

npm

c)

TypeScript

d)

webpack

36.

AngularJS

a)

the front-end framework

b)

the web server

c)

the database

d)

the web framework

37.

Which of the following is/are possible for a Web page uses HTML

a)

content

b)

layout

c)

structure

d)

presentation

38.

Web page uses CSS for its

a)

behaviour

b)

layout

c)

presentation

d)

structure

39.

AngularJS module Syntax

(a)  

40.

What is a controller in MVC?

(a)  

41.

What angular function is used to manually start up an angular application

(a)  

42.

AngularJS directives are used in

(a)  

43.

There is a controller which takes a single parameter. We call it . . . . . parameter.

(a)  

44.

Which directive is used to start an angularJS application?

(a)  

45.

Which directive binds the values of application data to HTML input controls in angular JS?

(a)  

46.

Which directive binds Application data to HTML tags in angular JS?

(a)  

47.

What is data binding in angular JS?

(a)  

48.
a)

2


2.5


5


5

b)

{{4/2}}


2.5


5


5

c)

{{4/2}}


2.5


5


{{10/2}}

d)

{{4/2}}


2.5


{{10/2}}


{{10/2}}

49.
a)

Result: {{ 2+2 }}

b)

Result: 4

c)

Result: { 2+2 }

d)

None of the above

50.
a)

Result: {{ 2+2 }}

b)

Result: 4

c)

Result: { 2+2 }

d)

None of the above

51.

Which directive binds the values of application data to HTML input controls in angular JS?

a)

ng-app

b)

ng-model

c)

ng-bind

d)

none

52.

Which directive binds Application data to HTML tags in angular JS?

a)

ng-app

b)

ng-model

c)

ng-bind

d)

none

53.

Which sign is used as prefix for the built-in objects in AngularJS?

a)

#

b)

&

c)

@

d)

$

54.

Can we nest ng-app directive?

a)

true

b)

false

55.

By default, How ng-model watches the directive?

a)

By value

b)

Both value and reference

c)

By reference

d)

none