Search Header Logo

Angular Quiz

Authored by Dotnet Quiz

English

Professional Development

Used 2+ times

Angular Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

35 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of `ngZone` in Angular?

To manage routing
To detect changes outside Angular's context
To handle HTTP requests
To manage component lifecycle

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about `ChangeDetectionStrategy.OnPush`?

It checks for changes in all components
It only checks for changes when an event occurs
It checks for changes only when input properties change
It disables change detection

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the `async` pipe do in Angular templates?

Converts observables to promises
Subscribes to an observable and returns the latest value
Creates a new observable
Unsubscribes from all observables

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of `Injector` in Angular?

To create new components
To manage routing
To resolve dependencies
To handle HTTP requests

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between `Subject` and `BehaviorSubject` in RxJS?

`Subject` stores the last value, `BehaviorSubject` does not
`BehaviorSubject` requires an initial value and emits the last value to new subscribers
`Subject` is synchronous, `BehaviorSubject` is asynchronous
There is no difference

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the role of `ng-content` in Angular?

To define a new component
To project content into a component
To bind data
To handle events

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which lifecycle hook is called after the component’s view has been fully initialized?

`ngOnInit()`
`ngAfterViewInit()`
`ngAfterContentInit()`
`ngDoCheck()`

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?