Week 9 QC Angular Quiz True or False Flashcards

1
Q

Angular 2 supports TypeScript.

A

TRUE

Explanation : TypeScript is one of the main drivers behind Angular 2 because of the support for constructs such as Decorators.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A component is an important feature in Angular 2.

A

TRUE

Explanation : You’ll find that many constructs in Angular 2 are referred to as Components. There is a special decorator that you’ll have to use, @Component, even when creating a component.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The AppComponent is typically the name for an Angular 2 application’s root component.

A

TRUE

Explanation : The AppComponent is the Component defined in app-component.ts and serves as the main component of the application.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A Component is a specialized Directive.

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A template is a collection of data values you pass to a component.

A

FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Modules are used to organize code in features or related functionality in order to prevent code bloat and promote code reuse.

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

You typically define one root module and typically define additional features of your application as other modules tied into your root module.

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A Logging Service is a type of feature that may be injected into another class.

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The root module must be named AppModule.

A

FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Bootstrapping is the process during which your Root Component is inserted into the DOM.

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Angular will match the selector property of the root component to an element in index.html during the bootstrapping process

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Two-way Data-binding is like property-binding and event-binding together.

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Property-binding and interpolation can be used to set an element’s property for string values.

A

TRUE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

ngModel, ngClass, and ngStyle are examples of structural directives.

A

FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Directives which alter the DOM like ngFor or ngIf are examples of attribute directives.

A

FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Event-binding associates DOM events to component functions.

A

TRUE

17
Q

ngFor is used to toggle display of an element.

A

FALSE

18
Q

ngIf does NOT remove the element from the DOM if the expression evaluates to false.

A

FALSE

19
Q

ngClass is used to add/remove multiple styles using key/value pairs of CSS

A

FALSE