You are on page 1of 1

1 @Service decorator is used to create a new Service.

FALSE
2 _____________ is not a primary HTTP verb. Fetch
3 Where is the data fetched from in a HTTP call? API
4 Observable can handle multiple events. TRUE
5 In Reactive forms, the HTML of the forms are automatically created. FALSE
6 Which property describes the path you want to redirect the user? redirectTo
7 Which is not a router guard type? candeactivatechild
8 PATCH method is used when sending passwords or other sensitive information.
TRUE
9 Which of the following will be “true” if user changed the value of control?
Dirty
10 Who creates new services required by applications? Providers
11 EventEmitter is a ________ defined in @angular/core module used to emit
custom events. Class
12 _____________ acts as container to store all the services required for the
creation of component. Providers
13 You place _________________ where you want the components inserted.
Router-outlet
14 Which is NOT an operator of Observables? Geo
15 Non-parameterised routes always take priority over parameterised routes.
TRUE
16 You define Service in __________. Constructor
17 FormsModule is imported from @angular/_______ in Model Driven Form. none
of these
18 You add 'novalidate' attribute to form, to prevent browser from automatically
validating. TRUE
19 Which property of “Routes” define the path of the component? path
20 Which decorator is optional if the class has any other decorator?
Injectable
21 Router defines mapping of URL to ______________. Component
22 Promise is cancellable. FALSE
23 Which function bootstraps the form to its pristine state? reset
24 _____________ decorator creates services. Injectable
25 Which of the following provides data to components? services
26 Observable returns only single object in HTTP request. TRUE
28 Which of the following is affected / changed on loading components? URL
29 Which mechanism allows user to navigate between components / views?
Routing
30 How to prevent Angular2 from auto-validating form? novalidate
31 FormGroups can nest inside other FormGroups. TRUE

You might also like