(1) Which of the following is a limitation of using template based forms?
• You can't validate the values entered into the form fields.
• You can't unit-test your validation logic.
• You can't have multiple validators on a field.
2) Which library contains the Observable class?
• Http
• RxJS
• Core
3) Which of the following is an attribute css selector?
• [selector]
• #selector
• .selector
4) What is the purpose of a mock?
• To allow you to test Http calls
• To place a boundary around tested code
• To allow you to arrange your tests easier
5) What object allows you to create your own tokens?
• The InjectionToken class
• The TransparentToken class
• The Token class
6) Which of the following would you use to display a list of elements in a component template?
• *ngRepeat
• *ngEach
• *ngFor
7) When is the @Injectable() decorator required on a service?
• Only when it is going to be injected into components
• Only when the service also injects other services
• Only when it is going to be injected into another service
8) What's the best way to add component-specific styles to a component?
• Add the styles to a css file imported by your index.html.
• Reference an external stylesheet from inside your component template html.
• Specify the styles or styleUrls inside the component meta-data config.
9) Which of the following is true about property binding expressions?
• They cannot chain expressions together using semi-colons.
• All of these
• They cannot use the new keyword.
• Assignments using =, +=, etc are not allowed.
10) What is a limitation of multiple slot content projection?
• There is a maximum of three slots.
• The slots must be on the same horizontal.
• The slots cannot exist outside of the parent's DOM tree.
<< Angular Fundamentals part-2 Angular Fundamentals part-4 >>
No comments:
Post a Comment