Angular - Routes and Forms Fresco Play MCQs Answers(0.6 Credits)
All Question of the Quiz Present Below for Ease Use Ctrl + F to find the Question.
Quiz On Dependency Injection
1.Which of the following provides data to components?
- Pipes
- Attributes
- Services
- Decorators
Answer: 3)Services
2.@Service decorator is used to create a new service.
- True
- False
Answer: 2)False
3.Service is a _______________.
- Function
- Dependency Injection
- Class
- Decorator
Answer: 3)Class
4.You define Service in __________.
- Decorator
- Component
- Constructor
- Class
Answer: 3)Constructor
5.Which of the following creates new services required by the applications?
- Injectable
- Component
- Dependency Injection
- Providers
Answer: 4)Providers
- List of Fresco Play Courses without Hands-On | Fresco Play
- HMTL5 Semantics Elements MCQs Answers | Fresco Play
- HMTL5 Semantics Elements Hands-On Solutions | Fresco Play
- Styling with CSS3 Hands-On Solutions | Fresco Play
- Blockchain Intermedio MCQs Answers | Fresco Play
- Blockchain - Potentes Nexus MCQs Answers | Fresco Play
- Azure Essentials MCQs Answers | Fresco Play
- AWS Essentials MCQs Answers | Fresco Play
Quiz On HTTP
1.The observable returns a single object alone in an HTTP request.
- False
- True
Answer: 2)True
2.An observable can handle multiple events.
- False
- True
Answer: 2)True
3.Promise returns single value when called.
- False
- True
Answer: 2)True
4.The PATCH method is used when sending passwords or other sensitive information.
- False
- True
Answer: 2)True
5.In an HTTP call, from where is the data fetched?
- API
- Component
- @Input
- Service
Answer: 1)API
Routing
1.Router defines mapping of URL to ______________.
- Directive
- Component
- Pipes
- HTML page
Answer: 2)Component
2.Which mechanism allows the user to navigate between components/views?
- Routing
- HTTP request
- Services
- Dependency Injection
Answer: 1)Routing
3.EventEmitter is a ________ defined in @angular/core module to emit custom events.
- Service
- Class
- Module
- Method
Answer: 2)Class
4.Which property of Routes defines the path of the component?
- path
- href
- url
- src
Answer: 1)path
5.Which of the following is affected/changed on loading components?
- Observable
- URL
- Attribute Directive
- Structural Directive
Answer: 2)URL
6.The following are router guard types, except _________.
- CanActivateChild
- CanDeactivate
- CanDeactivateChild
- CanActivate
Answer: 3)CanDeactivateChild
Quiz On Forms
1.Which function bootstraps the form to its pristine state?
- ngSubmit
- bootstrap
- reset
- next
Answer: 3)reset
2.You can prevent Angular2 from auto-validating the form by using _______.
- validate=”manual”
- form.novalidate
- novalidate
- validate=”disabled”
Answer: 3)novalidate
3.In Reactive forms, the HTML of the forms is automatically created.
- True
- False
Answer: 2)False
4.Which of the following will be true if the user changed the value of control?
- valid
- dirty
- touched
- Pristine
Answer: 2)dirty
5.FormGroups can nest inside other FormGroups.
- False
- True
Answer: 2)True
Angular 2 Routes and Forms - Final Assessment
1.Which property describes the path you want to redirect the user?
- src
- href
- None of the options
- redirectTo
Answer: 4)redirectTo
2.You add novalidate attribute to a form to prevent the browser from automatically validating.
- True
- False
Answer: 1)True
3._____________ acts as a container to store all the services required for creating a component.
- imports
- registerable
- providers
- injectables
Answer: 3)providers
4.The following are operators of observables, except ________.
- filter
- reduce
- map
- geo
Answer: 4)geo
5.Which decorator is optional if the class has any other decorator?
- @output
- @injectable
- @Input
- @component
Answer: 2)@injectable
6.You place _______________ where you want the components to be inserted.
- router-inlet
- router-outlet
- None of the options
- router-insert
Answer: 2)router-outlet
7._____________ is not a primary HTTP verb.
- FETCH
- GET
- POST
- PATCH
Answer: 1)FETCH
8._____________ decorator creates services.
- @output
- @injectable
- @decorator
- @services
Answer: 2)@injectable
9.Non-parameterized routes always take priority over parameterized routes.
- False
- True
Answer: 2)True
10.A promise is cancellable.
- False
- True
Answer: 1)False
11.FormsModule is imported from @angular/_________ in Model Driven Form.
- None of the options
- forms
- core
- form
Answer: 1)None of the options