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.
4. Some of the core properties that we required when creating Angular 2 components are
B. Templates & selectors
D. All of these
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