wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Angular 4

Total questions: 25

Worksheet time: 12mins

Name
Class
Date
1.

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

2.

Who was Angular developed by?

a)

Google

b)

Facebook

c)

Netflix

d)

Angular

3.

"ng serve" is a command for what?

a)

Order Run service

b)

Run project order

c)

Order update project

d)

Run component

4.

How many types of Data Binding are there?

a)

1 type

b)

2 type

c)

3 type

d)

4 type

5.

What command do I need to use Generate component 1 component?

a)

ng g c component-name

b)

ng gen component component-name

c)

ng g com component-name

d)

ng generate com component-name

6.

Which of these are all Angular directives?

a)

NgIf,NgFor,NgLoop

b)

NgClass,NgSwitch,NgDate

c)

NgFor,NgSwitch,NgClass

d)

NgClass,NgLoop,NgIf

7.

What is the quality that is not in Angular?

a)

Directives

b)

Pipes

c)

Component

d)

RoutingLink

8.

What does SPA mean ?

a)

Animal protection Society

b)

Secure Password Authentication

c)

Single Page Application

d)

Sense Plan Act

9.

What is the @Input decorator for?

a)

Share data from a parent component to a child

b)

Share data from a child component to a parent

c)

Use event binding

d)

Use a service

10.

What is the @Output decorator for?

a)

Share data from a parent component to a child

b)

Share data from a child component to a parent

c)

Use event binding

d)

Use a service

11.

If I write {{myValue}} in a template, I use?

a)

interpolation

b)

property binding

c)

event binding

12.

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

a)

interpolation

b)

property binding

c)

event binding

13.

If I write <a [title postale="myValue"> in a template, I use?

a)

interpolation

b)

property binding

c)

event binding

14.

*ngIf and *ngFor are?

a)

Attribute directives

b)

Component directives

c)

Services

d)

Structural directives

15.

The router allows

a)

Associate URLs with components

b)

To associate values ​​with services

c)

To observe the observables

16.

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

a)

Dependency injection

b)

Legacy

c)

Polymorphism

17.

Which of these are angular directives?

a)

Ng- app, Ng-model, Ng-mod

b)

Ng- apc Ng-mod Ng-blind

c)

Ng- app, Ng-model, Ng-bind

18.

Angular expressions are written in:

a)

[ [expresión ] ]

b)

"" expresión ""

c)

((expresión))

d)

{{ expresión}}

19.

Angular Router is a ....

a)

Component for navigation rules

b)

Module for navigation rules

c)

Fix for navigation rules

d)

Constant for navigation rules

20.

What event should be used to finish work with form?

a)

(click) on button

b)

(ngSubmit) on button

c)

(click) on form

d)

(ngSubmit) on form

21.

What class shows that user putted cursor in input?

a)

ng-touched

b)

ng-pristine

c)

ng-valid

d)

ng-untouched

22.

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

a)

NodeJS

b)

npm

c)

TypeScript

d)

webpack

23.

What does this syntax do? routerLink="/home"

a)

It navigates to the component with a name matching the assigned string

b)

It links a route to a service by matching the assigned string to a service class name

c)

It links a route with data by matching the assigned string to a property name

d)

It navigates to the component with a path matching the assigned string

24.

What command will create a new Angular app with a root routing module?

a)

ng generate my-dream-app

b)

ng new my-dream-app --module

c)

ng generate my-dream-app --routing

d)

ng new my-dream-app

e)

ng new my-dream-app --routing

25.

What is a routerOutlet?

a)

A directive defined in the HTML identifying the route to activate

b)

A directive defined in the HTML indicating where a route's view should display

c)

A decorator defining the template to display when a route is activated

d)

A property of a component class used to activate a route