Angular 2 Developer Sample Questions

Sample Questions

1. Which of the following is correct about Services?

A. Angular 2 Services are a set of code that can be shared by different components of an application

B. Angular 2 Services cannot be used across multiple applications.

C. Angular 2 Services help to build the applications into many modules.

D. All of the above.


2. Which of the following is correct about Angular 2 Directive?

A. A directive is a custom HTML element that is used to extend the power of HTML.

B. A directive can be used to import the functionality from other Angular JS modules.

C. Both of the above.

D. None of the above


3. Elements present inside the template of a component are called _____ children.

A. content

B. nested

C. view

D. template


4. Some of the core properties that we required when creating Angular 2 components are

A. Providers

B. Templates & selectors

C. Items

D. All of these


5. ngDoCheck()

A. It is used to override the default change detection algorithm for a directive.

B. It is invoked on every check of your component’s view.

C. It is invoked when the view is completely initialised.

D. It is invoked every time the directive’s content is checked.



Answers:      1 (A), 2 (A), 3 (C), 4 (D), 5 (A)

More Practice Test:


Apply for Certification