Angular 2(Engineering > Computer Science And Engineering ) Questions and Answers
Question 1. Angular 2 integrates easily with NativeScript, allowing you to code your native app in a . . . . . . . . . style that can run on any mobile device platform.
declarative
imperative
interrogative
exclamatory
Explanation:-
Answer: Option A. -> declarative
Question 2. The ______ directive substitutes the normal href property and makes it easier to work with route links in Angular 2.
RouterLink
RouterRend
RouterLike
RouterLayer
Explanation:-
Answer: Option A. -> RouterLink
Question 3. What are the new features of Angular2?
Component-Based
Directives
Dependency Injection
All of these
Explanation:-
Answer: Option D. -> All of these
Question 4. Angular 2 components can be described using ________is a way to do some meta-programming.
controllers, controller
loaders, loader
typescripts, typescript
decorators, decorator
Explanation:-
Answer: Option D. -> decorators, decorator
Question 5. Since Angular 2 defines a set of built-in directives, the . . . . . . . . method passes them in a similar way in order to make them available in the entire application in order to prevent us from code duplications.
startup
bootstrap
constructor
initialization
Explanation:-
Answer: Option B. -> bootstrap
Question 6. On the opposite side of event bindings (()) lie Angular's square-bracket syntax ([]) which signify a . . . . . .
property binding
class binding
style binding
Both A & B
Explanation:-
Answer: Option D. -> Both A & B
Question 7. Which of the following is correct about Angular 2 Routing?
Routing helps in directing users to different pages based on the option they choose on the main page
Based on the option they choose, the required Angular Component will be rendered to the user
Both of the above
None
Explanation:-
Answer: Option C. -> Both of the above
Question 8. A special mention is required about the children element marked with the . . . . . . . . . . . directive attribute. This attribute qualifies the template that will be displayed when no other value defined by its ngSwitchWhen siblings matches the parent conditional expression.
ngDefault
ngTemplateDefault
ngDefaultSwitch
ngSwitchDefault
Explanation:-
Answer: Option D. -> ngSwitchDefault
Question 9. Angular 2 can detect when component data changes, and then automatically re-render the view to reflect that change.
True
False
Both
None
Explanation:-
Answer: Option A. -> True
Question 10. Angular 2 is using . . . . . . . . to detect changes.