Angular Routes and Forms | Fresco Play

Angular Routes and Forms | Fresco Play

Monday, May 22, 2023
~ 3 min read
Angular 2 Routes and Forms | Fresco Play

Question 1: Service is a _.

Answer: Class


Question 2: Who creates new services required by applications?

Answer: Providers


Question 3: @Service decorator is used to create a new Service.

Answer: False


Question 4: Which of the following provides data to components?

Answer: Services


Question 5: You define Service in __.

Answer: constructor


Question 6: PATCH method is used when sending passwords or other sensitive information.

Answer: True


Question 7: Observable can handle multiple events.

Answer: True


Question 8: Promise returns single value when calls.

Answer: True


Question 9: In a HTTP call, where is the data fetched from?

Answer: API


Question 10: Observable returns only single object in HTTP request.

Answer: True


Question 11: Which mechanism allows user to navigate between components / views?

Answer: Routing


Question 12: Which property of β€œRoutes” define the path of the component.

Answer: path


Question 13: Router defines mapping of URL to .

Answer: Component


Question 14: Which of the following is affected / changed on loading components?

Answer: URL


Question 15: EventEmitter is a defined in @angular/core module used to emit custom events.

Answer: Class


Question 16: Which is not a router guard type?

Answer: CanDeactivateChild


Question 17: In Reactive forms, the HTML of the forms are automatically created.

Answer: False


Question 18: How to prevent Angular2 from auto-validating form?

Answer: novalidate


Question 19: Which of the following will be β€œtrue” if user changed the value of control?

Answer: dirty


Question 20: FormGroups can nest inside other FormGroups.

Answer: True


Question 21: Which function bootstraps the form to its pristine state?

Answer: reset


Question 22: You add 'novalidate' attribute to form, to prevent browser from automatically validating.

Answer: True


Question 23: You place ___ where you want the components inserted.

Answer: router-outlet


Question 24: Which is NOT an operator of Observables?

Answer: geo


Question 25: _ is not a primary HTTP verb.

Answer: FETCH


Question 26: Promise is cancellable.

Answer: False


Question 27: Non-parameterised routes always take priority over parameterised routes.

Answer: True


Question 28: _ decorator creates services.

Answer: @injectable


Question 29: Which property describes the path you want to redirect the user?

Answer: redirectTo


Question 30: Which decorator is optional if the class has any other decorator?

Answer: @injectable


Question 31: FormsModule is imported from @angular/_ in Model Driven Form.

Answer: none of these


Question 32: _ acts as container to store all the services required for the creation of component.

Answer: providers


Post a comment

Comments

Join the conversation and share your thoughts! Leave the first comment.

Get your FREE PDF on "100 Ways to Try ChatGPT Today"

Generating link, please wait for: 60 seconds

Checkout all hot deals now πŸ”₯

Search blogs

No blog posts found