wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Angular basics #02

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Command used to create a component?

a)

ng create component component_name

b)

ng generate component

c)

ng create component

d)

ng generate component component_name

2.

Angular is ________?

a)

Java Framework

b)

Javascript Framework

c)

SQL Framework

d)

HTML Framework

3.

Interpolation binding refers to:

a)

binding expressions into the marked up language

b)

setting a property of view element.

c)

setting an attribute property of a view element.

d)

None of the given

4.

Among the following choose the one which is responsible for the startup of the angular projects.

a)

app.ts

b)

main.ts

c)

index.js

d)

angular.cli.json

5.

SPA stands for _________?

a)

Sample Project application

b)

Simple Program Application

c)

Simple Page Application

d)

Single Page Application

6.

Which among the following is NOT a structural directive?

a)

*ngIf

b)

*ngFor

c)

*ngWhile

d)

*ngClass

7.

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

a)

interpolation

b)

property binding

c)

event binding

d)

none of the given

8.

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

9.

What are the types of directives

a)

Component

b)

Structural

c)

Attribute

d)

All of above

10.

Which type of binding uses the banana box [()]

a)

Property Binding

b)

Interpolation Binding

c)

Two-way binding

d)

Directive Binding