Angular skill check
Test your Angular: components and templates, dependency injection, RxJS, change detection, routing, forms, and signals. Answers assume Angular 18 with standalone components.
15
Questions
11 min
Timer can't pause
Multiple choice
Angular 18
Choose a level
Topics
- Components
- Templates and binding
- Dependency injection
- RxJS
- Change detection
- Routing
- Forms
- Signals
Do
Use scratch paper or a notepad to work things out. Skip a question and come back to it later.
Don't
Look up answers during the check. Open the check in more than one tab or window.
Easy · 15 questions · 11 min
By starting, you agree to the Terms and Privacy Policy.
Practice checks each answer as you go, with an explanation. The exam is checked when you submit; 9 of 15 passes and earns a certificate.
Checking your levels…
Certificates come from the certified exam: pass with 9 of 15 while signed in. View a sample certificate.
Sample Angular questions with answers
These are never used in a check, so seeing their answers here won't give anything away.
Question 1 · Easy · Templates and binding
Which built-in Angular template syntax correctly binds the native disabled property of a button to a component boolean property named isSubmitting?- A.
<button bind-disabled="{{isSubmitting}}">Submit</button> - B.
<button [disabled]="isSubmitting">Submit</button> - C.
<button disabled="[isSubmitting]">Submit</button> - D.
<button (disabled)="isSubmitting">Submit</button>
Show answer
B.
<button [disabled]="isSubmitting">Submit</button>Square brackets [property] indicate one-way property binding from the component class to the DOM element property.- A.
Question 2 · Easy · Dependency injection
What is the primary effect of configuring an Angular service with @Injectable({ providedIn: 'root' })?- A.The service automatically runs change detection whenever any of its internal properties change.
- B.A separate instance of the service is created for every declared component in the application.
- C.The service is registered in the application-level injector and provided as an application-wide singleton that is tree-shakable.
- D.The service can only inject dependencies that are also declared in the root AppModule.
Show answer
C. The service is registered in the application-level injector and provided as an application-wide singleton that is tree-shakable.
Specifying providedIn: 'root' provides the service at the application root injector level, ensuring a single shared instance that the build optimizer can tree-shake if unused.Question 3 · Moderate · Signals
An Angular component defines a computed signal that depends on a writable signal. In which scenario will the computed callback re-evaluate its expression?- A.Only when the computed signal is read, provided at least one dependency signal has emitted a new value
- B.On the next microtask tick following any write to the dependency signal
- C.Every time change detection runs across the component tree
- D.Immediately whenever the writable signal is updated, even if the computed signal is never read
Show answer
A. Only when the computed signal is read, provided at least one dependency signal has emitted a new value
Angular computed signals are lazily evaluated and memoized. They only re-execute their calculation function when their value is explicitly read and at least one tracked dependency has changed.Question 4 · Advanced · RxJS
Which operator combination inside takeUntilDestroyed() ensures safe unsubscription without passing an explicit DestroyRef?- A.
Calling takeUntilDestroyed() inside an asynchronous callback within ngOnInit(). - B.Calling takeUntilDestroyed() anywhere inside a component method invoked by a template event binding.
- C.Calling takeUntilDestroyed() strictly within an injection context, such as a field initializer or constructor.
- D.
Calling takeUntilDestroyed() inside ngOnDestroy().
Show answer
C. Calling takeUntilDestroyed() strictly within an injection context, such as a field initializer or constructor.
takeUntilDestroyed() relies on inject(DestroyRef) by default. Therefore, if no DestroyRef is passed explicitly, it must be called within an active injection context such as field initializers or constructor execution.- A.
How scoring and certificates work
- Each check has 15 multiple-choice questions with one correct answer, and one timer for the whole check. A question you leave unanswered scores nothing.
- Practice is free without an account and shows whether each answer is right as you go, with an explanation.
- The certified exam is scored when you submit. 60% passes, which is 9 of 15. Easy unlocks Moderate, and Moderate unlocks Advanced.
- Passing the exam while signed in earns a free certificate, valid for one year, with its own verification page. See a sample certificate.
Free tools for Angular: JSON to TypeScript, JavaScript Formatter