NG Interview Set I - Architecture/ Framework Questions Flashcards

NG Interview Set I - Architecture/ Framework Questions

1
Q

What are some of the top level building blocks of the Angular framework?

A
  • Services, Templates, Modules, Components, Providers, etc.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is AOT?

A
  • Ahead of time compilation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Reactive programming and how does it relate to Angular?

A
  • It’s an “asynchronous programming paradigm concerned with data streams and the propagation of change.”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are some differences between Angular 2 and 4?

A
  • Improvements in AOT, allowing the “else” clause in ngIf, support for TypeScript 2.1, breaking out the animations package…
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are some security related features built in to the Angular framework?

A
  • Sanitation, to prevent cross site scripting
  • Built-in support in the HttpClient to prevent cross-site request forgery
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How can you bypass sanitation in Angular and why would you do so?

A
  • To inject known safe code, you can bypass sanitation (e.g. to embed an iframe)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a good use case for ngrx/store?

A
  • Complex application state management requirements, involving asynchronous requests to update state
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is Redux and how does it relate to an Angular app?

A
  • It’s a way to manage application state and improve maintainability of asynchronicity in your application by providing a single source of truth for the application state, and a unidirectional flow of data change in the application
  • ngrx/store is one implementation of Redux principles
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What would be a good use case for having your own routing module?

A
  • An application whose requirements imply having many routes, and potentially route guards, and child routes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Where would you configure TypeScript specific compiler options for your project?

A
  • In the tsconfig.json
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the tslint.json file used for?

A

Linting the TypeScript code (making sure it conforms to certain standards / conventions)

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

What are some changes introduced in Angular 4?

A
  • Introduction of the else clause in ngIf; splitting out of animation package; support for TypeScript 2.1; improvements around AOT
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are some changes introduced in Angular 5?

A
  • New version of HttpClient; build optimizer; Universal State Transfer API (allows sharing state of app between server and client easily); support for TypeScript 2.3
How well did you know this?
1
Not at all
2
3
4
5
Perfectly